/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 151 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1032.6+3737_daily_bin76
RA = 158.173, Dec = 37.6234
tmin = 259027201, tmax = 259286401
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='959479', job_status='RUN', time_executed='2021-09-02 02:35:42.980111', time_epoch_executed='1630575342.98' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959479/ft1_4FGL_J1032.6+3737_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959479/ft2_4FGL_J1032.6+3737_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959479/ft1_4FGL_J1032.6+3737_daily_bin76.fits outfile=/scratch/kocevski/959479/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin76.fits ra=158.173 dec=37.6234 rad=12.0 tmin=259027201.0 tmax=259286401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.47
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959479/ft1_filtered_4FGL_J1032.6+3737_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/959479/ft2_4FGL_J1032.6+3737_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/959479/ltcube_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.fits outfile=/scratch/kocevski/959479/expmap_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.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/959479/ltcube_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.fits
.....................!
real 190.60
user 186.21
sys 3.94

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/959479/ft1_filtered_4FGL_J1032.6+3737_daily_bin76.fits scfile=/scratch/kocevski/959479/ft2_4FGL_J1032.6+3737_daily_bin76.fits outfile=/scratch/kocevski/959479/cmap_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959479/ft1_filtered_4FGL_J1032.6+3737_daily_bin76.fits scfile=/scratch/kocevski/959479/ft2_4FGL_J1032.6+3737_daily_bin76.fits outfile=/scratch/kocevski/959479/cmap_HighResolution_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11384E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .84883E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.370       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30239E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12404E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.966       1.0000         .10000E-03   10000.    
    19 'norm      '    .61335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.302       1.0000         .10000E-03   10000.    
    23 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82005       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1503       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=   4743.711     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3518 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.384        .85693E-06** at limit **
   2  Prefactor     44.166        35.582        .35074E-06    .86209E-04
   3  Prefactor     .10000E-03    24.064       -.11577E-06** at limit **
   4  Prefactor     .10000E-03    4.1785       -.11750E-07** at limit **
   5  norm          .10000E-03    10.115       -.17011E-06** at limit **
   6  Prefactor     3.6100        2.8087        .59630E-07   -.35708E-04
   7  Prefactor     7.2859        5.1604        .19686E-07   -.24160E-03
   8  Prefactor     13.936        25.536       -.14363E-06    .11927E-04
   9  Prefactor     .10000E-03    2.9155        .23352E-07** at limit **
  10  norm          .37019E-01    8.0574       -.94232E-06    .40820E-03
  11  Prefactor     .10000E-03    28.044        .49948E-06** at limit **
  12  Prefactor     75.171        40.248       -.25416E-05   -.43985E-03
  13  Prefactor     13.368        5.8137       -.61962E-07   -.21304E-03
  14  Prefactor     .10000E-03    6.9231        .31400E-05** at limit **
  15  Prefactor     .10000E-03    14.130        .13730E-06** at limit **
  16  Prefactor     .10000E-03    39.910       -.45588E-06** at limit **
  17  Prefactor     .10000E-03    77.850        .16771E-06** at limit **
  18  Prefactor     15.959        11.783        .42318E-07   -.80750E-05
  19  norm          .61335        .25030        .23861E-09   -.21428E-03
  20  Prefactor     3.3474        2.7157        .45143E-08   -.19939E-04
  21  Prefactor     .10000E-03    3.9149        .36279E-09** at limit **
  22  Prefactor     23.302        14.511        .49550E-07   -.18834E-04
  23  norm          .10000E-03    10.318        .55483E-06** at limit **
  24  Prefactor     .10000E-03    .99009       -.21082E-07** at limit **
  25  Prefactor     .10000E-03    12.423       -.26446E-06** at limit **
  26  norm          .10000E-03    .77550       -.91950E-08** at limit **
  27  Normalizat    .82023        .18185       -.77478E-06   -.20772E-03
  28  Prefactor     1.1500        .21913        .29093E-06   -.21117E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 44.1659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.61003
  Prefactor  = 7.28589
  Prefactor  = 13.936
  Prefactor  = 0.0001
  norm       = 0.0370187
  Prefactor  = 0.000100001
  Prefactor  = 75.1706
  Prefactor  = 13.3681
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9595
  norm       = 0.613348
  Prefactor  = 3.3474
  Prefactor  = 0.0001
  Prefactor  = 23.3021
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.82023
  Prefactor  = 1.15004
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.711     FROM HESSE     STATUS=OK           519 CALLS     4037 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.166        35.569        .60293E-04   -1.4378    
   3  Prefactor     .10000E-03    24.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1871        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6100        2.8055        .98075E-04   -1.5328    
   7  Prefactor     7.2859        5.1567        .12364E-03   -1.5168    
   8  Prefactor     13.936        25.712        .10741E-03   -1.4961    
   9  Prefactor     .10000E-03    2.9349        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .37019E-01    15.694        .58520E-01   -1.5670    
  11  Prefactor     .10000E-03    28.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     75.171        44.847        .46289E-04   -1.3972    
  13  Prefactor     13.368        5.8435        .10394E-03   -1.4977    
  14  Prefactor     .10000E-03    10.032        .29718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    77.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.959        11.781        .10024E-03   -1.4909    
  19  norm          .61335        .25190        .21174E-04   -1.5551    
  20  Prefactor     3.3474        2.7144        .98842E-04   -1.5342    
  21  Prefactor     .10000E-03    3.9181        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.302        14.514        .82979E-04   -1.4742    
  23  norm          .10000E-03    10.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0106        .66895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .77847        .59224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .82023        .21059        .24951E-03   -.99323    
  28  Prefactor     1.1500        .25357        .26730E-03   -.87883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10042e-09
Minuit parameter uncertainties:
  1  1.69504e-05
  2  35.5864
  3  0.000191759
  4  2.18809e-06
  5  5.0743e-05
  6  2.80564
  7  5.15698
  8  25.7319
  9  2.50854e-06
  10  1.52278
  11  0.00027868
  12  44.8671
  13  5.8438
  14  0.000366385
  15  3.05341e-05
  16  0.00016088
  17  0.000227216
  18  11.783
  19  0.251898
  20  2.71453
  21  8.37139e-07
  22  14.5158
  23  8.41145e-05
  24  8.67348e-07
  25  8.79538e-05
  26  5.11851e-07
  27  0.210801
  28  0.253833
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.517e+01  4.487e+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.150e+00  2.538e-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:  8.202e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 158.173 37.623
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 2.06e-05

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) = 4743.70796602
delta logL = 0.00297103423873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4743.70338987
delta logL = 0.00754718582357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1358       1.0000          .0000       10.000    
     3 'Normalizat'    .81629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1529       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=   4743.703     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      265 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.047        69.626        .48299E-04    .28387E-03
   2  Index         2.1363        .53471        .40465E-02    .17653E-03
   3  Normalizat    .81590        .20579        .25009E-03   -.81361E-03
   4  Prefactor     1.1533        .25418        .26697E-03   -.99370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.0474
  Index      = 2.13628
  Normalizat = 0.815899
  Prefactor  = 1.15331
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.703     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.047        64.686        .96599E-05   -1.4044    
   2  Index         2.1363        .49641        .16186E-03   -.60985    
   3  Normalizat    .81590        .20536        .50018E-04   -.99482    
   4  Prefactor     1.1533        .25400        .53394E-04   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03146e-09
Minuit parameter uncertainties:
  1  64.7519
  2  0.497634
  3  0.205553
  4  0.254264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959479': 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) = 4743.70338758
delta logL = 0.0075494756029

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  6.905e+01  6.475e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.136e+00  4.976e-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.153e+00  2.543e-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:  8.159e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 158.173 37.623
Photon Index (Free Index): 2.14 +/- 0.50
Photon Flux (Free Index): 6.33e-08 +/- 4.66e-08
Energy Flux (Free Index): 3.22e-05 +/- 2.62e-05

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/959479/cmap_HighResolution_259027201_259286401_4FGL_J1032.6+3737_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='3.22e-05', photon_flux_error='3.57e-08', dlogl='7.55e-03', energy_flux='3.46e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-02 02:46:41.068342', photon_index_error2='0.50', photon_index2='2.14', ts='6.34', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='0.82', time_epoch_completed='1630576001.07', return_code='0', job_id='959479', GAL2='1.15', EG2='0.82', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='4.66e-08', ts2='6.34', photon_index='2.08' WHERE bin_id='76' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 02:46:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 959479: <4FGL_J1032.6+3737_daily_bin76> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin76> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 02:31:00 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:33:03 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:33:03 2021
Terminated at Thu Sep  2 02:46:41 2021
Results reported at Thu Sep  2 02:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin76 158.173 37.6234 259027201 259286401 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 :                                   657.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            941 sec.

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

