/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 100 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin15
RA = 159.053, Dec = 22.0401
tmin = 243216001, tmax = 243475201
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='993005', job_status='RUN', time_executed='2021-09-02 04:23:24.751917', time_epoch_executed='1630581804.75' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993005

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993005/ft1_4FGL_J1036.2+2202_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993005/ft1_4FGL_J1036.2+2202_daily_bin15.fits outfile=/scratch/kocevski/993005/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin15.fits ra=159.053 dec=22.0401 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.40
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.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/993005/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/993005/ft1_filtered_4FGL_J1036.2+2202_daily_bin15.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993005/ft1_filtered_4FGL_J1036.2+2202_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/993005/ltcube_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.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/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits
.....................!
real 20.11
user 19.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993005/ft1_filtered_4FGL_J1036.2+2202_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/993005/ltcube_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.fits outfile=/scratch/kocevski/993005/expmap_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.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/993005/ltcube_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.fits
.....................!
real 194.63
user 189.38
sys 4.07

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/993005/ft1_filtered_4FGL_J1036.2+2202_daily_bin15.fits scfile=/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits outfile=/scratch/kocevski/993005/cmap_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993005/ft1_filtered_4FGL_J1036.2+2202_daily_bin15.fits scfile=/scratch/kocevski/993005/ft2_4FGL_J1036.2+2202_daily_bin15.fits outfile=/scratch/kocevski/993005/cmap_HighResolution_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.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.63
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9307       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0024       1.0000         .10000E-03   10000.    
     5 'norm      '    20.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .47425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12668E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.711       1.0000         .10000E-03   10000.    
    19 'norm      '    27.737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75142       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2597       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8122.426     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2411 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.257        .84913E-07** at limit **
   2  Prefactor     16.051        33.669        .10426E-06   -.53486E-04
   3  Prefactor     6.9293        5.8823        .10980E-06   -.21756E-03
   4  Prefactor     1.0023        1.7768        .43496E-06    .12562E-03
   5  norm          20.350        8.4938       -.46903E-07   -.33138E-03
   6  Prefactor     .10000E-03    28.084       -.78913E-07** at limit **
   7  Prefactor     .10000E-03    21.187        .11893E-06** at limit **
   8  Prefactor     1.6854        6.8070        .23731E-05    .52586E-04
   9  Prefactor     5.4625        2.3546       -.66675E-07   -.40453E-03
  10  Prefactor     .58480        2.7053        .27724E-06   -.29276E-03
  11  Prefactor     .10000E-03    7.4386       -.98026E-09** at limit **
  12  Prefactor     3.3536        20.371        .63554E-06   -.20461E-04
  13  Prefactor     8.2167        6.5904       -.34840E-07   -.16686E-03
  14  Prefactor     10.816        8.5143        .11282E-06    .27764E-03
  15  Prefactor     .10000E-03    3.8764       -.35196E-08** at limit **
  16  norm          .47400        1.2593        .68534E-06   -.21438E-03
  17  Prefactor     .10000E-03    1.3689        .51752E-06** at limit **
  18  Prefactor     10.710        5.1480        .49217E-07    .98564E-04
  19  norm          27.736        16.316        .29122E-07   -.56668E-04
  20  Prefactor     .10000E-03    4.1457        .27432E-07** at limit **
  21  Normalizat    .75163        .15113       -.11700E-05   -.24896E-03
  22  Prefactor     1.2596        .15202        .27627E-07   -.29823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0509
  Prefactor  = 6.92935
  Prefactor  = 1.00225
  norm       = 20.3501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68544
  Prefactor  = 5.46254
  Prefactor  = 0.584795
  Prefactor  = 0.0001
  Prefactor  = 3.35365
  Prefactor  = 8.21667
  Prefactor  = 10.8159
  Prefactor  = 0.0001
  norm       = 0.473996
  Prefactor  = 0.0001
  Prefactor  = 10.7102
  norm       = 27.7356
  Prefactor  = 0.0001
  Normalizat = 0.751632
  Prefactor  = 1.25962
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.426     FROM HESSE     STATUS=OK           354 CALLS     2765 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.051        33.767        .99664E-04   -1.4906    
   3  Prefactor     6.9293        5.8653        .15239E-03   -1.5181    
   4  Prefactor     1.0023        1.6761        .15583E-02   -1.5508    
   5  norm          20.350        8.5256        .88784E-04   -1.4805    
   6  Prefactor     .10000E-03    28.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6854        6.7624        .32409E-03   -1.5448    
   9  Prefactor     5.4625        2.3413        .82706E-04   -1.5240    
  10  Prefactor     .58480        11.767        .27074E-02   -1.5555    
  11  Prefactor     .10000E-03    7.6245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3536        20.366        .22088E-03   -1.5342    
  13  Prefactor     8.2167        6.5894        .13985E-03   -1.5135    
  14  Prefactor     10.816        8.5516        .12184E-03   -1.5050    
  15  Prefactor     .10000E-03    3.8902        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .47400        1.2441        .15854E-03   -1.5570    
  17  Prefactor     .10000E-03    2.4435        .19558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.710        5.1518        .12242E-03   -1.5053    
  19  norm          27.736        16.312        .76068E-04   -1.4654    
  20  Prefactor     .10000E-03    4.1587        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75163        .17574        .27216E-03   -1.0189    
  22  Prefactor     1.2596        .17941        .23243E-03   -.84516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13649e-10
Minuit parameter uncertainties:
  1  0.000195658
  2  33.8072
  3  5.86576
  4  1.67614
  5  8.52609
  6  4.69353e-05
  7  5.19885e-05
  8  6.75319
  9  2.34131
  10  5.2472
  11  7.60076e-06
  12  16.5371
  13  6.58997
  14  8.55261
  15  1.26156e-06
  16  1.24418
  17  6.64577e-05
  18  5.15198
  19  16.3146
  20  1.75608e-06
  21  0.175872
  22  0.179493
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.685e+00  6.753e+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.260e+00  1.795e-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:  7.516e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993005/likelihoodResults_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.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) = 8122.40692892
delta logL = 0.0190112718428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8122.40654075
delta logL = 0.0193994389883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6275       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9795       1.0000          .0000       10.000    
     3 'Normalizat'    .74595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2631       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8122.407     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      304 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6163        6.0983        .32526E-03    .46836E-05
   2  Index         2.9879        2.0681        .96140E-02    .17040E-05
   3  Normalizat    .74610        .17038        .27308E-03    .64113E-05
   4  Prefactor     1.2631        .18018        .23214E-03    .23017E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61633
  Index      = 2.9879
  Normalizat = 0.7461
  Prefactor  = 1.26314
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.407     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6163        5.7136        .13010E-04   -1.5454    
   2  Index         2.9879        1.9454        .38456E-03   -.41416    
   3  Normalizat    .74610        .17067        .10923E-04   -1.0210    
   4  Prefactor     1.2631        .18032        .92857E-05   -.84410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0282e-13
Minuit parameter uncertainties:
  1  5.71552
  2  2.00926
  3  0.17079
  4  0.180406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993005': 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) = 8122.40652821
delta logL = 0.0194119791395

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.616e+00  5.716e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.988e+00  2.009e+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.263e+00  1.804e-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:  7.461e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 159.053 22.040

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993005/cmap_HighResolution_243216001_243475201_4FGL_J1036.2+2202_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-02 04:36:05.738677', job_id='993005', GAL2='1.26', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630582565.74', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.94e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='15' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 993005: <4FGL_J1036.2+2202_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin15 159.053 22.0401 243216001 243475201 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 :                                   749.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            901 sec.

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

