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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin871
RA = 158.173, Dec = 37.6234
tmin = 465091201, tmax = 465350401
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='966678', job_status='RUN', time_executed='2021-09-02 02:56:44.512787', time_epoch_executed='1630576604.51' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966678/ft1_4FGL_J1032.6+3737_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966678/ft1_4FGL_J1032.6+3737_daily_bin871.fits outfile=/scratch/kocevski/966678/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin871.fits ra=158.173 dec=37.6234 rad=12.0 tmin=465091201.0 tmax=465350401.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.43
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966678/ft1_filtered_4FGL_J1032.6+3737_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/966678/ltcube_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.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/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits
.....................!
real 17.27
user 16.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966678/ft1_filtered_4FGL_J1032.6+3737_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/966678/ltcube_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.fits outfile=/scratch/kocevski/966678/expmap_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.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/966678/ltcube_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.fits
.....................!
real 193.43
user 188.70
sys 3.97

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/966678/ft1_filtered_4FGL_J1032.6+3737_daily_bin871.fits scfile=/scratch/kocevski/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits outfile=/scratch/kocevski/966678/cmap_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/966678/ft1_filtered_4FGL_J1032.6+3737_daily_bin871.fits scfile=/scratch/kocevski/966678/ft2_4FGL_J1032.6+3737_daily_bin871.fits outfile=/scratch/kocevski/966678/cmap_HighResolution_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8448       1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1560       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1072       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.207       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.766       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4099       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67644E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    12.592       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12280E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .74525       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62064       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=   5994.269     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3546 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.5427        .35960E-06** at limit **
   2  Prefactor     .10000E-03    42.563        .36374E-05** at limit **
   3  Prefactor     49.054        33.536       -.13215E-05   -.24691E-03
   4  Prefactor     1.8451        3.7123        .14162E-06   -.10175E-04
   5  norm          .10000E-03    3.2767        .10232E-07** at limit **
   6  Prefactor     4.1563        2.4629        .67234E-07   -.25703E-04
   7  Prefactor     .10000E-03    1.3124       -.39300E-07** at limit **
   8  Prefactor     .10000E-03    22.600        .30183E-05** at limit **
   9  Prefactor     6.1074        3.7871       -.10786E-06   -.34901E-04
  10  norm          1.9841        8.6162        .93659E-05   -.31299E-03
  11  Prefactor     16.228        22.797        .55887E-05    .35116E-03
  12  Prefactor     .10000E-03    10.019        .66999E-06** at limit **
  13  Prefactor     5.3887        4.7106       -.42000E-06    .45973E-04
  14  Prefactor     .10000E-03    1.5351        .57734E-08** at limit **
  15  Prefactor     .10000E-03    21.024       -.19749E-05** at limit **
  16  Prefactor     .10000E-03    8.0157       -.80649E-07** at limit **
  17  Prefactor     32.728        65.671        .21352E-05    .25277E-04
  18  Prefactor     2.4137        17.506        .73395E-06   -.27465E-05
  19  norm          1.7793        .36897        .54465E-08    .14808E-02
  20  Prefactor     3.6167        3.6825        .34969E-07   -.99567E-05
  21  Prefactor     .10000E-03    9.7335       -.73644E-06** at limit **
  22  Prefactor     .11414E-03    15.548       -.17138E-05** at limit **
  23  norm          12.589        14.130        .43725E-06    .89970E-04
  24  Prefactor     .10000E-03    1.7606        .12585E-06** at limit **
  25  Prefactor     .10000E-03    31.652       -.24883E-05** at limit **
  26  norm          .74267        2.4143        .46213E-06    .69012E-04
  27  Normalizat    1.1626        .16555       -.12908E-05   -.72703E-04
  28  Prefactor     .62054        .19020        .20226E-06   -.38259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 49.0545
  Prefactor  = 1.84509
  norm       = 0.0001
  Prefactor  = 4.15626
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.10736
  norm       = 1.98407
  Prefactor  = 16.228
  Prefactor  = 0.0001
  Prefactor  = 5.38874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7275
  Prefactor  = 2.41372
  norm       = 1.77929
  Prefactor  = 3.61669
  Prefactor  = 0.0001
  Prefactor  = 0.00011414
  norm       = 12.589
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.742675
  Normalizat = 1.16258
  Prefactor  = 0.620538
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.269     FROM HESSE     STATUS=OK           525 CALLS     4071 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.054        33.753        .57249E-04   -1.4306    
   4  Prefactor     1.8451        3.6779        .20586E-03   -1.5436    
   5  norm          .10000E-03    3.2794        .13687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1563        2.4636        .89953E-04   -1.5300    
   7  Prefactor     .10000E-03    1.3304        .86433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1074        3.7869        .11319E-03   -1.5214    
  10  norm          1.9841        8.7840        .14706E-02   -1.5426    
  11  Prefactor     16.228        22.948        .99487E-04   -1.4902    
  12  Prefactor     .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3887        4.7288        .14526E-03   -1.5244    
  14  Prefactor     .10000E-03    1.5408        .93657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.728        65.702        .70002E-04   -1.4563    
  18  Prefactor     2.4137        16.961        .26372E-03   -1.5397    
  19  norm          1.7793        .37420        .19759E-04   -1.5441    
  20  Prefactor     3.6167        3.6223        .13253E-03   -1.5328    
  21  Prefactor     .10000E-03    9.7634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11414E-03    18.640        .82669E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.589        14.061        .11288E-03   -1.4998    
  24  Prefactor     .10000E-03    3.3229        .19255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .74267        2.3335        .20312E-03   -1.5536    
  27  Normalizat    1.1626        .19002        .20378E-03   -.87767    
  28  Prefactor     .62054        .21641        .32539E-03   -1.0673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19638e-09
Minuit parameter uncertainties:
  1  4.49368e-05
  2  0.000847923
  3  33.7666
  4  3.6783
  5  1.22904e-06
  6  2.46369
  7  2.3493e-06
  8  0.000262881
  9  3.78704
  10  8.35125
  11  22.9604
  12  4.30957e-05
  13  4.72908
  14  6.18812e-07
  15  0.000194248
  16  7.70023e-06
  17  65.8473
  18  12.8016
  19  0.374199
  20  3.62251
  21  4.36166e-05
  22  0.0324796
  23  14.0646
  24  7.0918e-06
  25  0.000284555
  26  2.33378
  27  0.190131
  28  0.216699
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  4.310e-05  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:  6.205e-01  2.167e-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.163e+00  1.901e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966678/likelihoodResults_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.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) = 5994.26963605
delta logL = -0.000473974797387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5994.26916495
delta logL = -2.87075727101e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13653E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0536       1.0000          .0000       10.000    
     3 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62021       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=   5994.269     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    98.858        .18142E-02** at limit **
   2  Index         1.9892        5.6456        .50000        .14276E-04
   3  Normalizat    1.1626        .11780E-01    .20378E-03    .17239E-04
   4  Prefactor     .62054        .14188E-01    .32539E-03    .88044E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010163
  Index      = 1.98923
  Normalizat = 1.16258
  Prefactor  = 0.620538
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.269     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10163E-03    439.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9892        5.9696        .50000       -.64620    
   3  Normalizat    1.1626        .25915E-01    .81512E-05   -.87767    
   4  Prefactor     .62054        .31208E-01    .13016E-04   -1.0673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.47926e-08
Minuit parameter uncertainties:
  1  0.0539065
  2  756.711
  3  0.0259157
  4  0.0312085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966678': 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) = 5994.26916181
delta logL = 2.60626620729e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.016e-04  5.391e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.989e+00  7.567e+02  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:  6.205e-01  3.121e-02  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.163e+00  2.592e-02  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/966678/cmap_HighResolution_465091201_465350401_4FGL_J1032.6+3737_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-02 03:11:19.201913', job_id='966678', GAL2='0.62', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630577479.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='871' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 966678: <4FGL_J1032.6+3737_daily_bin871> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin871> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 02:55:31 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:56:33 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:56:33 2021
Terminated at Thu Sep  2 03:11:19 2021
Results reported at Thu Sep  2 03:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin871 158.173 37.6234 465091201 465350401 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 :                                   869.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            948 sec.

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

