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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1324
RA = 159.053, Dec = 22.0401
tmin = 582508801, tmax = 582768001
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='137', job_status='RUN', time_executed='2021-09-02 04:50:03.540018', time_epoch_executed='1630583403.54' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137/ft1_4FGL_J1036.2+2202_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137/ft2_4FGL_J1036.2+2202_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137/ft1_4FGL_J1036.2+2202_daily_bin1324.fits outfile=/scratch/kocevski/137/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1324.fits ra=159.053 dec=22.0401 rad=12.0 tmin=582508801.0 tmax=582768001.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.73
user 3.45
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/137/ft2_4FGL_J1036.2+2202_daily_bin1324.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/137/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/137/ft1_filtered_4FGL_J1036.2+2202_daily_bin1324.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137/ft1_filtered_4FGL_J1036.2+2202_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/137/ft2_4FGL_J1036.2+2202_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/137/ltcube_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.fits outfile=/scratch/kocevski/137/expmap_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.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/137/ltcube_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.fits
.....................!
real 195.06
user 188.56
sys 4.06

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/137/ft1_filtered_4FGL_J1036.2+2202_daily_bin1324.fits scfile=/scratch/kocevski/137/ft2_4FGL_J1036.2+2202_daily_bin1324.fits outfile=/scratch/kocevski/137/cmap_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/137/ft1_filtered_4FGL_J1036.2+2202_daily_bin1324.fits scfile=/scratch/kocevski/137/ft2_4FGL_J1036.2+2202_daily_bin1324.fits outfile=/scratch/kocevski/137/cmap_HighResolution_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73981E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12624       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19730E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32580E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1603       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.253       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6049       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.697       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1049       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=   6036.548     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2487 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.182        .10347E-05** at limit **
   2  Prefactor     .74090E-01    72.162       -.17113E-06    .10118E-05
   3  Prefactor     1.9809        13.235        .24455E-05   -.32132E-03
   4  Prefactor     .12575        1.3908       -.21494E-06   -.49062E-03
   5  norm          3.4982        6.8797        .19393E-05   -.25139E-03
   6  Prefactor     .10000E-03    20.804       -.23618E-07** at limit **
   7  Prefactor     .10000E-03    30.955       -.21337E-05** at limit **
   8  Prefactor     10.218        8.5472        .55806E-05    .22432E-03
   9  Prefactor     .10000E-03    1.3528       -.88694E-06** at limit **
  10  Prefactor     .10000E-03    5.2811        .71196E-07** at limit **
  11  Prefactor     .10000E-03    10.424       -.21187E-06** at limit **
  12  Prefactor     22.533        22.671       -.10572E-05    .14004E-04
  13  Prefactor     .10099E-03    5.9485        .14905E-05** at limit **
  14  Prefactor     7.1363        11.212        .72161E-05    .11676E-03
  15  Prefactor     24.276        17.526       -.66871E-05   -.13972E-03
  16  norm          3.6054        2.4979        .14202E-06   -.26770E-03
  17  Prefactor     .10000E-03    1.8882       -.75092E-06** at limit **
  18  Prefactor     .10000E-03    2.4465        .47027E-07** at limit **
  19  norm          27.692        22.506        .10286E-05    .46123E-04
  20  Prefactor     .10000E-03    6.8573        .25449E-07** at limit **
  21  Normalizat    1.1032        .19159       -.13646E-05    .23911E-03
  22  Prefactor     1.1048        .18352       -.65936E-06    .13765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0740899
  Prefactor  = 1.98094
  Prefactor  = 0.125754
  norm       = 3.4982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2175
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.5333
  Prefactor  = 0.000100991
  Prefactor  = 7.13633
  Prefactor  = 24.276
  norm       = 3.60543
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 27.692
  Prefactor  = 0.0001
  Normalizat = 1.10317
  Prefactor  = 1.1048
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.548     FROM HESSE     STATUS=OK           366 CALLS     2853 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74090E-01    58.757        .16418       -1.5654    
   3  Prefactor     1.9809        12.791        .29451E-03   -1.5426    
   4  Prefactor     .12575        7.7202        .17356E-02   -1.5637    
   5  norm          3.4982        6.8166        .21618E-03   -1.5334    
   6  Prefactor     .10000E-03    20.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.218        8.3922        .12535E-03   -1.5069    
   9  Prefactor     .10000E-03    11.119        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3381        .17424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.533        22.690        .84387E-04   -1.4758    
  13  Prefactor     .10099E-03    8.3715        .66236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1363        11.053        .14991E-03   -1.5174    
  15  Prefactor     24.276        17.735        .81339E-04   -1.4722    
  16  norm          3.6054        2.4945        .97553E-04   -1.5328    
  17  Prefactor     .10000E-03    3.2130        .20317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4533        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.692        22.506        .76124E-04   -1.4655    
  20  Prefactor     .10000E-03    6.9028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1032        .22746        .25363E-03   -.89650    
  22  Prefactor     1.1048        .21930        .25918E-03   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40363e-09
Minuit parameter uncertainties:
  1  3.37775e-05
  2  4.1742
  3  10.0703
  4  1.97012
  5  6.81807
  6  6.94192e-06
  7  9.58354e-06
  8  8.39317
  9  0.000447648
  10  1.72341e-05
  11  0.000156737
  12  22.6985
  13  0.00576167
  14  11.0563
  15  17.7384
  16  2.49455
  17  0.00014871
  18  7.70628e-06
  19  22.5133
  20  1.1857e-05
  21  0.227667
  22  0.219479
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.022e+01  8.393e+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:  1.105e+00  2.195e-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.103e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.21e-05

TS (Fixed Index): 2.33
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/137/likelihoodResults_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.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) = 6036.54532562
delta logL = 0.00304138072443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.54460353
delta logL = 0.00376347642396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5557       1.0000          .0000       10.000    
     3 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1031       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=   6036.545     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      238 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.530        9.3746        .12347E-03    .16887E-03
   2  Index         2.5557        .68411        .85219E-02    .30723E-04
   3  Normalizat    1.1056        .21580        .25339E-03   -.33829E-04
   4  Prefactor     1.1030        .21866        .25936E-03   -.38574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5298
  Index      = 2.55568
  Normalizat = 1.10557
  Prefactor  = 1.10296
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.545     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.530        9.2206        .49389E-05   -1.5059    
   2  Index         2.5557        .67259        .34088E-03   -.51079    
   3  Normalizat    1.1056        .21600        .10136E-04   -.89573    
   4  Prefactor     1.1030        .21881        .10374E-04   -.89372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91791e-11
Minuit parameter uncertainties:
  1  9.22187
  2  0.675286
  3  0.216176
  4  0.218988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137': 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) = 6036.5446019
delta logL = 0.00376510019669

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.053e+01  9.222e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.556e+00  6.753e-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.103e+00  2.190e-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.106e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.56 +/- 0.68
Photon Flux (Free Index): 5.52e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.30e-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/137/cmap_HighResolution_582508801_582768001_4FGL_J1036.2+2202_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.51e-05', photon_flux_error='4.69e-08', dlogl='3.77e-03', energy_flux='1.48e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-02 05:00:50.532834', photon_index_error2='0.68', photon_index2='2.56', ts='2.33', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.30e-05', EG='1.10', time_epoch_completed='1630584050.53', return_code='0', job_id='137', GAL2='1.10', EG2='1.11', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.08e-08', ts2='2.33', photon_index='2.61' WHERE bin_id='1324' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 137: <4FGL_J1036.2+2202_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1324> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:45:43 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:49:40 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:49:40 2021
Terminated at Thu Sep  2 05:00:51 2021
Results reported at Thu Sep  2 05:00:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1324 159.053 22.0401 582508801 582768001 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 :                                   635.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            908 sec.

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

