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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1578
RA = 158.173, Dec = 37.6234
tmin = 648345601, tmax = 648604801
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='970241', job_status='RUN', time_executed='2021-09-02 03:11:40.650944', time_epoch_executed='1630577500.65' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970241/ft1_4FGL_J1032.6+3737_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970241/ft1_4FGL_J1032.6+3737_daily_bin1578.fits outfile=/scratch/kocevski/970241/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1578.fits ra=158.173 dec=37.6234 rad=12.0 tmin=648345601.0 tmax=648604801.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 2.98
user 2.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.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/970241/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1578.fits evtable="EVENTS" outfile="/scratch/kocevski/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits" evtable="EVENTS" scfile=/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits sctable="SC_DATA" outfile=/scratch/kocevski/970241/ltcube_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.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/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits
.....................!
real 18.23
user 17.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/970241/ltcube_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits outfile=/scratch/kocevski/970241/expmap_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.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/970241/ltcube_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits
.....................!
real 192.72
user 187.15
sys 4.68

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/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits scfile=/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits outfile=/scratch/kocevski/970241/cmap_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits scfile=/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits outfile=/scratch/kocevski/970241/cmap_HighResolution_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits', '/scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits', expMap='/scratch/kocevski/970241/expmap_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits', expCube='/scratch/kocevski/970241/ltcube_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/970241/Model_4FGL_J1032.6+3737_daily_bin1578.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/970241/ft1_filtered_4FGL_J1032.6+3737_daily_bin1578.fits
Spacecraft file(s): /scratch/kocevski/970241/ft2_4FGL_J1032.6+3737_daily_bin1578.fits
Exposure map: /scratch/kocevski/970241/expmap_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits
Exposure cube: /scratch/kocevski/970241/ltcube_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/970241/Model_4FGL_J1032.6+3737_daily_bin1578.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) = 1598.82422414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62928E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11199E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16209E-03   1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12750E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13479E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.512       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27656       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5780       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.5378       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .41072       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.8488       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=   1597.014     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     4074 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    763.23        .54321E-06** at limit **
   2  Prefactor    10000.0        9978.3        .38386E-04** at limit **
   3  Prefactor     .10004E-03    381.14        .85266E-05** at limit **
   4  Prefactor     .10000E-03    32.290        .34160E-06** at limit **
   5  norm         10000.0        1349.3        .55910E-05** at limit **
   6  Prefactor     22.083        15.003       -.22946E-06    .26472E-04
   7  Prefactor     1.1276        21.081       -.16767E-04   -.24401E-03
   8  Prefactor     .10000E-03    48.943       -.85811E-06** at limit **
   9  Prefactor     .10000E-03    7.6104        .48165E-06** at limit **
  10  norm          .10000E-03    10.862        .17694E-07** at limit **
  11  Prefactor     .10000E-03    167.51       -.39391E-06** at limit **
  12  Prefactor     .10000E-03    43.918        .94158E-06** at limit **
  13  Prefactor     .10000E-03    6.6317       -.25296E-06** at limit **
  14  Prefactor     .10000E-03    9.6753        .81014E-06** at limit **
  15  Prefactor     .10015E-03    335.21        .20890E-05** at limit **
  16  Prefactor     .10026E-03    1018.5        .13533E-03** at limit **
  17  Prefactor     .10000E-03    83.414        .14935E-05** at limit **
  18  Prefactor     11.514        18.192        .25637E-05   -.35471E-04
  19  norm          1.1112        .57416       -.68759E-06   -.14312E-02
  20  Prefactor     3.2298        4.1298        .86103E-06   -.76786E-04
  21  Prefactor     .13410        1795.0       -.24883E-03    .34132E-04
  22  Prefactor     .10000E-03    11.025        .33564E-06** at limit **
  23  norm          4.6343        29.335       -.13949E-04   -.14377E-03
  24  Prefactor     .10000E-03    1.0909        .29481E-06** at limit **
  25  Prefactor     .10000E-03    21.852        .31431E-06** at limit **
  26  norm          8.5379        4.6766       -.88260E-06   -.23095E-03
  27  Normalizat    .41029        .45902        .27215E-04    .64233E-04
  28  Prefactor     1.8491        .53227       -.12472E-05    .13789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 22.083
  Prefactor  = 1.12757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100149
  Prefactor  = 0.000100259
  Prefactor  = 0.000100001
  Prefactor  = 11.5142
  norm       = 1.11121
  Prefactor  = 3.22977
  Prefactor  = 0.134104
  Prefactor  = 0.0001
  norm       = 4.6343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.53787
  Normalizat = 0.410288
  Prefactor  = 1.84913
 **********
 **   18 **HESSE 
 **********

 FCN=   1597.014     FROM HESSE     STATUS=OK           511 CALLS     4585 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    763.22        .21039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9977.8        .19391E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    381.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        1350.1        .20592E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.083        14.977        .85246E-04   -1.4768    
   7  Prefactor     1.1276        21.986        .35732E-03   -1.5496    
   8  Prefactor     .10000E-03    48.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6248        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.863        .12867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    167.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6448        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6968        .12139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    338.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10026E-03    1007.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    83.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.514        18.187        .11807E-03   -1.5029    
  19  norm          1.1112        .58715        .19900E-04   -1.5497    
  20  Prefactor     3.2298        4.1204        .88525E-04   -1.5349    
  21  Prefactor     .13410        133.57        .65150E-01   -1.5635    
  22  Prefactor     .10000E-03    11.029        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6343        31.168        .18813E-03   -1.5277    
  24  Prefactor     .10000E-03    1.0933        .40763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.5379        4.6711        .61378E-04   -1.5123    
  27  Normalizat    .41029        .48881        .43821E-03   -1.1677    
  28  Prefactor     1.8491        .57974        .26820E-03   -.68178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85481e-09
Minuit parameter uncertainties:
  1  0.000628495
  2  0.33126
  3  0.0081558
  4  2.33762e-05
  5  0.0113415
  6  14.9791
  7  9.96174
  8  0.000284206
  9  5.12327e-06
  10  2.06141e-05
  11  0.00176335
  12  0.00034562
  13  6.90931e-05
  14  0.000113561
  15  0.0142906
  16  0.0329099
  17  0.000681925
  18  18.1954
  19  0.587153
  20  4.12076
  21  8.48047
  22  1.62197e-05
  23  24.0548
  24  2.49416e-06
  25  1.0807e-05
  26  4.67127
  27  0.494031
  28  0.581915
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.456e-04  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.849e+00  5.819e-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:  4.103e-01  4.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970241/likelihoodResults_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.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) = 1597.01411626
delta logL = -0.000106802101527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1597.01400947
delta logL = -1.06242623588e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0168       1.0000          .0000       10.000    
     3 'Normalizat'    .41031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8492       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.

 FCN=   1597.014     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6436.0        .90712E-02** at limit **
   2  Index         1.9998        5.5314        .50000        .29353E-05
   3  Normalizat    .41029        .89167E-01    .98892E-01    .12916E-04
   4  Prefactor     1.8491        .10858        .60667E-01   -.52435E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99978
  Normalizat = 0.410289
  Prefactor  = 1.84913
 **********
 **   18 **HESSE 
 **********

 FCN=   1597.014     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7574.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9998        6.6494        .50000       -.64356    
   3  Normalizat    .41029        .14492        .43818E-03   -1.1677    
   4  Prefactor     1.8491        .17701        .26820E-03   -.68178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10817e-09
Minuit parameter uncertainties:
  1  0.000142373
  2  47.4503
  3  0.145056
  4  0.177076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970241': 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) = 1597.0140094
delta logL = 5.82590473641e-08

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.424e-04  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.000e+00  4.745e+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.849e+00  1.771e-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:  4.103e-01  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/970241/cmap_HighResolution_648345601_648604801_4FGL_J1032.6+3737_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-02 03:19:58.639545', job_id='970241', GAL2='1.85', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630577998.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.85', dlogl='5.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1578' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 970241: <4FGL_J1032.6+3737_daily_bin1578> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1578> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 03:05:57 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:11:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:11:23 2021
Terminated at Thu Sep  2 03:19:59 2021
Results reported at Thu Sep  2 03:19:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1578 158.173 37.6234 648345601 648604801 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 :                                   489.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            842 sec.

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

