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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1433
RA = 159.053, Dec = 22.0401
tmin = 610761601, tmax = 611020801
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='1382', job_status='RUN', time_executed='2021-09-02 04:54:49.838025', time_epoch_executed='1630583689.84' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1382/ft1_4FGL_J1036.2+2202_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1382/ft2_4FGL_J1036.2+2202_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1382/ft1_4FGL_J1036.2+2202_daily_bin1433.fits outfile=/scratch/kocevski/1382/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1433.fits ra=159.053 dec=22.0401 rad=12.0 tmin=610761601.0 tmax=611020801.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.57
user 3.26
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1382/ft1_filtered_4FGL_J1036.2+2202_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/1382/ft2_4FGL_J1036.2+2202_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/1382/ltcube_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.fits outfile=/scratch/kocevski/1382/expmap_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.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/1382/ltcube_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.fits
.....................!
real 194.79
user 187.88
sys 5.75

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/1382/ft1_filtered_4FGL_J1036.2+2202_daily_bin1433.fits scfile=/scratch/kocevski/1382/ft2_4FGL_J1036.2+2202_daily_bin1433.fits outfile=/scratch/kocevski/1382/cmap_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.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.64
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1382/ft1_filtered_4FGL_J1036.2+2202_daily_bin1433.fits scfile=/scratch/kocevski/1382/ft2_4FGL_J1036.2+2202_daily_bin1433.fits outfile=/scratch/kocevski/1382/cmap_HighResolution_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.553       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    29.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.746       1.0000         .10000E-03   10000.    
    16 'norm      '    .58251E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13179E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.446       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93272       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2220       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=   5923.048     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2435 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.864        .90712E-02** at limit **
   2  Prefactor     .10000E-03    39.972        .90712E-02** at limit **
   3  Prefactor     10.556        6.2219        .30833E-02   -.16313E-03
   4  Prefactor     .10000E-03    .50091        .90712E-02** at limit **
   5  norm          29.398        11.654        .18473E-02    .68027E-04
   6  Prefactor     35.841        37.714        .16735E-02   -.10449E-03
   7  Prefactor     4.6986        61.388        .46409E-02    .32348E-04
   8  Prefactor     14.426        9.5165        .26363E-02    .53931E-03
   9  Prefactor     .10000E-03    1.4226        .53501E-01** at limit **
  10  Prefactor     .10000E-03    5.4226        .62015E-01** at limit **
  11  Prefactor     1.2290        43.707        .10211E-01    .48852E-03
  12  Prefactor     .10000E-03    8.1580        .90712E-02** at limit **
  13  Prefactor     .18643        8.3652        .10060        .18784E-03
  14  Prefactor     23.533        15.538        .20641E-02   -.32909E-03
  15  Prefactor     13.773        20.621        .27009E-02   -.32411E-03
  16  norm          .10000E-03    1.0110        .47365E-01** at limit **
  17  Prefactor     3.8957        3.4587        .51108E-02    .37526E-03
  18  Prefactor     .10000E-03    12.456        .90712E-02** at limit **
  19  norm          .10000E-03    6.6892        .90712E-02** at limit **
  20  Prefactor     17.445        15.426        .23972E-02    .51290E-04
  21  Normalizat    .93268        .19851        .45318E-01   -.27154E-04
  22  Prefactor     1.2221        .19424        .57453E-01   -.38819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5562
  Prefactor  = 0.0001
  norm       = 29.3979
  Prefactor  = 35.8407
  Prefactor  = 4.69862
  Prefactor  = 14.4263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22899
  Prefactor  = 0.0001
  Prefactor  = 0.186433
  Prefactor  = 23.5332
  Prefactor  = 13.773
  norm       = 0.0001
  Prefactor  = 3.8957
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4448
  Normalizat = 0.932684
  Prefactor  = 1.22209
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.048     FROM HESSE     STATUS=OK           350 CALLS     2785 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.556        6.2212        .12333E-03   -1.5058    
   4  Prefactor     .10000E-03    .50176        .53190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          29.398        11.643        .73894E-04   -1.4623    
   6  Prefactor     35.841        37.704        .66942E-04   -1.4510    
   7  Prefactor     4.6986        61.352        .18564E-03   -1.5274    
   8  Prefactor     14.426        9.3021        .10545E-03   -1.4948    
   9  Prefactor     .10000E-03    7.3241        .16909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.046        .33989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2290        36.691        .40843E-03   -1.5486    
  12  Prefactor     .10000E-03    8.1616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18643        113.90        .37438E-02   -1.5622    
  14  Prefactor     23.533        15.489        .82564E-04   -1.4737    
  15  Prefactor     13.773        19.839        .10804E-03   -1.4966    
  16  norm          .10000E-03    13.866        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8957        3.4438        .12174E-03   -1.5313    
  18  Prefactor     .10000E-03    12.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.7101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.445        15.389        .95889E-04   -1.4872    
  21  Normalizat    .93268        .22870        .27174E-03   -.95321    
  22  Prefactor     1.2221        .22883        .25405E-03   -.85654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09485e-08
Minuit parameter uncertainties:
  1  9.89448e-05
  2  7.40091e-05
  3  6.22163
  4  8.65377e-07
  5  11.644
  6  37.7286
  7  33.9996
  8  9.30302
  9  6.93443e-06
  10  4.79409e-05
  11  13.4388
  12  5.88204e-06
  13  9.23135
  14  15.4913
  15  19.8486
  16  2.16219e-05
  17  3.444
  18  2.31365e-05
  19  8.26627e-06
  20  15.3921
  21  0.228938
  22  0.229021
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.443e+01  9.303e+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.222e+00  2.290e-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.327e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.35e-05

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) = 5922.99745372
delta logL = 0.0501984362863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5922.99249715
delta logL = 0.0551550078271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.908       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3533       1.0000          .0000       10.000    
     3 'Normalizat'    .95641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2055       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=   5922.992     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.908        273.29        .25933E-02    .91429E-04
   2  Index         2.3533        5.7408        .24088       -.55973E-05
   3  Normalizat    .95639        .18294        .45618E-01    .13503E-04
   4  Prefactor     1.2056        .12536        .57788E-01    .48333E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9081
  Index      = 2.3533
  Normalizat = 0.956394
  Prefactor  = 1.20555
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.992     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.908        9.9330        .10373E-03   -1.4936    
   2  Index         2.3533        .75645        .89921E-02   -.55782    
   3  Normalizat    .95639        .22652        .26878E-03   -.94506    
   4  Prefactor     1.2056        .23108        .25554E-03   -.86161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69638e-12
Minuit parameter uncertainties:
  1  9.93405
  2  0.76052
  3  0.226743
  4  0.231278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1382': 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) = 5922.99249715
delta logL = 0.0551550111913

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.491e+01  9.934e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.353e+00  7.605e-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.206e+00  2.313e-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.564e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.35 +/- 0.76
Photon Flux (Free Index): 6.34e-08 +/- 6.49e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.63e-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/1382/cmap_HighResolution_610761601_611020801_4FGL_J1036.2+2202_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='2.22e-05', photon_flux_error='5.20e-08', dlogl='5.52e-02', energy_flux='2.09e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-02 05:04:48.465541', photon_index_error2='0.76', photon_index2='2.35', ts='4.84', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.93', time_epoch_completed='1630584288.47', return_code='0', job_id='1382', GAL2='1.21', EG2='0.96', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.49e-08', ts2='4.92', photon_index='2.61' WHERE bin_id='1433' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:04:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 1382: <4FGL_J1036.2+2202_daily_bin1433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1433 159.053 22.0401 610761601 611020801 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 :                                   573.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            865 sec.

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

