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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin71
RA = 159.053, Dec = 22.0401
tmin = 257731201, tmax = 257990401
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='993096', job_status='RUN', time_executed='2021-09-02 04:25:11.749943', time_epoch_executed='1630581911.75' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993096/ft1_4FGL_J1036.2+2202_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993096/ft2_4FGL_J1036.2+2202_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993096/ft1_4FGL_J1036.2+2202_daily_bin71.fits outfile=/scratch/kocevski/993096/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin71.fits ra=159.053 dec=22.0401 rad=12.0 tmin=257731201.0 tmax=257990401.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.44
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993096/ft1_filtered_4FGL_J1036.2+2202_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/993096/ft2_4FGL_J1036.2+2202_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/993096/ltcube_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.fits outfile=/scratch/kocevski/993096/expmap_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.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/993096/ltcube_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.fits
.....................!
real 193.44
user 186.92
sys 5.60

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/993096/ft1_filtered_4FGL_J1036.2+2202_daily_bin71.fits scfile=/scratch/kocevski/993096/ft2_4FGL_J1036.2+2202_daily_bin71.fits outfile=/scratch/kocevski/993096/cmap_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.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.66
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993096/ft1_filtered_4FGL_J1036.2+2202_daily_bin71.fits scfile=/scratch/kocevski/993096/ft2_4FGL_J1036.2+2202_daily_bin71.fits outfile=/scratch/kocevski/993096/cmap_HighResolution_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.350       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54422E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36641E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3958       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1871       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95837       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1356       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=   6886.021     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2372 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.355        59.104        .68564E-05   -.11020E-04
   2  Prefactor     2.4826        125.89        .23023E-04   -.25585E-04
   3  Prefactor     8.5759        6.4838        .10991E-06   -.19349E-03
   4  Prefactor     .10004E-03    1.0449        .68654E-07** at limit **
   5  norm          6.8368        5.7033       -.49535E-06   -.13440E-03
   6  Prefactor     14.086        15.331       -.62647E-07    .24880E-05
   7  Prefactor     42.072        38.304       -.82095E-05   -.90611E-05
   8  Prefactor     .10000E-03    1.7439        .28102E-08** at limit **
   9  Prefactor     .10000E-03    .83206        .15995E-07** at limit **
  10  Prefactor     .10000E-03    2.1862        .65144E-08** at limit **
  11  Prefactor     .10000E-03    2.2874       -.11134E-07** at limit **
  12  Prefactor     .10000E-03    7.5057        .39400E-06** at limit **
  13  Prefactor     4.0228        4.9635       -.26693E-06   -.16006E-04
  14  Prefactor     .10001E-03    5.7890        .10082E-05** at limit **
  15  Prefactor     7.3920        12.711        .20617E-06   -.10178E-03
  16  norm          1.1356        1.6474       -.18851E-06   -.99205E-03
  17  Prefactor     1.4534        2.4542       -.32612E-06   -.12053E-02
  18  Prefactor     2.1876        5.0592        .57407E-05   -.58440E-03
  19  norm          .10000E-03    5.5568       -.24427E-06** at limit **
  20  Prefactor     .10000E-03    12.116       -.98023E-06** at limit **
  21  Normalizat    .95833        .15766       -.30758E-06   -.23788E-03
  22  Prefactor     1.1356        .16088       -.62605E-06   -.15621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3548
  Prefactor  = 2.48257
  Prefactor  = 8.57591
  Prefactor  = 0.00010004
  norm       = 6.83683
  Prefactor  = 14.0862
  Prefactor  = 42.0719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02276
  Prefactor  = 0.00010001
  Prefactor  = 7.39198
  norm       = 1.13565
  Prefactor  = 1.45336
  Prefactor  = 2.18758
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.95833
  Prefactor  = 1.13557
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.021     FROM HESSE     STATUS=OK           354 CALLS     2726 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.355        59.091        .71561E-04   -1.4587    
   2  Prefactor     2.4826        124.09        .25984E-03   -1.5393    
   3  Prefactor     8.5759        6.4807        .13689E-03   -1.5122    
   4  Prefactor     .10004E-03    2.8446        .28910E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8368        5.7060        .15344E-03   -1.5185    
   6  Prefactor     14.086        15.332        .10672E-03   -1.4957    
   7  Prefactor     42.072        38.593        .61798E-04   -1.4410    
   8  Prefactor     .10000E-03    1.7511        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .84936        .73861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1990        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2924        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0228        4.9552        .19818E-03   -1.5307    
  14  Prefactor     .10001E-03    30.857        .36550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3920        12.695        .14748E-03   -1.5164    
  16  norm          1.1356        1.6198        .12338E-03   -1.5495    
  17  Prefactor     1.4534        2.3245        .15398E-03   -1.5467    
  18  Prefactor     2.1876        4.8244        .26351E-03   -1.5412    
  19  norm          .10000E-03    5.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95833        .18424        .24217E-03   -.94440    
  22  Prefactor     1.1356        .18854        .23938E-03   -.88338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53387e-09
Minuit parameter uncertainties:
  1  59.2017
  2  35.1798
  3  6.48121
  4  0.000676322
  5  5.70642
  6  15.3361
  7  38.616
  8  1.72129e-06
  9  2.13048e-06
  10  2.91382e-06
  11  4.23733e-07
  12  3.85211e-06
  13  4.95569
  14  0.00113555
  15  12.7
  16  1.61983
  17  2.32469
  18  4.82523
  19  3.00019e-07
  20  0.000115905
  21  0.184365
  22  0.188653
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.721e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.136e+00  1.887e-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.583e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993096/likelihoodResults_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6886.02365208
delta logL = -0.00270378851019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6886.0209483
delta logL = -4.76666173199e-09

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 'Index     '    2.6096       1.0000          .0000       10.000    
     3 'Normalizat'    .95834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1356       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6886.021     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    122.10        .10712E-02** at limit **
   2  Index         2.5423        8.7286        .50000        .20020E-04
   3  Normalizat    .95833        .35308E-01    .24217E-03   -.18590E-04
   4  Prefactor     1.1356        .37813E-01    .23938E-03   -.47967E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6886.021     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      379 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    122.10        .23607E-03** at limit **
   2  Index         2.5423        8.7286        .78412E-04    .20020E-04
   3  Normalizat    .95833        .35308E-01    .65538E-06   -.18590E-04
   4  Prefactor     1.1356        .37813E-01    .53907E-06   -.47967E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6886.021     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      419 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8740        .21424E-03** at limit **
   2  Index         2.3444        5.6378        .50000       -.65756E-07
   3  Normalizat    .95833        .17519        .96867E-05    .75817E-04
   4  Prefactor     1.1356        .18762        .95753E-05    .87622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34436
  Normalizat = 0.958331
  Prefactor  = 1.13557
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.021     FROM HESSE     STATUS=OK            29 CALLS      448 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8517        .42847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3444        6.1240        .50000       -.55993    
   3  Normalizat    .95833        .17544        .19373E-05   -.94440    
   4  Prefactor     1.1356        .18790        .19151E-05   -.88338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17644e-12
Minuit parameter uncertainties:
  1  1.91133e-07
  2  104.447
  3  0.175546
  4  0.188015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993096': 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) = 6886.02094744
delta logL = 8.5197007138e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.911e-07  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.344e+00  1.044e+02  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.136e+00  1.880e-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.583e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/993096/cmap_HighResolution_257731201_257990401_4FGL_J1036.2+2202_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-02 04:36:40.406960', job_id='993096', GAL2='1.14', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630582600.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='71' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:36:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 993096: <4FGL_J1036.2+2202_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin71 159.053 22.0401 257731201 257990401 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 :                                   686.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            929 sec.

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

