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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1278
RA = 159.053, Dec = 22.0401
tmin = 570585601, tmax = 570844801
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='68', job_status='RUN', time_executed='2021-09-02 04:49:23.174724', time_epoch_executed='1630583363.17' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68/ft1_4FGL_J1036.2+2202_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68/ft1_4FGL_J1036.2+2202_daily_bin1278.fits outfile=/scratch/kocevski/68/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1278.fits ra=159.053 dec=22.0401 rad=12.0 tmin=570585601.0 tmax=570844801.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.03
user 2.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68/ft1_filtered_4FGL_J1036.2+2202_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/68/ltcube_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.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/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits
.....................!
real 18.42
user 17.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68/ft1_filtered_4FGL_J1036.2+2202_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/68/ltcube_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits outfile=/scratch/kocevski/68/expmap_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.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/68/ltcube_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits
.....................!
real 191.69
user 187.22
sys 3.86

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/68/ft1_filtered_4FGL_J1036.2+2202_daily_bin1278.fits scfile=/scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits outfile=/scratch/kocevski/68/cmap_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.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.38
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68/ft1_filtered_4FGL_J1036.2+2202_daily_bin1278.fits', '/scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits', expMap='/scratch/kocevski/68/expmap_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits', expCube='/scratch/kocevski/68/ltcube_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68/Model_4FGL_J1036.2+2202_daily_bin1278.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/68/ft1_filtered_4FGL_J1036.2+2202_daily_bin1278.fits
Spacecraft file(s): /scratch/kocevski/68/ft2_4FGL_J1036.2+2202_daily_bin1278.fits
Exposure map: /scratch/kocevski/68/expmap_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits
Exposure cube: /scratch/kocevski/68/ltcube_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68/Model_4FGL_J1036.2+2202_daily_bin1278.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 297.300737488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 294.335039873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    135.18       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    747.47       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28173E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35686E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.391       1.0000         .10000E-03   10000.    
    19 'norm      '    78.960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46783E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.6490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   294.3258     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      453 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6003        1.0040         .0000         .0000    
   2  Prefactor     4.0249        19.474        .21337E-05    .14069E-02
   3  Prefactor     4.1118        1.0076         .0000         .0000    
   4  Prefactor     1.0098        1.3253         .0000         .0000    
   5  norm          .29012E-02    6492.9        .14157E-04   -.78979E-03
   6  Prefactor     .10001E-03    765.93       -.74122E-05** at limit **
   7  Prefactor     2.7757        95.630        .45283E-05    .25543E-02
   8  Prefactor     .10000E-03    74.902        .31699E-05** at limit **
   9  Prefactor     .10000E-03    19.119       -.31906E-06** at limit **
  10  Prefactor     136.31        53.679        .16907E-05   -.41746E-02
  11  Prefactor     26.503        62.592        .57799E-05    .19177E-02
  12  Prefactor     748.85        31.966       -.30805E-06   -.27749E-01
  13  Prefactor     .10000E-03    47.218        .17285E-05** at limit **
  14  Prefactor     .10000E-03    111.77       -.18456E-04** at limit **
  15  Prefactor     .10000E-03    68.311       -.41661E-06** at limit **
  16  norm          4.5526        12.720        .99676E-06    .24686E-05
  17  Prefactor     .10000E-03    37.976        .82690E-05** at limit **
  18  Prefactor     48.648        53.924        .45320E-05   -.35902E-02
  19  norm          80.029        98.061        .61459E-07   -.22777E-03
  20  Prefactor     .10000E-03    38.743       -.47791E-06** at limit **
  21  Normalizat    .10000E-01    1.4813        .19239E-04** at limit **
  22  Prefactor     1.6395        .92906       -.62236E-05    .31050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6003
  Prefactor  = 4.02489
  Prefactor  = 4.1118
  Prefactor  = 1.00983
  norm       = 0.00290124
  Prefactor  = 0.000100008
  Prefactor  = 2.77571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 136.31
  Prefactor  = 26.5031
  Prefactor  = 748.846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.55263
  Prefactor  = 0.0001
  Prefactor  = 48.6478
  norm       = 80.029
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.6395
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   294.3258     FROM HESSE     STATUS=FAILED        11 CALLS      464 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     525.67        520.03         .0000       -1.5235    
   2  Prefactor     4.0249        .91751        .21337E-05   -1.5307    
   3  Prefactor     4.1118        1.0076         .0000       -1.5302    
   4  Prefactor     1.0098        1.3253         .0000       -1.5507    
   5  norm          .29012E-02    .35201E-01    .14157E-04   -1.5719    
   6  Prefactor     .10001E-03    .33316       -.74122E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7757        .79927        .45283E-05   -1.5375    
   8  Prefactor     .10000E-03    .20571        .31699E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571       -.31906E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     136.31        1.0041        .16907E-05   -1.3368    
  11  Prefactor     26.503        1.0238        .57799E-05   -1.4678    
  12  Prefactor     748.85        1.0008       -.30805E-06   -1.0164    
  13  Prefactor     .10000E-03    .32404        .17285E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .27203       -.18456E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .24739       -.41661E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5526        1.0032        .99676E-06   -1.5281    
  17  Prefactor     .10000E-03    .28395        .82690E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.648        1.0027        .45320E-05   -1.4312    
  19  norm          80.029        1.0067        .61459E-07   -1.3916    
  20  Prefactor     .10000E-03    .21411       -.47791E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25671        .19239E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6395        1.0340       -.62236E-05   -.73704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.99449e-10
Minuit parameter uncertainties:
  1  1.00404
  2  0.917518
  3  1.00759
  4  1.32538
  5  0.0198603
  6  0.000106092
  7  0.79927
  8  2.56485e-06
  9  3.625e-07
  10  1.00413
  11  1.0238
  12  1.00085
  13  1.46504e-06
  14  2.26748e-05
  15  5.19493e-07
  16  1.00318
  17  9.84488e-06
  18  1.00269
  19  1.00671
  20  5.40437e-07
  21  6.19903e-07
  22  1.04791
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 294.325779454

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.565e-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.640e+00  1.048e+00  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.000e-02  6.199e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 2.00e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68/likelihoodResults_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.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) = 294.325840557
delta logL = -6.11032855886e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 294.325780171
delta logL = -7.1694290682e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4320       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6397       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=   294.3258     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      296 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10708E-03    148.08        .11460E-01** at limit **
   2  Index         3.2305        6.3535        .50000        .35993E-05
   3  Normalizat    .10000E-01    .86333E-02    .11009E-01** at limit **
   4  Prefactor     1.6395        .49170E-01    .30057E-03   -.21512E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107085
  Index      = 3.23046
  Normalizat = 0.01
  Prefactor  = 1.6395
 **********
 **   18 **HESSE 
 **********

 FCN=   294.3258     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10708E-03    1184.1        .12362E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2305        5.7857        .50000       -.36175    
   3  Normalizat    .10000E-01    .74451E-01    .22019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6395        .14444        .12023E-04   -.73704    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90003e-08
Minuit parameter uncertainties:
  1  0.187001
  2  2378.49
  3  9.63221e-08
  4  0.144477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68': 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) = 294.325779773
delta logL = -3.19093203416e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.071e-04  1.870e-01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.230e+00  2.378e+03  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.640e+00  1.445e-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.000e-02  9.632e-08  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/68/cmap_HighResolution_570585601_570844801_4FGL_J1036.2+2202_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-01', job_status='DONE', photon_flux_upper_limit='2.00e-06', time_completed='2021-09-02 04:55:00.871771', job_id='68', GAL2='1.64', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630583700.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.64', dlogl='-3.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1278' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 68: <4FGL_J1036.2+2202_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1278> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:45:35 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:49:10 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:10 2021
Terminated at Thu Sep  2 04:55:01 2021
Results reported at Thu Sep  2 04:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1278 159.053 22.0401 570585601 570844801 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 :                                   328.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             518.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   351 sec.
    Turnaround time :                            566 sec.

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

