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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin472
RA = 158.173, Dec = 37.6234
tmin = 361670401, tmax = 361929601
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='963287', job_status='RUN', time_executed='2021-09-02 02:46:45.130047', time_epoch_executed='1630576005.13' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963287/ft1_4FGL_J1032.6+3737_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963287/ft1_4FGL_J1032.6+3737_daily_bin472.fits outfile=/scratch/kocevski/963287/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin472.fits ra=158.173 dec=37.6234 rad=12.0 tmin=361670401.0 tmax=361929601.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.56
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.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/963287/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin472.fits evtable="EVENTS" outfile="/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/963287/ltcube_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.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/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits
.....................!
real 14.21
user 13.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/963287/ltcube_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits outfile=/scratch/kocevski/963287/expmap_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.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/963287/ltcube_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits
.....................!
real 194.73
user 188.26
sys 5.57

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1032.6+3737 @ 158.173 37.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits outfile=/scratch/kocevski/963287/cmap_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.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=158.173 yref=37.6234 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits outfile=/scratch/kocevski/963287/cmap_HighResolution_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.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=158.173 yref=37.6234 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963287/Model_4FGL_J1032.6+3737_daily_bin472.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/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits.....................!
real 57.55
user 55.87
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits', '/scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits', expMap='/scratch/kocevski/963287/expmap_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits', expCube='/scratch/kocevski/963287/ltcube_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963287/Model_4FGL_J1032.6+3737_daily_bin472.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1032.6+3737'

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.905e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/963287/ft1_filtered_4FGL_J1032.6+3737_daily_bin472.fits
Spacecraft file(s): /scratch/kocevski/963287/ft2_4FGL_J1032.6+3737_daily_bin472.fits
Exposure map: /scratch/kocevski/963287/expmap_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits
Exposure cube: /scratch/kocevski/963287/ltcube_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963287/Model_4FGL_J1032.6+3737_daily_bin472.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) = 6415.23741483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3032       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72623E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .20769E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9257       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .32950       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2577       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6415.224     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3598 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.512        14.960        .55945E-06    .30145E-03
   2  Prefactor     .10000E-03    9.9462        .60600E-06** at limit **
   3  Prefactor     .10000E-03    7.5802        .11185E-06** at limit **
   4  Prefactor     .10000E-03    4.2777        .27426E-07** at limit **
   5  norm          .96119E-01    12.326        .18436E-05   -.30160E-03
   6  Prefactor     .39025        2.0717        .19330E-05    .24087E-03
   7  Prefactor     3.3041        3.7686        .23030E-06    .62867E-04
   8  Prefactor     .10000E-03    20.014        .53575E-07** at limit **
   9  Prefactor     .10000E-03    3.3600       -.44573E-07** at limit **
  10  norm          16.490        9.4923        .12803E-06    .86896E-04
  11  Prefactor     .10585E-03    92.391       -.34083E-05** at limit **
  12  Prefactor     4.8305        86.643       -.99006E-05    .26362E-04
  13  Prefactor     .10000E-03    2.5742       -.46458E-06** at limit **
  14  Prefactor     2.7832        7.7137        .25271E-05   -.13307E-03
  15  Prefactor     9.5189        35.156       -.12231E-05   -.13973E-03
  16  Prefactor     .10000E-03    19.884        .12960E-06** at limit **
  17  Prefactor     .10000E-03    58.818        .29510E-07** at limit **
  18  Prefactor     .10000E-03    5.0341        .39184E-07** at limit **
  19  norm          2.1952        .41530       -.24241E-08   -.31302E-03
  20  Prefactor     .10000E-03    1.1692        .23387E-07** at limit **
  21  Prefactor     .10000E-03    8.3704       -.39602E-08** at limit **
  22  Prefactor     .10000E-03    8.3422        .47417E-08** at limit **
  23  norm          .10003E-03    13.081       -.25294E-06** at limit **
  24  Prefactor     1.9238        2.3475        .12049E-07   -.10572E-03
  25  Prefactor     .10000E-03    22.665       -.14562E-06** at limit **
  26  norm          .32953        1.7923        .17842E-05    .29112E-03
  27  Normalizat    1.2579        .17481       -.19457E-06   -.16335E-03
  28  Prefactor     1.0228        .21224       -.12968E-05   -.75087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0961186
  Prefactor  = 0.390246
  Prefactor  = 3.30405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4904
  Prefactor  = 0.000105848
  Prefactor  = 4.83052
  Prefactor  = 0.0001
  Prefactor  = 2.78324
  Prefactor  = 9.51892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100027
  Prefactor  = 1.92381
  Prefactor  = 0.0001
  norm       = 0.329527
  Normalizat = 1.25786
  Prefactor  = 1.02277
 **********
 **   18 **HESSE 
 **********

 FCN=   6415.224     FROM HESSE     STATUS=OK           535 CALLS     4133 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.512        15.015        .10169E-03   -1.4920    
   2  Prefactor     .10000E-03    9.9638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2934        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96119E-01    15.482        .80691E-01   -1.5646    
   6  Prefactor     .39025        2.1268        .22482E-03   -1.5583    
   7  Prefactor     3.3041        3.7456        .15746E-03   -1.5344    
   8  Prefactor     .10000E-03    20.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4355        .28515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.490        9.4953        .98622E-04   -1.4896    
  11  Prefactor     .10585E-03    67.683        .18701       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8305        108.41        .18387E-03   -1.5268    
  13  Prefactor     .10000E-03    2.6097        .12515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7832        8.5937        .17074E-03   -1.5374    
  15  Prefactor     9.5189        35.367        .12953E-03   -1.5091    
  16  Prefactor     .10000E-03    19.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0443        .17551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1952        .41489        .21603E-04   -1.5412    
  20  Prefactor     .10000E-03    1.1737        .84575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    98.274        .55077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.9238        2.3116        .12935E-03   -1.5431    
  25  Prefactor     .10000E-03    22.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .32953        1.8169        .21074E-03   -1.5593    
  27  Normalizat    1.2579        .20915        .23294E-03   -.84833    
  28  Prefactor     1.0228        .25224        .31385E-03   -.91974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31903e-09
Minuit parameter uncertainties:
  1  15.019
  2  2.03222e-05
  3  4.49545e-06
  4  1.31027e-06
  5  2.43913
  6  1.82191
  7  3.74588
  8  1.43728e-05
  9  3.78932e-06
  10  9.49615
  11  0.0398345
  12  45.8608
  13  3.29861e-06
  14  8.59746
  15  35.4447
  16  4.46166e-05
  17  4.91399e-05
  18  4.26287e-06
  19  0.414893
  20  1.19954e-06
  21  4.85938e-06
  22  1.84148e-06
  23  0.00327171
  24  2.31166
  25  3.44783e-05
  26  1.54736
  27  0.209291
  28  0.252533
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  4.831e+00  4.586e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.023e+00  2.525e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.258e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963287/likelihoodResults_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.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) = 6414.91139173
delta logL = 0.312966878341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.90994412
delta logL = 0.314414481608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.816       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3012       1.0000          .0000       10.000    
     3 'Normalizat'    1.2603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6414.910     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      307 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.815        30.428        .92333E-04    .50770E-03
   2  Index         1.3016        .79303        .13555E-01    .20664E-03
   3  Normalizat    1.2602        .20295        .23272E-03   -.91880E-04
   4  Prefactor     1.0196        .25046        .31417E-03   -.72590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8146
  Index      = 1.30158
  Normalizat = 1.26022
  Prefactor  = 1.01961
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.910     FROM HESSE     STATUS=OK            23 CALLS      330 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.815        30.685        .18467E-04   -1.4840    
   2  Index         1.3016        .79995        .54221E-03   -.83260    
   3  Normalizat    1.2602        .20314        .46544E-04   -.84762    
   4  Prefactor     1.0196        .25069        .12567E-04   -.92079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51079e-09
Minuit parameter uncertainties:
  1  30.7104
  2  0.807684
  3  0.203269
  4  0.250982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963287': 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) = 6414.90994385
delta logL = 0.314414753223

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.881e+01  3.071e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.302e+00  8.077e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.020e+00  2.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.260e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 158.173 37.623

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/963287/cmap_HighResolution_361670401_361929601_4FGL_J1032.6+3737_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-02 03:01:57.904209', job_id='963287', GAL2='1.02', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630576917.9', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.14e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='472' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:01:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 963287: <4FGL_J1032.6+3737_daily_bin472> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin472> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 02:45:26 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:45:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 02:45:57 2021
Terminated at Thu Sep  2 03:01:58 2021
Results reported at Thu Sep  2 03:01:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin472 158.173 37.6234 361670401 361929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1032.6+3737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            992 sec.

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

