/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1032.6+3737_daily_bin300
RA = 158.173, Dec = 37.6234
tmin = 317088001, tmax = 317347201
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='961973', job_status='RUN', time_executed='2021-09-02 02:41:52.971532', time_epoch_executed='1630575712.97' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961973/ft1_4FGL_J1032.6+3737_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961973/ft2_4FGL_J1032.6+3737_daily_bin300.fits


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

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

Done.
real 3.87
user 3.63
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961973/ft1_filtered_4FGL_J1032.6+3737_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/961973/ft2_4FGL_J1032.6+3737_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/961973/ltcube_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.fits outfile=/scratch/kocevski/961973/expmap_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.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/961973/ltcube_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.fits
.....................!
real 191.92
user 186.79
sys 4.74

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/961973/ft1_filtered_4FGL_J1032.6+3737_daily_bin300.fits scfile=/scratch/kocevski/961973/ft2_4FGL_J1032.6+3737_daily_bin300.fits outfile=/scratch/kocevski/961973/cmap_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961973/ft1_filtered_4FGL_J1032.6+3737_daily_bin300.fits scfile=/scratch/kocevski/961973/ft2_4FGL_J1032.6+3737_daily_bin300.fits outfile=/scratch/kocevski/961973/cmap_HighResolution_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12925E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33685       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8328       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14332E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0847       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2817       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.324       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15717E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0689       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83238       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=   5439.964     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     4360 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1653        52.377       -.26092E-05   -.42627E-04
   2  Prefactor     .10170E-03    31.997       -.26481E-05** at limit **
   3  Prefactor     16.684        36.899       -.20107E-07    .36206E-04
   4  Prefactor     .33214        7.8834       -.85926E-07   -.24059E-04
   5  norm          7.4878        11.209        .89238E-06    .20722E-03
   6  Prefactor     .10000E-03    1.4524        .18607E-07** at limit **
   7  Prefactor     4.5959        3.6647       -.43361E-07   -.16750E-04
   8  Prefactor     6.8349        40.157        .43909E-07    .46330E-05
   9  Prefactor     .10000E-03    6.5421       -.10933E-06** at limit **
  10  norm          .10000E-03    4.3371       -.31139E-07** at limit **
  11  Prefactor     .10000E-03    17.954        .38404E-08** at limit **
  12  Prefactor     .10000E-03    42.443       -.22412E-05** at limit **
  13  Prefactor     2.8647        3.7189        .61844E-07   -.55589E-04
  14  Prefactor     .55431        4.6127        .19362E-05   -.17033E-03
  15  Prefactor     8.0528        29.791       -.13174E-05   -.33762E-04
  16  Prefactor     .10000E-03    7.7942       -.14468E-08** at limit **
  17  Prefactor     .10005E-03    195.12        .11248E-04** at limit **
  18  Prefactor     7.0838        8.8630        .66124E-07    .26899E-04
  19  norm          2.2815        .41857        .32136E-09   -.36106E-03
  20  Prefactor     2.7672        3.6072        .69674E-07   -.48847E-04
  21  Prefactor     .10000E-03    41.314        .12568E-05** at limit **
  22  Prefactor     10.325        10.530       -.20641E-06   -.86842E-04
  23  norm          .10000E-03    5.1620        .73178E-08** at limit **
  24  Prefactor     .10000E-03    1.0839        .84399E-08** at limit **
  25  Prefactor     .10000E-03    35.461       -.82041E-07** at limit **
  26  norm          .10002E-03    1.3082        .54297E-07** at limit **
  27  Normalizat    1.0688        .17573       -.13761E-06    .96167E-04
  28  Prefactor     .83263        .20480        .11379E-06    .44013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1653
  Prefactor  = 0.000101699
  Prefactor  = 16.6838
  Prefactor  = 0.332142
  norm       = 7.48778
  Prefactor  = 0.0001
  Prefactor  = 4.59586
  Prefactor  = 6.83495
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.86469
  Prefactor  = 0.554311
  Prefactor  = 8.05279
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 7.08379
  norm       = 2.28152
  Prefactor  = 2.76721
  Prefactor  = 0.0001
  Prefactor  = 10.3246
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100023
  Normalizat = 1.06878
  Prefactor  = 0.832631
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.964     FROM HESSE     STATUS=OK           535 CALLS     4895 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1653        53.270        .27745E-03   -1.5414    
   2  Prefactor     .10170E-03    215.80        .67513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.684        35.417        .98016E-04   -1.4891    
   4  Prefactor     .33214        51.255        .39505E-02   -1.5593    
   5  norm          7.4878        11.227        .14656E-03   -1.5161    
   6  Prefactor     .10000E-03    1.4995        .17350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5959        3.6486        .11975E-03   -1.5279    
   8  Prefactor     6.8349        40.324        .15349E-03   -1.5185    
   9  Prefactor     .10000E-03    6.7837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.3496        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8647        3.6994        .15268E-03   -1.5369    
  14  Prefactor     .55431        6.0625        .34324E-03   -1.5559    
  15  Prefactor     8.0528        29.714        .14137E-03   -1.5140    
  16  Prefactor     .10000E-03    7.7963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    201.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0838        8.8511        .15071E-03   -1.5176    
  19  norm          2.2815        .41944        .19519E-04   -1.5406    
  20  Prefactor     2.7672        3.5992        .15205E-03   -1.5375    
  21  Prefactor     .10000E-03    43.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.325        10.555        .12470E-03   -1.5065    
  23  norm          .10000E-03    5.1700        .16365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0995        .74900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10002E-03    3.5765        .28886E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0688        .20724        .22013E-03   -.90761    
  28  Prefactor     .83263        .24113        .29652E-03   -.98536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23753e-08
Minuit parameter uncertainties:
  1  21.5008
  2  0.0384393
  3  35.4615
  4  8.25794
  5  11.2297
  6  2.55179e-07
  7  3.64879
  8  33.2368
  9  1.38192e-05
  10  2.32499e-06
  11  6.35975e-07
  12  0.000627281
  13  3.69974
  14  3.66647
  15  29.7685
  16  1.00259e-06
  17  0.00623708
  18  8.85275
  19  0.419442
  20  3.59948
  21  0.000284058
  22  10.557
  23  4.66326e-07
  24  1.16133e-07
  25  2.62677e-05
  26  0.000571687
  27  0.207394
  28  0.241438
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.273e-04  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:  8.326e-01  2.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.069e+00  2.074e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961973/likelihoodResults_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.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) = 5439.96441265
delta logL = -0.000109163743218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.95772701
delta logL = 0.00657646982017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55298       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9523       1.0000          .0000       10.000    
     3 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83121       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.

 FCN=   5439.958     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      286 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55576        17.790        .70092E-01    .46516E-03
   2  Index         2.9522        2.0740        .22219        .33316E-04
   3  Normalizat    1.0648        .10266E-01    .39530E-01    .39352E-05
   4  Prefactor     .83444        .12424E-01    .66957E-01    .14231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.555757
  Index      = 2.95224
  Normalizat = 1.06477
  Prefactor  = 0.834444
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.958     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      321 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55576        1928.4        .25014E-02   -1.5559    
   2  Index         2.9522        6.4476        .13992E-01   -.42196    
   3  Normalizat    1.0648        .12888        .22049E-03   -.90891    
   4  Prefactor     .83444        .14723        .29621E-03   -.98471    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.39794e-10
Minuit parameter uncertainties:
  1  67.7809
  2  34.5907
  3  0.128919
  4  0.147302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961973': 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) = 5439.95763535
delta logL = 0.00666813221505

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  5.558e-01  6.778e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.952e+00  3.459e+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:  8.344e-01  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.065e+00  1.289e-01  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/961973/cmap_HighResolution_317088001_317347201_4FGL_J1032.6+3737_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-02 02:56:26.090151', job_id='961973', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1630576586.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.67e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='300' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 02:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 961973: <4FGL_J1032.6+3737_daily_bin300> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin300> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 02:40:39 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:41:42 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:41:42 2021
Terminated at Thu Sep  2 02:56:26 2021
Results reported at Thu Sep  2 02:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin300 158.173 37.6234 317088001 317347201 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 :                                   866.00 sec.
    Max Memory :                                 1119 MB
    Average Memory :                             318.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            947 sec.

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

