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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1282
RA = 158.173, Dec = 37.6234
tmin = 571622401, tmax = 571881601
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='968505', job_status='RUN', time_executed='2021-09-02 03:07:42.105108', time_epoch_executed='1630577262.11' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968505/ft1_4FGL_J1032.6+3737_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968505/ft2_4FGL_J1032.6+3737_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968505/ft1_4FGL_J1032.6+3737_daily_bin1282.fits outfile=/scratch/kocevski/968505/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1282.fits ra=158.173 dec=37.6234 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.70
user 2.50
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968505/ft2_4FGL_J1032.6+3737_daily_bin1282.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/968505/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/968505/ft1_filtered_4FGL_J1032.6+3737_daily_bin1282.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968505/ft1_filtered_4FGL_J1032.6+3737_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/968505/ft2_4FGL_J1032.6+3737_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/968505/ltcube_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.fits outfile=/scratch/kocevski/968505/expmap_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.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/968505/ltcube_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.fits
.....................!
real 193.79
user 188.32
sys 5.05

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/968505/ft1_filtered_4FGL_J1032.6+3737_daily_bin1282.fits scfile=/scratch/kocevski/968505/ft2_4FGL_J1032.6+3737_daily_bin1282.fits outfile=/scratch/kocevski/968505/cmap_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968505/ft1_filtered_4FGL_J1032.6+3737_daily_bin1282.fits scfile=/scratch/kocevski/968505/ft2_4FGL_J1032.6+3737_daily_bin1282.fits outfile=/scratch/kocevski/968505/cmap_HighResolution_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2861       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4006.7       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14755E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.987       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    296.19       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    231.22       1.0000         .10000E-03   10000.    
    18 'Prefactor '    142.45       1.0000         .10000E-03   10000.    
    19 'norm      '    .33626       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    82.197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    59.609       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.304       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.6690       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=   659.3535     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3922 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    853.67       -.36058E-05** at limit **
   2  Prefactor     .31679E-03    5530.3       -.29843E-03** at limit **
   3  Prefactor     4006.0        3332.4       -.32969E-03   -.77113E-06
   4  Prefactor     .10002E-03    405.17        .24123E-05** at limit **
   5  norm          .10000E-03    124.03       -.46244E-06** at limit **
   6  Prefactor     .10001E-03    693.22       -.18147E-05** at limit **
   7  Prefactor     .10000E-03    76.545       -.73909E-05** at limit **
   8  Prefactor     .10000E-03    125.21       -.42651E-06** at limit **
   9  Prefactor     51.950        97.996       -.19559E-06   -.42047E-04
  10  norm          .10000E-03    32.870        .38974E-06** at limit **
  11  Prefactor     293.39        1074.1       -.31303E-04   -.30831E-04
  12  Prefactor     .10000E-03    145.16        .77280E-06** at limit **
  13  Prefactor     .10000E-03    8.9457        .16858E-06** at limit **
  14  Prefactor     .10000E-03    22.199       -.24146E-06** at limit **
  15  Prefactor     .10000E-03    58.807        .43037E-07** at limit **
  16  Prefactor     .10000E-03    64.750       -.33478E-06** at limit **
  17  Prefactor     231.24        262.82       -.38206E-05    .63878E-05
  18  Prefactor     142.50        109.22       -.39999E-06    .19022E-05
  19  norm          .33645        .54988       -.77341E-07   -.22625E-04
  20  Prefactor     .10000E-03    20.448        .16389E-05** at limit **
  21  Prefactor     82.085        71.462       -.11210E-05   -.55120E-04
  22  Prefactor     .10000E-03    33.481       -.66232E-06** at limit **
  23  norm          59.597        87.067       -.11281E-05   -.91894E-05
  24  Prefactor     13.308        11.037       -.52634E-06   -.80631E-04
  25  Prefactor     .10000E-03    66.531        .17648E-06** at limit **
  26  norm          .10000E-03    12.781        .10339E-05** at limit **
  27  Normalizat    .10000E-01    .34742        .24387E-05** at limit **
  28  Prefactor     1.6698        .51000        .61095E-05   -.54976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100033
  Prefactor  = 0.000316787
  Prefactor  = 4006.04
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.9504
  norm       = 0.0001
  Prefactor  = 293.39
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 231.235
  Prefactor  = 142.502
  norm       = 0.336454
  Prefactor  = 0.0001
  Prefactor  = 82.0852
  Prefactor  = 0.0001
  norm       = 59.5967
  Prefactor  = 13.3082
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.66978
 **********
 **   18 **HESSE 
 **********

 FCN=   659.3535     FROM HESSE     STATUS=OK           507 CALLS     4429 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    854.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .31679E-03    5479.2        .19544E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4006.0        3336.7        .40814E-04   -.20012    
   4  Prefactor     .10002E-03    405.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    124.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    693.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    76.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    125.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.950        98.081        .27812E-03   -1.4265    
  10  norm          .10000E-03    32.876        .14391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     293.39        1096.3        .11797E-03   -1.2265    
  12  Prefactor     .10000E-03    145.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.9482        .75038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.208        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    64.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     231.24        264.05        .13307E-03   -1.2655    
  18  Prefactor     142.50        109.15        .16878E-03   -1.3315    
  19  norm          .33645        .53815        .23043E-04   -1.5592    
  20  Prefactor     .10000E-03    20.465        .11328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     82.085        71.523        .22151E-03   -1.3893    
  22  Prefactor     .10000E-03    33.496        .14522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          59.597        87.233        .51966E-04   -1.4162    
  24  Prefactor     13.308        11.052        .69128E-04   -1.4978    
  25  Prefactor     .10000E-03    66.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.041        .17879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .40134        .84117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.6698        .48321        .26795E-03   -.72889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57553e-09
Minuit parameter uncertainties:
  1  0.010822
  2  8.32471
  3  3670.37
  4  0.00508198
  5  6.57441e-05
  6  0.00483906
  7  0.000145989
  8  0.000141347
  9  98.3878
  10  0.000223612
  11  1175.45
  12  0.000845721
  13  6.87386e-06
  14  1.25584e-05
  15  1.03691e-05
  16  0.000137458
  17  265.425
  18  109.301
  19  0.538154
  20  1.39265e-05
  21  71.598
  22  0.000191566
  23  87.4211
  24  11.0532
  25  0.000120467
  26  2.97687e-05
  27  1.50056e-05
  28  0.48457
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  8.457e-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:  1.670e+00  4.846e-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.000e-02  1.501e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 4.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968505/likelihoodResults_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.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) = 659.353540908
delta logL = -3.25708106175e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 659.35350849
delta logL = -1.52776465256e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2257       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6698       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=   659.3535     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      248 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    92.375        .90712E-02** at limit **
   2  Index         2.1777        5.3804        .50000        .32534E-05
   3  Normalizat    .10000E-01    .42878E-03    .22803    ** at limit **
   4  Prefactor     1.6698        .15566E-01    .60611E-01    .16864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100083
  Index      = 2.17773
  Normalizat = 0.01
  Prefactor  = 1.66978
 **********
 **   18 **HESSE 
 **********

 FCN=   659.3535     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    453.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1777        6.5228        .50000       -.59977    
   3  Normalizat    .10000E-01    .31041E-02    .84116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6698        .34794E-01    .26794E-03   -.72889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.69402e-08
Minuit parameter uncertainties:
  1  0.0124022
  2  308.533
  3  1.87665e-06
  4  0.034795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968505': 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) = 659.353508406
delta logL = -6.96542201695e-08

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.001e-04  1.240e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.178e+00  3.085e+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.670e+00  3.479e-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:  1.000e-02  1.877e-06  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/968505/cmap_HighResolution_571622401_571881601_4FGL_J1032.6+3737_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-02', job_status='DONE', photon_flux_upper_limit='4.83e-07', time_completed='2021-09-02 03:14:17.594618', job_id='968505', GAL2='1.67', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630577657.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.67', dlogl='-6.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1282' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 968505: <4FGL_J1032.6+3737_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:00:53 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:07:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:07:25 2021
Terminated at Thu Sep  2 03:14:18 2021
Results reported at Thu Sep  2 03:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1282 158.173 37.6234 571622401 571881601 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 :                                   391.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   412 sec.
    Turnaround time :                            805 sec.

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

