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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1611
RA = 159.053, Dec = 22.0401
tmin = 656899201, tmax = 657158401
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='297236', job_status='RUN', time_executed='2021-12-07 21:08:30.937949', time_epoch_executed='1638940110.94' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297236

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297236/ft1_4FGL_J1036.2+2202_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297236/ft2_4FGL_J1036.2+2202_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297236/ft1_4FGL_J1036.2+2202_daily_bin1611.fits outfile=/scratch/kocevski/297236/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1611.fits ra=159.053 dec=22.0401 rad=12.0 tmin=656899201.0 tmax=657158401.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.68
user 3.43
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297236/ft1_filtered_4FGL_J1036.2+2202_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/297236/ft2_4FGL_J1036.2+2202_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/297236/ltcube_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.fits outfile=/scratch/kocevski/297236/expmap_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.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/297236/ltcube_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.fits
.....................!
real 195.37
user 188.79
sys 5.85

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/297236/ft1_filtered_4FGL_J1036.2+2202_daily_bin1611.fits scfile=/scratch/kocevski/297236/ft2_4FGL_J1036.2+2202_daily_bin1611.fits outfile=/scratch/kocevski/297236/cmap_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297236/ft1_filtered_4FGL_J1036.2+2202_daily_bin1611.fits scfile=/scratch/kocevski/297236/ft2_4FGL_J1036.2+2202_daily_bin1611.fits outfile=/scratch/kocevski/297236/cmap_HighResolution_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.053 yref=22.0401 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67875       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15591E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2475       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5302       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53125       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=   5968.682     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2072 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.679        .25827E-05** at limit **
   2  Prefactor     .10000E-03    12.328       -.40098E-06** at limit **
   3  Prefactor     .10000E-03    3.6935       -.17672E-07** at limit **
   4  Prefactor     .10000E-03    1.0859        .13143E-07** at limit **
   5  norm          .10000E-03    4.0949       -.92798E-08** at limit **
   6  Prefactor     .10000E-03    31.641       -.28007E-05** at limit **
   7  Prefactor     .10000E-03    16.177       -.16007E-06** at limit **
   8  Prefactor     5.3422        7.4030        .15830E-05   -.92191E-04
   9  Prefactor     .67821        1.4195        .33488E-06    .79437E-03
  10  Prefactor     .10000E-03    6.4317        .15426E-06** at limit **
  11  Prefactor     16.741        8.8766       -.13804E-06   -.45119E-04
  12  Prefactor     .10000E-03    88.093        .85367E-06** at limit **
  13  Prefactor     .10000E-03    7.9554       -.98936E-06** at limit **
  14  Prefactor     10.758        9.6972       -.11492E-07   -.18626E-04
  15  Prefactor     .10000E-03    8.7678        .10126E-05** at limit **
  16  norm          2.7899        1.7942        .13336E-07   -.26389E-04
  17  Prefactor     3.0443        3.0043        .42174E-07   -.35332E-04
  18  Prefactor     .10000E-03    5.1847        .40370E-07** at limit **
  19  norm          5.5603        10.997        .12703E-05   -.13901E-04
  20  Prefactor     6.2359        14.677       -.21723E-06    .18832E-06
  21  Normalizat    1.5301        .18049       -.69581E-06   -.19270E-04
  22  Prefactor     .53148        .17531        .39043E-06   -.26019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34216
  Prefactor  = 0.678208
  Prefactor  = 0.0001
  Prefactor  = 16.7409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7582
  Prefactor  = 0.0001
  norm       = 2.7899
  Prefactor  = 3.04433
  Prefactor  = 0.0001
  norm       = 5.56031
  Prefactor  = 6.23592
  Normalizat = 1.53006
  Prefactor  = 0.53148
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.682     FROM HESSE     STATUS=OK           344 CALLS     2416 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7367        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7968        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1219        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3422        7.3206        .86947E-03   -1.5246    
   9  Prefactor     .67821        1.2025        .13175E-02   -1.5543    
  10  Prefactor     .10000E-03    6.6260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.741        8.8828        .97891E-04   -1.4889    
  12  Prefactor     .10000E-03    92.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.758        9.6870        .12216E-03   -1.5052    
  15  Prefactor     .10000E-03    8.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7899        1.7937        .80558E-04   -1.5374    
  17  Prefactor     3.0443        2.9924        .12234E-03   -1.5359    
  18  Prefactor     .10000E-03    5.2864        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5603        10.994        .85199E-03   -1.5236    
  20  Prefactor     6.2359        14.705        .16060E-03   -1.5208    
  21  Normalizat    1.5301        .20855        .20128E-03   -.76937    
  22  Prefactor     .53148        .20233        .32698E-03   -1.1055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15888e-10
Minuit parameter uncertainties:
  1  6.71683e-05
  2  7.23029e-06
  3  8.21598e-07
  4  4.61481e-06
  5  6.30064e-08
  6  9.44866e-05
  7  3.34214e-06
  8  7.32179
  9  1.20257
  10  4.67659e-06
  11  8.88348
  12  0.000195291
  13  1.18714e-05
  14  9.68839
  15  1.85615e-05
  16  1.79377
  17  2.99258
  18  7.06515e-06
  19  10.9977
  20  14.7131
  21  0.208664
  22  0.202606
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  5.342e+00  7.322e+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:  5.315e-01  2.026e-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.530e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/297236/likelihoodResults_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.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) = 5968.66625614
delta logL = 0.0156617823714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5968.66091072
delta logL = 0.0210072029586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1244       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3771       1.0000          .0000       10.000    
     3 'Normalizat'    1.5369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52520       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=   5968.661     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1244        9.0238        .40557E-02   -.16107E-02
   2  Index         2.3777        1.1271        .23993E-01   -.43231E-04
   3  Normalizat    1.5368        .17468        .45455E-01   -.10164E-04
   4  Prefactor     .52532        .17624        .74243E-01    .42062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.1244
  Index      = 2.37774
  Normalizat = 1.53677
  Prefactor  = 0.52532
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.661     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1244        8.4000        .16223E-03   -1.5213    
   2  Index         2.3777        1.0592        .95972E-03   -.55207    
   3  Normalizat    1.5368        .20203        .20092E-03   -.76750    
   4  Prefactor     .52532        .20237        .32873E-03   -1.1083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43996e-09
Minuit parameter uncertainties:
  1  8.40163
  2  1.07043
  3  0.202138
  4  0.202653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297236': 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) = 5968.66091038
delta logL = 0.0210075474524

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  6.124e+00  8.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.378e+00  1.070e+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:  5.253e-01  2.027e-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.537e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/297236/cmap_HighResolution_656899201_657158401_4FGL_J1036.2+2202_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.14e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-12-07 21:18:55.463151', job_id='297236', GAL2='0.53', fit_tolerance='1e-08', EG2='1.54', EG='1.53', time_epoch_completed='1638940735.46', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.10e-02', ts2='0.69', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1611' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:18:55 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 297236: <4FGL_J1036.2+2202_daily_bin1611> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1611> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:05:21 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:05:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:05:48 2021
Terminated at Tue Dec  7 21:18:55 2021
Results reported at Tue Dec  7 21:18:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1611 159.053 22.0401 656899201 657158401 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 :                                   623.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            814 sec.

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

