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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1369
RA = 159.053, Dec = 22.0401
tmin = 594172801, tmax = 594432001
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='203', job_status='RUN', time_executed='2021-09-02 04:50:30.535373', time_epoch_executed='1630583430.54' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203/ft1_4FGL_J1036.2+2202_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203/ft1_4FGL_J1036.2+2202_daily_bin1369.fits outfile=/scratch/kocevski/203/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1369.fits ra=159.053 dec=22.0401 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.18
user 3.89
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203/ft1_filtered_4FGL_J1036.2+2202_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/203/ltcube_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.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/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits
.....................!
real 14.68
user 14.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203/ft1_filtered_4FGL_J1036.2+2202_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/203/ltcube_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.fits outfile=/scratch/kocevski/203/expmap_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.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/203/ltcube_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.fits
.....................!
real 190.60
user 185.19
sys 5.02

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/203/ft1_filtered_4FGL_J1036.2+2202_daily_bin1369.fits scfile=/scratch/kocevski/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits outfile=/scratch/kocevski/203/cmap_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.053 yref=22.0401 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203/ft1_filtered_4FGL_J1036.2+2202_daily_bin1369.fits scfile=/scratch/kocevski/203/ft2_4FGL_J1036.2+2202_daily_bin1369.fits outfile=/scratch/kocevski/203/cmap_HighResolution_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.681       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82564E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .43107E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17038E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88728       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2105       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=   5385.137     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2393 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.156        .90712E-02** at limit **
   2  Prefactor     16.057        19.290        .24998E-02    .15033E-02
   3  Prefactor     .62049        3.3857        .73366E-01    .95427E-03
   4  Prefactor     .10000E-03    .71091        .90712E-02** at limit **
   5  norm          3.5192        5.7302        .53873E-02    .63660E-03
   6  Prefactor     27.681        35.269        .19036E-02    .42462E-04
   7  Prefactor     .10000E-03    20.478        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.2206        .90712E-02** at limit **
   9  Prefactor     .79031E-01    .92231        .37397E-01   -.24044E-02
  10  Prefactor     3.0681        5.0493        .57902E-02    .88320E-03
  11  Prefactor     .10000E-03    2.5860        .90712E-02** at limit **
  12  Prefactor     .10000E-03    7.7029        .90712E-02** at limit **
  13  Prefactor     .10000E-03    3.2189        .90712E-02** at limit **
  14  Prefactor     .10001E-03    3.7900        .90712E-02** at limit **
  15  Prefactor     .10001E-03    3.7408        .90712E-02** at limit **
  16  norm          .42663E-01    .99609        .43547E-01   -.15619E-02
  17  Prefactor     2.4858        2.9653        .64778E-02    .46544E-03
  18  Prefactor     .10000E-03    6.2783        .90712E-02** at limit **
  19  norm          4.3661        12.079        .48205E-02   -.23365E-03
  20  Prefactor     .10042E-03    12.620        .10184    ** at limit **
  21  Normalizat    .88659        .17152        .44739E-01    .96225E-04
  22  Prefactor     1.2116        .18266        .51902E-01    .48004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 16.0567
  Prefactor  = 0.620492
  Prefactor  = 0.0001
  norm       = 3.51919
  Prefactor  = 27.6812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.079031
  Prefactor  = 3.06814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100009
  norm       = 0.042663
  Prefactor  = 2.48577
  Prefactor  = 0.0001
  norm       = 4.36615
  Prefactor  = 0.000100419
  Normalizat = 0.886587
  Prefactor  = 1.21161
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.137     FROM HESSE     STATUS=OK           350 CALLS     2743 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.057        19.290        .99993E-04   -1.4906    
   3  Prefactor     .62049        12.484        .25579E-02   -1.5550    
   4  Prefactor     .10000E-03    .71714        .60405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5192        5.7125        .21549E-03   -1.5333    
   6  Prefactor     27.681        35.274        .76145E-04   -1.4655    
   7  Prefactor     .10000E-03    20.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2338        .10676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .79031E-01    4.6324        .13539E-02   -1.5652    
  10  Prefactor     3.0681        5.0198        .20195E-03   -1.5358    
  11  Prefactor     .10000E-03    2.5977        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2310        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    3.7955        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    3.7448        .13861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42663E-01    11.661        .14024E-02   -1.5667    
  17  Prefactor     2.4858        2.9529        .13067E-03   -1.5393    
  18  Prefactor     .10000E-03    6.3304        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3661        12.075        .19282E-03   -1.5290    
  20  Prefactor     .10042E-03    152.45        .49726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88659        .19818        .23865E-03   -.96933    
  22  Prefactor     1.2116        .21575        .22947E-03   -.85975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24376e-08
Minuit parameter uncertainties:
  1  0.000798627
  2  19.2973
  3  5.56739
  4  4.15682e-07
  5  5.71343
  6  35.3002
  7  0.00015281
  8  5.06823e-06
  9  1.20946
  10  5.02049
  11  2.04042e-06
  12  2.99567e-05
  13  1.04623e-05
  14  0.000411545
  15  0.000365814
  16  1.40929
  17  2.95311
  18  8.87847e-06
  19  12.0821
  20  0.0160212
  21  0.198344
  22  0.215912
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.068e-06  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.212e+00  2.159e-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:  8.866e-01  1.983e-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: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203/likelihoodResults_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.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) = 5385.13959067
delta logL = -0.00212225224732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5385.1374684
delta logL = 2.07128323382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6017       1.0000          .0000       10.000    
     3 'Normalizat'    .88660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2116       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=   5385.137     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.535        .10752E-01** at limit **
   2  Index         2.2396        5.3931        .50000        .47976E-07
   3  Normalizat    .88659        .98883E-02    .23865E-03   -.81364E-04
   4  Prefactor     1.2116        .10978E-01    .22947E-03   -.76545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23958
  Normalizat = 0.886586
  Prefactor  = 1.21161
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.137     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.03        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2396        5.0649        .50000       -.58486    
   3  Normalizat    .88659        .31792E-01    .95461E-05   -.96933    
   4  Prefactor     1.2116        .35296E-01    .45893E-04   -.85975    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04602e-09
Minuit parameter uncertainties:
  1  0.000261186
  2  636.752
  3  0.031793
  4  0.0352967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5385.13746615
delta logL = 2.26612610277e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.612e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.240e+00  6.368e+02  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.212e+00  3.530e-02  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:  8.866e-01  3.179e-02  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/203/cmap_HighResolution_594172801_594432001_4FGL_J1036.2+2202_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-09-02 05:00:41.962401', job_id='203', GAL2='1.21', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630584041.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1369' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 203: <4FGL_J1036.2+2202_daily_bin1369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1369 159.053 22.0401 594172801 594432001 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 :                                   604.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            894 sec.

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

