/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 28 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 = 7423
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1032.6+3737_daily_bin557
RA = 158.173, Dec = 37.6234
tmin = 383702401, tmax = 383961601
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='963436', job_status='RUN', time_executed='2021-09-02 02:48:13.617714', time_epoch_executed='1630576093.62' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963436/ft1_4FGL_J1032.6+3737_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963436/ft2_4FGL_J1032.6+3737_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963436/ft1_4FGL_J1032.6+3737_daily_bin557.fits outfile=/scratch/kocevski/963436/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin557.fits ra=158.173 dec=37.6234 rad=12.0 tmin=383702401.0 tmax=383961601.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.57
user 4.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963436/ft1_filtered_4FGL_J1032.6+3737_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/963436/ft2_4FGL_J1032.6+3737_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/963436/ltcube_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.fits outfile=/scratch/kocevski/963436/expmap_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.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/963436/ltcube_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.fits
.....................!
real 193.31
user 187.88
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/963436/ft1_filtered_4FGL_J1032.6+3737_daily_bin557.fits scfile=/scratch/kocevski/963436/ft2_4FGL_J1032.6+3737_daily_bin557.fits outfile=/scratch/kocevski/963436/cmap_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963436/ft1_filtered_4FGL_J1032.6+3737_daily_bin557.fits scfile=/scratch/kocevski/963436/ft2_4FGL_J1032.6+3737_daily_bin557.fits outfile=/scratch/kocevski/963436/cmap_HighResolution_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.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/963436/ft1_filtered_4FGL_J1032.6+3737_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/963436/ft2_4FGL_J1032.6+3737_daily_bin557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963436/Model_4FGL_J1032.6+3737_daily_bin557.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/963436/ft1_filtered_4FGL_J1032.6+3737_daily_bin557.fits.....................!
real 50.24
user 48.74
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.806       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22039E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.689       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85543       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1683       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=   5888.218     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3079 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7260        9.1308       -.36907E-06   -.12261E-03
   2  Prefactor     .10000E-03    8.3604        .23473E-05** at limit **
   3  Prefactor     .10000E-03    7.0411        .15616E-05** at limit **
   4  Prefactor     .10000E-03    4.1575       -.50042E-08** at limit **
   5  norm          .10000E-03    5.9872       -.87887E-07** at limit **
   6  Prefactor     .10000E-03    1.2228       -.55320E-08** at limit **
   7  Prefactor     2.8280        2.6118       -.16002E-07   -.15930E-03
   8  Prefactor     1.4667        55.269       -.81816E-05   -.75385E-04
   9  Prefactor     .10000E-03    1.6864        .88681E-08** at limit **
  10  norm          .10000E-03    2.7460        .28457E-07** at limit **
  11  Prefactor     23.812        28.673       -.64831E-05    .13548E-03
  12  Prefactor     .10000E-03    9.3416       -.96793E-06** at limit **
  13  Prefactor     .10000E-03    2.3634        .10871E-07** at limit **
  14  Prefactor     .10000E-03    2.2545        .11146E-07** at limit **
  15  Prefactor     .10000E-03    14.294        .94759E-07** at limit **
  16  Prefactor     12.163        17.445        .21565E-05   -.68509E-04
  17  Prefactor     .10000E-03    48.162       -.16469E-06** at limit **
  18  Prefactor     .10003E-03    6.7897        .47554E-08** at limit **
  19  norm          2.0166        .38696       -.58265E-08    .55270E-03
  20  Prefactor     5.7309        3.7715       -.18005E-06   -.66634E-04
  21  Prefactor     .10000E-03    8.0352       -.75469E-08** at limit **
  22  Prefactor     .10000E-03    7.5241       -.29399E-05** at limit **
  23  norm          12.689        12.597        .57927E-06   -.53382E-04
  24  Prefactor     .10000E-03    1.1168       -.47393E-07** at limit **
  25  Prefactor     .10000E-03    22.761       -.51182E-07** at limit **
  26  norm          .10000E-03    .90965        .34796E-08** at limit **
  27  Normalizat    .85533        .15633        .39826E-06    .34631E-04
  28  Prefactor     1.1684        .19845        .36045E-07    .47587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.72601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82805
  Prefactor  = 1.4667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.8121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1626
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 2.01659
  Prefactor  = 5.73089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.855335
  Prefactor  = 1.16844
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.218     FROM HESSE     STATUS=OK           523 CALLS     3602 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7260        9.1467        .18509E-03   -1.5273    
   2  Prefactor     .10000E-03    8.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1767        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.0011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0634        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8280        2.6046        .11458E-03   -1.5372    
   8  Prefactor     1.4667        60.080        .35560E-03   -1.5466    
   9  Prefactor     .10000E-03    1.7047        .97180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7500        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.812        28.372        .82097E-04   -1.4732    
  12  Prefactor     .10000E-03    9.3408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4299        .23023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2833        .11248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.163        17.384        .11485E-03   -1.5010    
  17  Prefactor     .10000E-03    48.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    11.004        .63794E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0166        .38703        .20145E-04   -1.5424    
  20  Prefactor     5.7309        3.7900        .11361E-03   -1.5229    
  21  Prefactor     .10000E-03    8.0682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.689        12.558        .11245E-03   -1.4995    
  24  Prefactor     .10000E-03    2.1441        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .94791        .14288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85533        .18613        .23330E-03   -.98048    
  28  Prefactor     1.1684        .23731        .26066E-03   -.87308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91795e-10
Minuit parameter uncertainties:
  1  9.14937
  2  4.47893e-05
  3  2.84912e-05
  4  3.10518e-07
  5  1.52311e-06
  6  4.5422e-07
  7  2.60467
  8  18.7941
  9  1.72421e-06
  10  4.30908e-06
  11  28.3878
  12  2.17219e-05
  13  3.54762e-06
  14  2.70999e-07
  15  1.81398e-06
  16  17.3912
  17  8.82661e-07
  18  0.001184
  19  0.387034
  20  3.79011
  21  9.36997e-06
  22  5.58815e-05
  23  12.5606
  24  5.22459e-06
  25  2.15102e-06
  26  5.07144e-07
  27  0.186269
  28  0.237531
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.172e-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:  1.168e+00  2.375e-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.553e-01  1.863e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963436/likelihoodResults_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.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) = 5888.21893822
delta logL = -0.000508902170623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5888.21842984
delta logL = -5.16730324307e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0450       1.0000          .0000       10.000    
     3 'Normalizat'    .85530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1685       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=   5888.218     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10234E-03    2.6740        .18142E-01** at limit **
   2  Index         1.9712        7.3996        .50000        .21942E-04
   3  Normalizat    .85533        .19414E-02    .23330E-03    .95510E-05
   4  Prefactor     1.1684        .25055E-02    .26066E-03    .36201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102341
  Index      = 1.97124
  Normalizat = 0.855335
  Prefactor  = 1.16844
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.218     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10234E-03    57.255        .24404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9712        8.1536        .50000       -.65071    
   3  Normalizat    .85533        .90317E-02    .93320E-05   -.98048    
   4  Prefactor     1.1684        .11656E-01    .10426E-04   -.87308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.31481e-09
Minuit parameter uncertainties:
  1  0.0231782
  2  212.724
  3  0.00903169
  4  0.0116564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963436': 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) = 5888.21842879
delta logL = 5.32881131221e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.023e-04  2.318e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.971e+00  2.127e+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.168e+00  1.166e-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:  8.553e-01  9.032e-03  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/963436/cmap_HighResolution_383702401_383961601_4FGL_J1032.6+3737_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-02 03:01:54.637673', job_id='963436', GAL2='1.17', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630576914.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='557' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 963436: <4FGL_J1032.6+3737_daily_bin557> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin557 158.173 37.6234 383702401 383961601 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 :                                   816.52 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            980 sec.

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

