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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1405
RA = 158.173, Dec = 37.6234
tmin = 603504001, tmax = 603763201
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='969970', job_status='RUN', time_executed='2021-09-02 03:11:11.279267', time_epoch_executed='1630577471.28' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969970/ft1_4FGL_J1032.6+3737_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969970/ft1_4FGL_J1032.6+3737_daily_bin1405.fits outfile=/scratch/kocevski/969970/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1405.fits ra=158.173 dec=37.6234 rad=12.0 tmin=603504001.0 tmax=603763201.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.81
user 2.58
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/969970/ltcube_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.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/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits
.....................!
real 18.01
user 17.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/969970/ltcube_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits outfile=/scratch/kocevski/969970/expmap_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.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/969970/ltcube_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits
.....................!
real 192.74
user 186.90
sys 4.08

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/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits scfile=/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits outfile=/scratch/kocevski/969970/cmap_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.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.74
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits scfile=/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits outfile=/scratch/kocevski/969970/cmap_HighResolution_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.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.68
user 0.40
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits', '/scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits', expMap='/scratch/kocevski/969970/expmap_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits', expCube='/scratch/kocevski/969970/ltcube_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969970/Model_4FGL_J1032.6+3737_daily_bin1405.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/969970/ft1_filtered_4FGL_J1032.6+3737_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/969970/ft2_4FGL_J1032.6+3737_daily_bin1405.fits
Exposure map: /scratch/kocevski/969970/expmap_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits
Exposure cube: /scratch/kocevski/969970/ltcube_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969970/Model_4FGL_J1032.6+3737_daily_bin1405.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 354.749237124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 351.052884447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5182       1.0000         .10000E-03   10000.    
     5 'norm      '    701.19       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93839E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42760E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .72874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22688E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21853E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33269E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26249E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67606E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69938E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12372E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    106.16       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .58412       1.0000         .10000E-03   10000.    
    26 'norm      '    11.831       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .16924       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   350.6050     FROM MIGRAD    STATUS=CONVERGED    502 CALLS      805 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5072.9       -.15718E-03** at limit **
   2  Prefactor     10000.        9836.7        .11488E-04** at limit **
   3  Prefactor    10000.0        7400.6        .40626E-03** at limit **
   4  Prefactor    10000.0        5092.5       -.53983E-03** at limit **
   5  norm          703.47        621.57        .10364E-04   -.48913E-05
   6  Prefactor     1.0098        5801.3         .0000         .0000    
   7  Prefactor     .10000E-03    199.08        .18953E-05** at limit **
   8  Prefactor     .10000E-03    6217.7       -.10692E-03** at limit **
   9  Prefactor     .10000E-03    124.24       -.21287E-05** at limit **
  10  norm          .10000E-03    81.335       -.24621E-05** at limit **
  11  Prefactor     .10000E-03    874.83        .28282E-05** at limit **
  12  Prefactor     .10000E-03    190.16       -.76677E-05** at limit **
  13  Prefactor     .10000E-03    14.678        .84765E-07** at limit **
  14  Prefactor     .10000E-03    30.273       -.15215E-05** at limit **
  15  Prefactor     .10000E-03    102.30       -.16227E-05** at limit **
  16  Prefactor     .10000E-03    122.84        .11840E-05** at limit **
  17  Prefactor     .10000E-03    237.18        .40430E-06** at limit **
  18  Prefactor     .10000E-03    58.548        .28755E-06** at limit **
  19  norm          .10000E-03    .79461       -.45625E-06** at limit **
  20  Prefactor     .10000E-03    16.397       -.10295E-07** at limit **
  21  Prefactor     .10000E-03    31.502       -.18380E-06** at limit **
  22  Prefactor     .10000E-03    35.639       -.40190E-06** at limit **
  23  norm          113.03        95.157        .59950E-05   -.63323E-05
  24  Prefactor     .10000E-03    4.7713        .68588E-10** at limit **
  25  Prefactor     .10000E-03    69.242        .53110E-06** at limit **
  26  norm          12.040        9.8366        .44411E-06    .31465E-04
  27  Normalizat    1.1151        .82279        .91483E-05    .22852E-04
  28  Prefactor     .25589        .85038       -.26604E-04    .64376E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 703.465
  Prefactor  = 1.00983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 113.026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0399
  Normalizat = 1.11507
  Prefactor  = 0.255889
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   350.6050     FROM HESSE     STATUS=FAILED        29 CALLS      834 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    5084.8        .73967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10000.        9836.3        .57795E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        7317.5        .37122E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        5104.9        .86713E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          703.47        613.12        .39162E-03   -1.0339    
   6  Prefactor     588.11        586.66         .0000       -1.5507    
   7  Prefactor     .10000E-03    .20684        .18953E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .56540E-01   -.10692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .21320       -.21287E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .37036       -.24621E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20514        .28282E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20866       -.76677E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571        .84765E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.15215E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21105       -.16227E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .25418        .11840E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .24922        .40430E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .27560        .28755E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571       -.45625E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571       -.10295E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .21858       -.18380E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571       -.40190E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          113.03        1.0315        .59950E-05   -1.3578    
  24  Prefactor     .10000E-03    .20571        .68588E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .33695        .53110E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.040        1.0097        .44411E-06   -1.5014    
  27  Normalizat    1.1151        1.0302        .91483E-05   -.89269    
  28  Prefactor     .25589        .53849       -.26604E-04   -1.2495    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.42735e-11
Minuit parameter uncertainties:
  1  0.0728008
  2  8.31589e-05
  3  0.180294
  4  0.114695
  5  619.155
  6  1.32538
  7  7.04201e-06
  8  6.43356e-08
  9  6.96236e-07
  10  1.04682e-05
  11  4.51633e-06
  12  2.00971e-06
  13  1.20289e-07
  14  1.60256e-06
  15  2.25487e-07
  16  1.97434e-06
  17  1.19139e-05
  18  9.41454e-07
  19  1.76631e-06
  20  1.34341e-07
  21  2.40367e-06
  22  1.96835e-06
  23  1.03148
  24  9.24159e-09
  25  7.33317e-08
  26  1.0097
  27  1.04972
  28  0.54952
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 350.605023869

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.010e-06  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:  2.559e-01  5.495e-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.115e+00  1.050e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/969970/likelihoodResults_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.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) = 350.605047839
delta logL = -2.39695300479e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 350.605024304
delta logL = -4.35315314462e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2803       1.0000          .0000       10.000    
     3 'Normalizat'    1.1151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25591       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=   350.6050     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10276E-03    85.339        .18142E-01** at limit **
   2  Index         2.2039        5.0096        .50000        .22714E-05
   3  Normalizat    1.1151        .13360E-01    .23469E-03    .79019E-06
   4  Prefactor     .25589        .14477E-01    .50612E-03    .10445E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102764
  Index      = 2.20392
  Normalizat = 1.11507
  Prefactor  = 0.25589
 **********
 **   18 **HESSE 
 **********

 FCN=   350.6050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10276E-03    652.65        .22761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2039        6.5342        .50000       -.59344    
   3  Normalizat    1.1151        .37448E-01    .93877E-05   -.89269    
   4  Prefactor     .25589        .40577E-01    .20245E-04   -1.2495    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51494e-10
Minuit parameter uncertainties:
  1  0.0859031
  2  531.678
  3  0.0374489
  4  0.0405818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969970': 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) = 350.605023937
delta logL = -6.79741560816e-08

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.028e-04  8.590e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.204e+00  5.317e+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:  2.559e-01  4.058e-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.115e+00  3.745e-02  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/969970/cmap_HighResolution_603504001_603763201_4FGL_J1032.6+3737_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-02', job_status='DONE', photon_flux_upper_limit='8.98e-07', time_completed='2021-09-02 03:17:29.113922', job_id='969970', GAL2='0.26', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630577849.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.26', dlogl='-6.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1405' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:17:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 969970: <4FGL_J1032.6+3737_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1405> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 03:05:35 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:08:52 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:08:52 2021
Terminated at Thu Sep  2 03:17:29 2021
Results reported at Thu Sep  2 03:17:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1405 158.173 37.6234 603504001 603763201 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 :                                   340.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             403.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            714 sec.

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

