/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 9 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin168
RA = 159.053, Dec = 22.0401
tmin = 282873601, tmax = 283132801
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='993243', job_status='RUN', time_executed='2021-09-02 04:24:44.882148', time_epoch_executed='1630581884.88' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993243/ft1_4FGL_J1036.2+2202_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993243/ft2_4FGL_J1036.2+2202_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993243/ft1_4FGL_J1036.2+2202_daily_bin168.fits outfile=/scratch/kocevski/993243/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin168.fits ra=159.053 dec=22.0401 rad=12.0 tmin=282873601.0 tmax=283132801.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.52
user 3.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993243/ft1_filtered_4FGL_J1036.2+2202_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/993243/ft2_4FGL_J1036.2+2202_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/993243/ltcube_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.fits outfile=/scratch/kocevski/993243/expmap_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.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/993243/ltcube_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.fits
.....................!
real 193.45
user 188.64
sys 4.04

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/993243/ft1_filtered_4FGL_J1036.2+2202_daily_bin168.fits scfile=/scratch/kocevski/993243/ft2_4FGL_J1036.2+2202_daily_bin168.fits outfile=/scratch/kocevski/993243/cmap_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993243/ft1_filtered_4FGL_J1036.2+2202_daily_bin168.fits scfile=/scratch/kocevski/993243/ft2_4FGL_J1036.2+2202_daily_bin168.fits outfile=/scratch/kocevski/993243/cmap_HighResolution_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.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.62
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    37.796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12622E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0988       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6468       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28503E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27045E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
    19 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13485E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98531       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0230       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=   5098.043     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2350 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.856        .18673E-06** at limit **
   2  Prefactor     37.798        41.566       -.55905E-06   -.66928E-05
   3  Prefactor     .10001E-03    5.3428       -.19729E-06** at limit **
   4  Prefactor     .10000E-03    .66559       -.51838E-07** at limit **
   5  norm          13.180        8.5097       -.73466E-06    .92184E-04
   6  Prefactor     41.930        41.762       -.10398E-05   -.28533E-04
   7  Prefactor     .10000E-03    14.924        .18515E-05** at limit **
   8  Prefactor     3.0873        7.7399       -.32285E-05    .34000E-04
   9  Prefactor     1.6483        2.2052       -.94503E-07    .17509E-03
  10  Prefactor     .10000E-03    6.6809       -.42241E-06** at limit **
  11  Prefactor     .10000E-03    7.0525        .25492E-07** at limit **
  12  Prefactor     .10000E-03    23.869        .40669E-06** at limit **
  13  Prefactor     .10000E-03    5.0349        .79378E-06** at limit **
  14  Prefactor     .10000E-03    21.815        .30151E-07** at limit **
  15  Prefactor     .10000E-03    88.387       -.68895E-05** at limit **
  16  norm          .10000E-03    1.2702       -.18399E-06** at limit **
  17  Prefactor     2.4656        2.6850       -.57909E-06    .18572E-04
  18  Prefactor     10.179        7.7644       -.10640E-05    .74251E-04
  19  norm          .10000E-03    4.9904       -.83629E-06** at limit **
  20  Prefactor     .10000E-03    17.638       -.32186E-05** at limit **
  21  Normalizat    .98515        .18352       -.84887E-07    .14542E-03
  22  Prefactor     1.0231        .18821        .16520E-05    .73933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.7977
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 13.1798
  Prefactor  = 41.9297
  Prefactor  = 0.0001
  Prefactor  = 3.08729
  Prefactor  = 1.64832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.46564
  Prefactor  = 10.1794
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985147
  Prefactor  = 1.02315
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.043     FROM HESSE     STATUS=OK           340 CALLS     2690 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.798        41.586        .65193E-04   -1.4478    
   3  Prefactor     .10001E-03    22.992        .30910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .66849        .56876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.180        8.4961        .55168E-03   -1.4982    
   6  Prefactor     41.930        41.827        .61911E-04   -1.4412    
   7  Prefactor     .10000E-03    15.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0873        7.8031        .23037E-03   -1.5357    
   9  Prefactor     1.6483        2.1611        .11345E-03   -1.5451    
  10  Prefactor     .10000E-03    6.7887        .18021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0673        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.396        .42822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    87.560        .44299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3315        .15716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4656        2.6725        .11683E-03   -1.5394    
  18  Prefactor     10.179        7.7387        .12557E-03   -1.5070    
  19  norm          .10000E-03    5.0148        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98515        .21188        .23241E-03   -.93530    
  22  Prefactor     1.0231        .21814        .24410E-03   -.91962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14931e-10
Minuit parameter uncertainties:
  1  1.74246e-05
  2  41.6177
  3  0.000842761
  4  1.27627e-07
  5  8.49688
  6  41.8565
  7  9.71723e-05
  8  7.80569
  9  2.16117
  10  1.03554e-05
  11  2.28872e-05
  12  1.31467e-05
  13  2.89168e-05
  14  0.000103315
  15  0.000483411
  16  2.82802e-06
  17  2.67259
  18  7.73949
  19  2.18563e-05
  20  8.56893e-05
  21  0.212066
  22  0.218327
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.087e+00  7.806e+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.023e+00  2.183e-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.851e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993243/likelihoodResults_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.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) = 5097.02294713
delta logL = 1.02040846582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5097.00842259
delta logL = 1.03493300289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2192       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4464       1.0000          .0000       10.000    
     3 'Normalizat'    .91227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0720       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=   5097.008     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      238 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2191        16.630        .10217E-01    .17503E-02
   2  Index         4.4462        3.6379        .15827        .53777E-04
   3  Normalizat    .91226        .48693E-01    .45058E-01    .11243E-04
   4  Prefactor     1.0720        .52264E-01    .38763E-01    .60756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21906
  Index      = 4.44625
  Normalizat = 0.912259
  Prefactor  = 1.072
 **********
 **   18 **HESSE 
 **********

 FCN=   5097.008     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2191        45.565        .58828E-04   -1.5487    
   2  Index         4.4462        7.1875        .59215E-02   -.11098    
   3  Normalizat    .91226        .21337        .24013E-03   -.96031    
   4  Prefactor     1.0720        .22099        .23906E-03   -.90366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16015e-08
Minuit parameter uncertainties:
  1  14.9176
  2  8.09437
  3  0.213567
  4  0.221178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993243': 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) = 5097.00842247
delta logL = 1.03493312309

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.219e+00  1.492e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  4.446e+00  8.094e+00  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.072e+00  2.212e-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.123e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 159.053 22.040
Photon Index (Free Index): 4.45 +/- 8.09
Photon Flux (Free Index): 7.51e-08 +/- 7.55e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.86e-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/993243/cmap_HighResolution_282873601_283132801_4FGL_J1036.2+2202_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.03e+00', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-09-02 04:34:26.663080', photon_index_error2='8.09', photon_index2='4.45', ts='0.19', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.86e-05', EG='0.99', time_epoch_completed='1630582466.66', return_code='0', job_id='993243', GAL2='1.07', EG2='0.91', return_code2='0', photon_flux_error2='7.55e-08', ts2='2.41', photon_index='2.61' WHERE bin_id='168' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 993243: <4FGL_J1036.2+2202_daily_bin168> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin168> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:21:24 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:24:27 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:24:27 2021
Terminated at Thu Sep  2 04:34:27 2021
Results reported at Thu Sep  2 04:34:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin168 159.053 22.0401 282873601 283132801 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 :                                   578.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            783 sec.

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

