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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin633
RA = 159.053, Dec = 22.0401
tmin = 403401601, tmax = 403660801
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='996940', job_status='RUN', time_executed='2021-09-02 04:36:36.946928', time_epoch_executed='1630582596.95' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996940/ft1_4FGL_J1036.2+2202_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996940/ft2_4FGL_J1036.2+2202_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996940/ft1_4FGL_J1036.2+2202_daily_bin633.fits outfile=/scratch/kocevski/996940/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin633.fits ra=159.053 dec=22.0401 rad=12.0 tmin=403401601.0 tmax=403660801.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 5.55
user 3.72
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996940/ft1_filtered_4FGL_J1036.2+2202_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/996940/ft2_4FGL_J1036.2+2202_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/996940/ltcube_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.fits outfile=/scratch/kocevski/996940/expmap_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.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/996940/ltcube_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.fits
.....................!
real 192.16
user 186.71
sys 4.74

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/996940/ft1_filtered_4FGL_J1036.2+2202_daily_bin633.fits scfile=/scratch/kocevski/996940/ft2_4FGL_J1036.2+2202_daily_bin633.fits outfile=/scratch/kocevski/996940/cmap_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996940/ft1_filtered_4FGL_J1036.2+2202_daily_bin633.fits scfile=/scratch/kocevski/996940/ft2_4FGL_J1036.2+2202_daily_bin633.fits outfile=/scratch/kocevski/996940/cmap_HighResolution_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.308       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1572       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.553       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14855E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.434       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7006       1.0000         .10000E-03   10000.    
    19 'norm      '    .11408E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37142       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93246       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0008       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=   6334.651     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2752 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.586        64.140        .20661E-03    .54144E-04
   2  Prefactor     73.294        45.573        .46891E-04    .79135E-04
   3  Prefactor     5.1683        6.1584        .17681E-03    .21180E-03
   4  Prefactor     3.1565        2.8807        .12223E-03    .22461E-03
   5  norm          .10000E-03    4.6314        .16660E-02** at limit **
   6  Prefactor     17.336        38.144        .96151E-04    .59355E-04
   7  Prefactor     .94611        46.975        .15954        .14299E-03
   8  Prefactor     6.6527        8.9710        .15555E-03    .12476E-03
   9  Prefactor     .10000E-03    .80615        .69398E-03** at limit **
  10  Prefactor     18.639        10.201        .92762E-04    .21864E-03
  11  Prefactor     28.547        15.195        .74977E-04    .15390E-03
  12  Prefactor     .10000E-03    20.684        .18142E-02** at limit **
  13  Prefactor     .10000E-03    18.043        .18142E-02** at limit **
  14  Prefactor     .10000E-03    19.232        .36285E-03** at limit **
  15  Prefactor     23.455        22.275        .82746E-04    .42592E-04
  16  norm          1.4254        2.0685        .13143E-03    .22784E-03
  17  Prefactor     5.8448        3.3040        .10413E-03    .79680E-03
  18  Prefactor     8.7133        6.5185        .13589E-03   -.61406E-04
  19  norm          .10000E-03    40.029        .36285E-03** at limit **
  20  Prefactor     .24344        14.475        .84008E-01    .25278E-03
  21  Normalizat    .93255        .22418        .26479E-03    .34366E-03
  22  Prefactor     1.0010        .20991        .26073E-03    .26254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.5864
  Prefactor  = 73.294
  Prefactor  = 5.16826
  Prefactor  = 3.15646
  norm       = 0.0001
  Prefactor  = 17.3362
  Prefactor  = 0.946114
  Prefactor  = 6.65274
  Prefactor  = 0.0001
  Prefactor  = 18.6391
  Prefactor  = 28.5475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4548
  norm       = 1.42536
  Prefactor  = 5.84485
  Prefactor  = 8.71333
  norm       = 0.0001
  Prefactor  = 0.243445
  Normalizat = 0.932545
  Prefactor  = 1.001
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.651     FROM HESSE     STATUS=OK           340 CALLS     3092 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.586        64.139        .82645E-05   -1.3760    
   2  Prefactor     73.294        45.572        .93783E-05   -1.3994    
   3  Prefactor     5.1683        6.1578        .70724E-05   -1.5253    
   4  Prefactor     3.1565        2.8805        .48894E-05   -1.5353    
   5  norm          .10000E-03    4.6326        .33321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.336        38.143        .38461E-05   -1.4875    
   7  Prefactor     .94611        45.906        .16241       -1.5513    
   8  Prefactor     6.6527        8.9697        .62221E-05   -1.5192    
   9  Prefactor     .10000E-03    .80619        .13880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.639        10.200        .37105E-05   -1.4844    
  11  Prefactor     28.547        15.193        .29991E-05   -1.4639    
  12  Prefactor     .10000E-03    20.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.234        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.455        22.273        .33098E-05   -1.4739    
  16  norm          1.4254        2.0683        .52572E-05   -1.5469    
  17  Prefactor     5.8448        3.3040        .41651E-05   -1.5224    
  18  Prefactor     8.7133        6.5161        .54357E-05   -1.5118    
  19  norm          .10000E-03    40.031        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24344        13.611        .88046E-01   -1.5609    
  21  Normalizat    .93255        .22437        .52957E-04   -.95326    
  22  Prefactor     1.0010        .21008        .52147E-04   -.92696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23974e-10
Minuit parameter uncertainties:
  1  64.1856
  2  45.5942
  3  6.1586
  4  2.88063
  5  2.41029e-05
  6  38.1965
  7  13.1907
  8  8.9715
  9  4.082e-07
  10  10.2007
  11  15.1952
  12  2.29565e-05
  13  7.59263e-05
  14  0.000189133
  15  22.281
  16  2.06839
  17  3.30407
  18  6.51661
  19  1.94202e-05
  20  3.64076
  21  0.224591
  22  0.210251
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  6.653e+00  8.972e+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.001e+00  2.103e-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.325e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996940/likelihoodResults_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.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) = 6334.20294151
delta logL = 0.447848192296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6334.20235493
delta logL = 0.448434775463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0090       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4601       1.0000          .0000       10.000    
     3 'Normalizat'    .88745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       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=   6334.202     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0163        102.77        .44919E-02    .36334E-03
   2  Index         3.4593        6.7167        .16250        .88140E-04
   3  Normalizat    .88741        .62324E-01    .44741E-01    .83799E-05
   4  Prefactor     1.0293        .62717E-01    .41318E-01    .49354E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.01631
  Index      = 3.45932
  Normalizat = 0.88741
  Prefactor  = 1.02927
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.202     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0163        7.5122        .14170E-03   -1.5260    
   2  Index         3.4593        1.0751        .80525E-02   -.31323    
   3  Normalizat    .88741        .21440        .27052E-03   -.96904    
   4  Prefactor     1.0293        .21181        .25744E-03   -.91760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24665e-09
Minuit parameter uncertainties:
  1  7.51366
  2  1.08447
  3  0.214604
  4  0.211978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996940': 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) = 6334.20235431
delta logL = 0.448435396546

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  5.016e+00  7.514e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.459e+00  1.084e+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.029e+00  2.120e-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.874e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.46 +/- 1.08
Photon Flux (Free Index): 7.90e-08 +/- 7.09e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.17e-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/996940/cmap_HighResolution_403401601_403660801_4FGL_J1036.2+2202_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='4.48e-01', photon_flux2='7.90e-08', job_status='DONE', time_completed='2021-09-02 04:48:13.172355', photon_index_error2='1.08', photon_index2='3.46', ts='0.71', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.17e-05', EG='0.93', time_epoch_completed='1630583293.17', return_code='0', job_id='996940', GAL2='1.03', EG2='0.89', return_code2='0', photon_flux_error2='7.09e-08', ts2='1.70', photon_index='2.61' WHERE bin_id='633' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:48:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 996940: <4FGL_J1036.2+2202_daily_bin633> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin633> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:33 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:36:21 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:36:21 2021
Terminated at Thu Sep  2 04:48:13 2021
Results reported at Thu Sep  2 04:48:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin633 159.053 22.0401 403401601 403660801 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 :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            760 sec.

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

