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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin9
RA = 159.053, Dec = 22.0401
tmin = 241660801, tmax = 241920001
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='992995', job_status='RUN', time_executed='2021-09-02 04:24:08.558409', time_epoch_executed='1630581848.56' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992995/ft1_4FGL_J1036.2+2202_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992995/ft1_4FGL_J1036.2+2202_daily_bin9.fits outfile=/scratch/kocevski/992995/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin9.fits ra=159.053 dec=22.0401 rad=12.0 tmin=241660801.0 tmax=241920001.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.27
user 1.07
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.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/992995/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/992995/ft1_filtered_4FGL_J1036.2+2202_daily_bin9.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.44
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992995/ft1_filtered_4FGL_J1036.2+2202_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/992995/ltcube_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.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/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits
.....................!
real 14.12
user 13.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992995/ft1_filtered_4FGL_J1036.2+2202_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/992995/ltcube_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.fits outfile=/scratch/kocevski/992995/expmap_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.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/992995/ltcube_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.fits
.....................!
real 157.18
user 152.76
sys 3.78

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/992995/ft1_filtered_4FGL_J1036.2+2202_daily_bin9.fits scfile=/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits outfile=/scratch/kocevski/992995/cmap_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.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.51
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992995/ft1_filtered_4FGL_J1036.2+2202_daily_bin9.fits scfile=/scratch/kocevski/992995/ft2_4FGL_J1036.2+2202_daily_bin9.fits outfile=/scratch/kocevski/992995/cmap_HighResolution_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.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.49
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.6363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4035       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82514E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.735       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.451       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5534       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.677       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1307       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94541       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.6085       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=   9023.650     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2126 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.592       -.12520E-05** at limit **
   2  Prefactor     4.6456        124.08        .17392E-05    .13291E-04
   3  Prefactor     .10000E-03    1.4859       -.29924E-07** at limit **
   4  Prefactor     .10000E-03    .87698       -.74157E-07** at limit **
   5  norm          7.4045        7.0255        .14121E-06   -.16760E-04
   6  Prefactor     7.0810        25.369       -.51734E-06    .26211E-04
   7  Prefactor     .10029E-03    273.08        .68103E-05** at limit **
   8  Prefactor     .10000E-03    2.4158       -.14230E-06** at limit **
   9  Prefactor     .10000E-03    1.0402       -.86326E-07** at limit **
  10  Prefactor     20.737        8.3190       -.29578E-07    .12629E-03
  11  Prefactor     2.2013        8.4106        .13401E-04   -.53964E-04
  12  Prefactor     3.1779        46.617       -.13438E-05   -.14759E-04
  13  Prefactor     18.449        13.123       -.31326E-05   -.25641E-04
  14  Prefactor     .10000E-03    8.4719       -.10618E-05** at limit **
  15  Prefactor     7.5571        12.914       -.16274E-05   -.11768E-04
  16  norm          .10000E-03    .70961        .11775E-06** at limit **
  17  Prefactor     .39714        2.1303        .10012E-05   -.52189E-04
  18  Prefactor     12.677        6.2224        .83877E-07    .12932E-04
  19  norm          .10000E-03    8.8433       -.10717E-06** at limit **
  20  Prefactor     5.1312        6.4753        .59468E-07    .77674E-05
  21  Normalizat    .94529        .16818       -.35858E-05   -.55851E-03
  22  Prefactor     1.6086        .17293        .13188E-05   -.52921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.64565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.40449
  Prefactor  = 7.08104
  Prefactor  = 0.000100288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7373
  Prefactor  = 2.20133
  Prefactor  = 3.17792
  Prefactor  = 18.4493
  Prefactor  = 0.0001
  Prefactor  = 7.55712
  norm       = 0.0001
  Prefactor  = 0.39714
  Prefactor  = 12.6775
  norm       = 0.0001
  Prefactor  = 5.13118
  Normalizat = 0.945289
  Prefactor  = 1.6086
 **********
 **   18 **HESSE 
 **********

 FCN=   9023.650     FROM HESSE     STATUS=OK           348 CALLS     2474 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6456        123.93        .18692E-03   -1.5277    
   3  Prefactor     .10000E-03    1.4906        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .89462        .86839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4045        7.0221        .14740E-03   -1.5164    
   6  Prefactor     7.0810        25.358        .15095E-03   -1.5176    
   7  Prefactor     .10029E-03    280.71        .41767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0570        .28548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0791        .18890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.737        8.3238        .87960E-04   -1.4797    
  11  Prefactor     2.2013        8.4934        .13869E-02   -1.5411    
  12  Prefactor     3.1779        46.677        .22830E-03   -1.5351    
  13  Prefactor     18.449        13.174        .93243E-04   -1.4849    
  14  Prefactor     .10000E-03    36.991        .46483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5571        12.905        .14592E-03   -1.5158    
  16  norm          .10000E-03    .72819        .15614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .39714        3.2763        .22828E-02   -1.5582    
  18  Prefactor     12.677        6.2216        .11250E-03   -1.4996    
  19  norm          .10000E-03    8.9863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1312        6.4710        .17749E-03   -1.5255    
  21  Normalizat    .94529        .19561        .29203E-03   -.94887    
  22  Prefactor     1.6086        .20414        .25369E-03   -.74542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03122e-08
Minuit parameter uncertainties:
  1  0.000495178
  2  48.0995
  3  1.73421e-07
  4  2.99437e-06
  5  7.02287
  6  25.3966
  7  0.01806
  8  6.67123e-05
  9  5.80219e-06
  10  8.32424
  11  8.49802
  12  24.3812
  13  13.1763
  14  0.000223054
  15  12.9093
  16  6.47942e-06
  17  2.28123
  18  6.22191
  19  1.47405e-05
  20  6.47193
  21  0.195758
  22  0.204246
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  6.671e-05  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.609e+00  2.042e-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.453e-01  1.958e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992995/likelihoodResults_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.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) = 9023.65031247
delta logL = -0.000671538951792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9023.64964023
delta logL = 7.03594196239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5557       1.0000          .0000       10.000    
     3 'Normalizat'    .94525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6087       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=   9023.650     FROM MIGRAD    STATUS=FAILED       105 CALLS      279 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12907E-03    322.74        .29583E-02** at limit **
   2  Index         2.1405        6.1468        .50000        .13943E-04
   3  Normalizat    .94529        .16087E-01    .29203E-03   -.81751E-05
   4  Prefactor     1.6086        .17662E-01    .25369E-03    .29899E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9023.650     FROM SIMPLEX   STATUS=PROGRESS     121 CALLS      400 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    322.74        .65319E-03** at limit **
   2  Index         2.1388        6.1468        .56717E-03    .13943E-04
   3  Normalizat    .94528        .16087E-01    .43604E-05   -.81751E-05
   4  Prefactor     1.6086        .17662E-01    .37591E-05    .29899E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9023.650     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      442 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    782.22        .11833E-02** at limit **
   2  Index         2.1119        7.6199        .50000        .64642E-05
   3  Normalizat    .94529        .25073E-01    .11681E-04    .14271E-02
   4  Prefactor     1.6086        .27529E-01    .50738E-04    .16770E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100349
  Index      = 2.11188
  Normalizat = 0.945293
  Prefactor  = 1.60861
 **********
 **   18 **HESSE 
 **********

 FCN=   9023.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      471 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    6350.8        .23666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1119        8.2258        .50000       -.61582    
   3  Normalizat    .94529        .56450E-01    .23363E-05   -.94886    
   4  Prefactor     1.6086        .61977E-01    .10148E-04   -.74542    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.10726e-09
Minuit parameter uncertainties:
  1  0.0645558
  2  911.119
  3  0.0564533
  4  0.0619801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992995': 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): 102
logL (Free Index) = 9023.64963609
delta logL = 4.84380143462e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.003e-04  6.456e-02  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.112e+00  9.111e+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.609e+00  6.198e-02  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.453e-01  5.645e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/992995/cmap_HighResolution_241660801_241920001_4FGL_J1036.2+2202_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-02 04:35:09.155509', job_id='992995', GAL2='1.61', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630582509.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='4.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='9' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 992995: <4FGL_J1036.2+2202_daily_bin9> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin9 159.053 22.0401 241660801 241920001 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            845 sec.

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

