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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin961
RA = 158.173, Dec = 37.6234
tmin = 488419201, tmax = 488678401
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='966819', job_status='RUN', time_executed='2021-09-02 02:59:09.965992', time_epoch_executed='1630576749.97' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966819/ft1_4FGL_J1032.6+3737_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966819/ft2_4FGL_J1032.6+3737_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966819/ft1_4FGL_J1032.6+3737_daily_bin961.fits outfile=/scratch/kocevski/966819/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin961.fits ra=158.173 dec=37.6234 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.22
user 6.88
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966819/ft1_filtered_4FGL_J1032.6+3737_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/966819/ft2_4FGL_J1032.6+3737_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/966819/ltcube_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.fits outfile=/scratch/kocevski/966819/expmap_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.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/966819/ltcube_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.fits
.....................!
real 191.90
user 186.83
sys 4.38

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/966819/ft1_filtered_4FGL_J1032.6+3737_daily_bin961.fits scfile=/scratch/kocevski/966819/ft2_4FGL_J1032.6+3737_daily_bin961.fits outfile=/scratch/kocevski/966819/cmap_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/966819/ft1_filtered_4FGL_J1032.6+3737_daily_bin961.fits scfile=/scratch/kocevski/966819/ft2_4FGL_J1032.6+3737_daily_bin961.fits outfile=/scratch/kocevski/966819/cmap_HighResolution_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4082       1.0000         .10000E-03   10000.    
     5 'norm      '    26.802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7516       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4113       1.0000         .10000E-03   10000.    
    10 'norm      '    41.277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87740E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.033       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8208       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.844       1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67944       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1060       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=   3640.020     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3426 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.660       -.16290E-06** at limit **
   2  Prefactor     13.425        22.595        .49024E-06   -.74971E-05
   3  Prefactor     .10000E-03    11.872        .39641E-08** at limit **
   4  Prefactor     8.4100        7.4777        .48324E-07   -.28892E-05
   5  norm          26.803        16.802        .10947E-06   -.24057E-05
   6  Prefactor     1.7516        1.9216        .61071E-08    .14107E-04
   7  Prefactor     .10000E-03    1.2664       -.28715E-07** at limit **
   8  Prefactor     .10000E-03    14.768       -.56663E-07** at limit **
   9  Prefactor     2.4105        3.4516        .10974E-06   -.47485E-05
  10  norm          41.278        17.749        .20243E-07   -.10941E-04
  11  Prefactor     .10000E-03    358.36       -.92320E-05** at limit **
  12  Prefactor     .10000E-03    13.597        .27001E-06** at limit **
  13  Prefactor     9.1444        9.0733        .31456E-06   -.11590E-04
  14  Prefactor     .10000E-03    2.3114        .25544E-06** at limit **
  15  Prefactor     64.599        67.183        .19137E-06    .23737E-04
  16  Prefactor     .10000E-03    62.037        .11399E-05** at limit **
  17  Prefactor     .10000E-03    72.851       -.26449E-06** at limit **
  18  Prefactor     13.034        17.569       -.12308E-07   -.67093E-05
  19  norm          1.9326        .50302       -.38723E-07   -.63232E-04
  20  Prefactor     3.6292        5.8019        .33522E-06   -.56351E-05
  21  Prefactor     6.5184        17.312        .53424E-05    .25610E-05
  22  Prefactor     .10000E-03    6.1601       -.28357E-07** at limit **
  23  norm          .10000E-03    8.1102       -.18246E-06** at limit **
  24  Prefactor     4.8205        3.8591       -.68320E-07   -.51562E-04
  25  Prefactor     13.866        46.040        .50236E-06    .74251E-05
  26  norm          .10000E-03    1.7921        .41142E-06** at limit **
  27  Normalizat    .67940        .20139       -.12735E-05   -.29826E-04
  28  Prefactor     1.1061        .24602       -.10817E-05   -.30782E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.4252
  Prefactor  = 0.0001
  Prefactor  = 8.41002
  norm       = 26.8027
  Prefactor  = 1.75158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41052
  norm       = 41.2782
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.14443
  Prefactor  = 0.0001
  Prefactor  = 64.5989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.034
  norm       = 1.93262
  Prefactor  = 3.62923
  Prefactor  = 6.51838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.82053
  Prefactor  = 13.8656
  norm       = 0.0001
  Normalizat = 0.679396
  Prefactor  = 1.10609
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.020     FROM HESSE     STATUS=OK           521 CALLS     3947 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.425        22.588        .10929E-03   -1.4975    
   3  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4100        7.4796        .13825E-03   -1.5128    
   5  norm          26.803        16.802        .77381E-04   -1.4672    
   6  Prefactor     1.7516        1.9224        .85056E-04   -1.5443    
   7  Prefactor     .10000E-03    1.2688        .66250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4105        3.4328        .12921E-03   -1.5397    
  10  norm          41.278        17.739        .62393E-04   -1.4422    
  11  Prefactor     .10000E-03    364.59        .20846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1444        9.0806        .13253E-03   -1.5103    
  14  Prefactor     .10000E-03    2.3175        .89578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.599        67.192        .49945E-04   -1.4099    
  16  Prefactor     .10000E-03    63.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.034        17.472        .11095E-03   -1.4986    
  19  norm          1.9326        .50361        .20642E-04   -1.5430    
  20  Prefactor     3.6292        5.7599        .15543E-03   -1.5327    
  21  Prefactor     6.5184        17.355        .78595E-03   -1.5197    
  22  Prefactor     .10000E-03    6.1615        .14625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.1374        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8205        3.8750        .91926E-04   -1.5269    
  25  Prefactor     13.866        46.206        .10765E-03   -1.4963    
  26  norm          .10000E-03    1.8106        .78769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .67940        .23280        .25861E-03   -1.0471    
  28  Prefactor     1.1061        .28522        .26360E-03   -.89272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0896e-11
Minuit parameter uncertainties:
  1  5.58184e-07
  2  22.6025
  3  1.77414e-05
  4  7.48041
  5  16.8054
  6  1.92246
  7  1.35946e-06
  8  2.86014e-06
  9  3.43313
  10  17.7408
  11  0.00216457
  12  7.18855e-06
  13  9.08195
  14  1.53849e-06
  15  67.2705
  16  0.000299049
  17  0.000249728
  18  17.4787
  19  0.503611
  20  5.76073
  21  17.3679
  22  5.15475e-06
  23  2.54341e-05
  24  3.87525
  25  46.326
  26  6.34494e-07
  27  0.233134
  28  0.285615
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  7.189e-06  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.106e+00  2.856e-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:  6.794e-01  2.331e-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: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966819/likelihoodResults_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.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) = 3640.01995827
delta logL = -0.00034690982875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3640.01961445
delta logL = -3.09175220536e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11484E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0422       1.0000          .0000       10.000    
     3 'Normalizat'    .67989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       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=   3640.020     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10233E-03    107.54        .18142E-02** at limit **
   2  Index         1.9746        7.3755        .50000        .15622E-04
   3  Normalizat    .67940        .13028E-01    .25861E-03    .14419E-04
   4  Prefactor     1.1061        .16672E-01    .26360E-03    .97687E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102333
  Index      = 1.97461
  Normalizat = 0.679396
  Prefactor  = 1.10609
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.020     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10233E-03    457.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9746        7.8650        .50000       -.64986    
   3  Normalizat    .67940        .27720E-01    .10344E-04   -1.0471    
   4  Prefactor     1.1061        .35473E-01    .10544E-04   -.89272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59382e-08
Minuit parameter uncertainties:
  1  0.0658376
  2  562.465
  3  0.027721
  4  0.0354741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966819': 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) = 3640.019611
delta logL = 3.63850176655e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.023e-04  6.584e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.975e+00  5.625e+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:  1.106e+00  3.547e-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:  6.794e-01  2.772e-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/966819/cmap_HighResolution_488419201_488678401_4FGL_J1032.6+3737_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-02 03:10:13.692612', job_id='966819', GAL2='1.11', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630577413.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='961' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 966819: <4FGL_J1032.6+3737_daily_bin961> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin961> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 02:55:44 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:59:01 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:59:01 2021
Terminated at Thu Sep  2 03:10:14 2021
Results reported at Thu Sep  2 03:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin961 158.173 37.6234 488419201 488678401 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 :                                   658.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            870 sec.

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

