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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin485
RA = 159.053, Dec = 22.0401
tmin = 365040001, tmax = 365299201
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='995665', job_status='RUN', time_executed='2021-09-02 04:35:57.275282', time_epoch_executed='1630582557.28' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995665/ft1_4FGL_J1036.2+2202_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995665/ft1_4FGL_J1036.2+2202_daily_bin485.fits outfile=/scratch/kocevski/995665/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin485.fits ra=159.053 dec=22.0401 rad=12.0 tmin=365040001.0 tmax=365299201.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.02
user 2.80
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995665/ft1_filtered_4FGL_J1036.2+2202_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/995665/ltcube_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.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/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits
.....................!
real 12.74
user 12.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995665/ft1_filtered_4FGL_J1036.2+2202_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/995665/ltcube_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.fits outfile=/scratch/kocevski/995665/expmap_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.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/995665/ltcube_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.fits
.....................!
real 156.85
user 151.82
sys 4.62

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/995665/ft1_filtered_4FGL_J1036.2+2202_daily_bin485.fits scfile=/scratch/kocevski/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits outfile=/scratch/kocevski/995665/cmap_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995665/ft1_filtered_4FGL_J1036.2+2202_daily_bin485.fits scfile=/scratch/kocevski/995665/ft2_4FGL_J1036.2+2202_daily_bin485.fits outfile=/scratch/kocevski/995665/cmap_HighResolution_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .48062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5517       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51173E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1126       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93695       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99602       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=   5114.972     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2504 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.846        .87296E-07** at limit **
   2  Prefactor     .10000E-03    17.742       -.93554E-07** at limit **
   3  Prefactor     8.7844        6.4384        .35849E-08   -.89616E-04
   4  Prefactor     .10000E-03    1.1328       -.25845E-07** at limit **
   5  norm          .47674        9.2163        .52084E-05    .32957E-04
   6  Prefactor     .10000E-03    47.366       -.87919E-06** at limit **
   7  Prefactor     9.5474        66.488        .19336E-05    .50894E-04
   8  Prefactor     3.1485        3.8925        .19392E-06    .22904E-05
   9  Prefactor     .10000E-03    .81417       -.12154E-06** at limit **
  10  Prefactor     18.376        8.3138        .17841E-06    .53115E-04
  11  Prefactor     .10000E-03    3.5059       -.43580E-07** at limit **
  12  Prefactor     .10000E-03    28.338        .20084E-06** at limit **
  13  Prefactor     19.725        11.571        .16687E-06   -.10605E-03
  14  Prefactor     7.1004        11.801        .20480E-06   -.46646E-05
  15  Prefactor     .11736        10.430        .97415E-06   -.21107E-03
  16  norm          .10000E-03    1.4747       -.11729E-06** at limit **
  17  Prefactor     2.1215        2.9319        .23304E-06    .25729E-04
  18  Prefactor     6.1116        6.4619        .66379E-07   -.12791E-04
  19  norm          .10000E-03    4.8525       -.54682E-07** at limit **
  20  Prefactor     .10000E-03    26.188       -.56317E-06** at limit **
  21  Normalizat    .93677        .18067       -.17503E-05   -.60250E-04
  22  Prefactor     .99614        .18811        .11566E-05   -.13677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.78435
  Prefactor  = 0.0001
  norm       = 0.476739
  Prefactor  = 0.0001
  Prefactor  = 9.5474
  Prefactor  = 3.14854
  Prefactor  = 0.0001
  Prefactor  = 18.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7254
  Prefactor  = 7.10041
  Prefactor  = 0.117364
  norm       = 0.0001
  Prefactor  = 2.12147
  Prefactor  = 6.11163
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.936774
  Prefactor  = 0.996136
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.972     FROM HESSE     STATUS=OK           360 CALLS     2864 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7844        6.4326        .13525E-03   -1.5115    
   4  Prefactor     .10000E-03    2.2357        .14788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47674        9.3794        .41428E-02   -1.5570    
   6  Prefactor     .10000E-03    47.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5474        66.589        .12967E-03   -1.5090    
   8  Prefactor     3.1485        3.8773        .15156E-03   -1.5353    
   9  Prefactor     .10000E-03    1.3225        .12438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.376        8.2732        .93435E-04   -1.4850    
  11  Prefactor     .10000E-03    3.5169        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.725        11.628        .90124E-04   -1.4819    
  14  Prefactor     7.1004        11.669        .15056E-03   -1.5175    
  15  Prefactor     .11736        16.016        .68289E-01   -1.5639    
  16  norm          .10000E-03    2.4098        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1215        2.8881        .12771E-03   -1.5417    
  18  Prefactor     6.1116        6.4584        .16239E-03   -1.5213    
  19  norm          .10000E-03    4.8568        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93677        .20685        .23026E-03   -.95180    
  22  Prefactor     .99614        .21662        .24324E-03   -.92858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48709e-10
Minuit parameter uncertainties:
  1  0.000182498
  2  1.52273e-06
  3  6.4331
  4  3.28136e-06
  5  4.22951
  6  0.000208614
  7  50.5082
  8  3.8776
  9  6.17238e-06
  10  8.27372
  11  3.27863e-06
  12  5.28889e-05
  13  11.6296
  14  11.6732
  15  2.7416
  16  1.76222e-05
  17  2.88825
  18  6.45913
  19  2.56277e-07
  20  1.56496e-05
  21  0.207021
  22  0.21681
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.149e+00  3.878e+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:  9.961e-01  2.168e-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.368e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 4.56e-06 +/- 5.61e-06

TS (Fixed Index): 1.03
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995665/likelihoodResults_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.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): 0
logL (Free Index) = 5113.23541417
delta logL = 1.73644568757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5113.16894246
delta logL = 1.80291740369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6962       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1613       1.0000          .0000       10.000    
     3 'Normalizat'    .95227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98587       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=   5113.169     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6952        1.8820        .80771E-02   -.24193E-03
   2  Index         1.1611        .37190        .18375       -.60832E-04
   3  Normalizat    .95237        .16872        .45566E-01    .99716E-05
   4  Prefactor     .98578        .18409        .46090E-01    .71686E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69516
  Index      = 1.16107
  Normalizat = 0.952372
  Prefactor  = 0.985781
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.169     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6952        2.9858        .92868E-04   -1.5448    
   2  Index         1.1611        .63490        .74757E-02   -.87538    
   3  Normalizat    .95237        .19733        .22843E-03   -.94644    
   4  Prefactor     .98578        .21530        .24417E-03   -.93205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36816e-09
Minuit parameter uncertainties:
  1  2.98607
  2  0.639135
  3  0.197485
  4  0.215486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995665': 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) = 5113.16894227
delta logL = 1.80291759528

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.695e+00  2.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.161e+00  6.391e-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:  9.858e-01  2.155e-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.524e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 159.053 22.040
Photon Index (Free Index): 1.16 +/- 0.64
Photon Flux (Free Index): 5.22e-09 +/- 6.57e-09
Energy Flux (Free Index): 4.89e-05 +/- 7.50e-05

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/995665/cmap_HighResolution_365040001_365299201_4FGL_J1036.2+2202_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='4.89e-05', photon_flux_error='2.17e-08', dlogl='1.80e+00', energy_flux='4.56e-06', photon_flux2='5.22e-09', job_status='DONE', time_completed='2021-09-02 04:44:13.782891', photon_index_error2='0.64', photon_index2='1.16', ts='1.03', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.54e-08', energy_flux_error2='7.50e-05', EG='0.94', time_epoch_completed='1630583053.78', return_code='0', job_id='995665', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='5.61e-06', photon_flux_error2='6.57e-09', ts2='4.63', photon_index='2.61' WHERE bin_id='485' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 995665: <4FGL_J1036.2+2202_daily_bin485> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin485> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:30:46 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:32:16 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:32:16 2021
Terminated at Thu Sep  2 04:44:14 2021
Results reported at Thu Sep  2 04:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin485 159.053 22.0401 365040001 365299201 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 :                                   495.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            808 sec.

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

