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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin543
RA = 158.173, Dec = 37.6234
tmin = 380073601, tmax = 380332801
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='963417', job_status='RUN', time_executed='2021-09-02 02:47:22.352112', time_epoch_executed='1630576042.35' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963417/ft1_4FGL_J1032.6+3737_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963417/ft1_4FGL_J1032.6+3737_daily_bin543.fits outfile=/scratch/kocevski/963417/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin543.fits ra=158.173 dec=37.6234 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.72
user 4.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963417/ft1_filtered_4FGL_J1032.6+3737_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/963417/ltcube_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.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/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits
.....................!
real 17.02
user 16.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963417/ft1_filtered_4FGL_J1032.6+3737_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/963417/ltcube_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.fits outfile=/scratch/kocevski/963417/expmap_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.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/963417/ltcube_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.fits
.....................!
real 192.54
user 186.89
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/963417/ft1_filtered_4FGL_J1032.6+3737_daily_bin543.fits scfile=/scratch/kocevski/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits outfile=/scratch/kocevski/963417/cmap_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.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 2.37
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963417/ft1_filtered_4FGL_J1032.6+3737_daily_bin543.fits scfile=/scratch/kocevski/963417/ft2_4FGL_J1032.6+3737_daily_bin543.fits outfile=/scratch/kocevski/963417/cmap_HighResolution_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.3529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9765       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17477E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13469E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8077       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76214       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3330       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74062       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1700       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=   5721.005     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3032 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2159        .42576E-06** at limit **
   2  Prefactor     .10000E-03    6.5247        .13166E-05** at limit **
   3  Prefactor     1.2084        193.47        .16563E-04   -.15797E-04
   4  Prefactor     .10000E-03    13.654        .21909E-06** at limit **
   5  norm          9.3488        11.878       -.31600E-06   -.49908E-05
   6  Prefactor     .10000E-03    .80024       -.17048E-06** at limit **
   7  Prefactor     2.9757        2.7935       -.75312E-07   -.87383E-04
   8  Prefactor     .10000E-03    31.140        .29712E-05** at limit **
   9  Prefactor     .10000E-03    2.0438       -.23041E-06** at limit **
  10  norm          .10000E-03    3.1652       -.33215E-07** at limit **
  11  Prefactor     .10000E-03    29.264        .37118E-06** at limit **
  12  Prefactor     17.673        29.357        .90950E-06    .47080E-04
  13  Prefactor     .10003E-03    2.0986        .95614E-06** at limit **
  14  Prefactor     .10000E-03    4.7100        .21466E-06** at limit **
  15  Prefactor     .10000E-03    17.307        .11357E-05** at limit **
  16  Prefactor     .10000E-03    127.82        .42986E-04** at limit **
  17  Prefactor     .10000E-03    24.606       -.42172E-05** at limit **
  18  Prefactor     .10000E-03    6.9552       -.50724E-06** at limit **
  19  norm          1.8078        .36224       -.57021E-08    .95670E-03
  20  Prefactor     .76345        2.4538       -.21775E-05    .79959E-04
  21  Prefactor     .10000E-03    5.6140       -.31413E-06** at limit **
  22  Prefactor     .10000E-03    9.2898        .46197E-06** at limit **
  23  norm          27.997        15.385        .23382E-06    .19361E-03
  24  Prefactor     2.3342        2.1242       -.19316E-06    .24738E-03
  25  Prefactor     .10000E-03    12.201       -.16235E-05** at limit **
  26  norm          .10000E-03    .97044       -.17049E-06** at limit **
  27  Normalizat    .74088        .15617        .17930E-05    .43485E-03
  28  Prefactor     1.1698        .19474        .13302E-05    .14736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20845
  Prefactor  = 0.000100001
  norm       = 9.34885
  Prefactor  = 0.0001
  Prefactor  = 2.97572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6725
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.80777
  Prefactor  = 0.763451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.9967
  Prefactor  = 2.33415
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.740884
  Prefactor  = 1.16975
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.005     FROM HESSE     STATUS=OK           519 CALLS     3551 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2138        .16860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2084        199.12        .36110E-02   -1.5488    
   4  Prefactor     .10000E-03    13.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.3488        11.876        .13104E-03   -1.5096    
   6  Prefactor     .10000E-03    1.3636        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9757        2.7924        .11768E-03   -1.5363    
   8  Prefactor     .10000E-03    31.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0644        .10555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1708        .13139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.673        29.180        .95208E-04   -1.4867    
  13  Prefactor     .10003E-03    31.678        .20218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7431        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    125.08        .61820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8078        .36243        .19617E-04   -1.5439    
  20  Prefactor     .76345        2.4659        .20968E-03   -1.5533    
  21  Prefactor     .10000E-03    5.6232        .17500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          27.997        15.367        .75667E-04   -1.4649    
  24  Prefactor     2.3342        2.1140        .10150E-03   -1.5402    
  25  Prefactor     .10000E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .98501        .72763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74088        .18455        .24294E-03   -1.0230    
  28  Prefactor     1.1698        .23065        .25050E-03   -.87267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08741e-09
Minuit parameter uncertainties:
  1  5.05884e-05
  2  5.61301e-05
  3  31.1284
  4  0.000170114
  5  11.8794
  6  7.98243e-06
  7  2.7925
  8  0.000129031
  9  3.03332e-05
  10  2.14992e-05
  11  5.11169e-06
  12  29.203
  13  0.00210191
  14  0.000131558
  15  3.90554e-07
  16  0.000590667
  17  0.000357712
  18  3.49576e-05
  19  0.362435
  20  2.46624
  21  2.79587e-05
  22  4.25706e-06
  23  15.3694
  24  2.11409
  25  9.28917e-05
  26  3.75647e-06
  27  0.184703
  28  0.230846
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.767e+01  2.920e+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.170e+00  2.308e-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:  7.409e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963417/likelihoodResults_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.89244325
delta logL = 0.112433548013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.88818476
delta logL = 0.116692033515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.402       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5203       1.0000          .0000       10.000    
     3 'Normalizat'    .72892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1770       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=   5720.888     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.406        31.332        .12423E-03    .39633E-03
   2  Index         2.5218        1.2333        .65665E-02    .21441E-03
   3  Normalizat    .72861        .18266        .24479E-03    .81046E-03
   4  Prefactor     1.1772        .22977        .24979E-03    .88762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4059
  Index      = 2.52183
  Normalizat = 0.728611
  Prefactor  = 1.17719
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.888     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.406        23.572        .49694E-05   -1.5063    
   2  Index         2.5218        .93184        .26266E-03   -.51856    
   3  Normalizat    .72861        .18206        .48957E-04   -1.0277    
   4  Prefactor     1.1772        .22918        .49957E-04   -.87036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29064e-09
Minuit parameter uncertainties:
  1  23.5928
  2  0.939145
  3  0.182208
  4  0.22937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963417': 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) = 5720.88817942
delta logL = 0.116697382859

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.041e+01  2.359e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.522e+00  9.391e-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.177e+00  2.294e-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:  7.286e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/963417/cmap_HighResolution_380073601_380332801_4FGL_J1032.6+3737_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-02 03:00:38.663588', job_id='963417', GAL2='1.18', fit_tolerance='1e-08', EG2='0.73', EG='0.74', time_epoch_completed='1630576838.66', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.17e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='543' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 963417: <4FGL_J1032.6+3737_daily_bin543> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin543> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 02:45:33 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:47:07 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:47:07 2021
Terminated at Thu Sep  2 03:00:39 2021
Results reported at Thu Sep  2 03:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin543 158.173 37.6234 380073601 380332801 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 :                                   784.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            906 sec.

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

