/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 226 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1
RA = 158.173, Dec = 37.6234
tmin = 239587201, tmax = 239846401
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='959372', job_status='RUN', time_executed='2021-09-02 02:35:53.752972', time_epoch_executed='1630575353.75' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959372

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959372/ft1_4FGL_J1032.6+3737_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959372/ft1_4FGL_J1032.6+3737_daily_bin1.fits outfile=/scratch/kocevski/959372/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1.fits ra=158.173 dec=37.6234 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.34
user 1.15
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.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/959372/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.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/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/959372/ltcube_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.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/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits
.....................!
real 19.85
user 19.25
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/959372/ltcube_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.fits outfile=/scratch/kocevski/959372/expmap_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.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/959372/ltcube_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.fits
.....................!
real 197.24
user 191.33
sys 5.16

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/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits outfile=/scratch/kocevski/959372/cmap_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits outfile=/scratch/kocevski/959372/cmap_HighResolution_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.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/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/959372/ft2_4FGL_J1032.6+3737_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/959372/Model_4FGL_J1032.6+3737_daily_bin1.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/959372/ft1_filtered_4FGL_J1032.6+3737_daily_bin1.fits.....................!
real 40.16
user 38.86
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10503E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29657E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21972E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16797E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12989E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78348       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6152       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    27.895       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2219       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .37922       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=   4010.699     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3602 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.015        .71369E-07** at limit **
   2  Prefactor     .10000E-03    16.568       -.48573E-06** at limit **
   3  Prefactor     17.663        27.739       -.13962E-05    .70177E-05
   4  Prefactor     .10014E-03    6.9189       -.17372E-06** at limit **
   5  norm          9.9519        13.262       -.55298E-06   -.24367E-05
   6  Prefactor     .10000E-03    1.0516       -.63328E-07** at limit **
   7  Prefactor     .10000E-03    2.5091        .11331E-06** at limit **
   8  Prefactor     .10000E-03    81.427       -.21888E-05** at limit **
   9  Prefactor     .10000E-03    4.0404        .15326E-06** at limit **
  10  norm          .92705        8.7766       -.10009E-05    .94605E-04
  11  Prefactor     12.180        53.776       -.52633E-04   -.71538E-06
  12  Prefactor     .10000E-03    11.843       -.15124E-05** at limit **
  13  Prefactor     .10001E-03    3.4357        .77906E-06** at limit **
  14  Prefactor     .10000E-03    1.7916        .90211E-07** at limit **
  15  Prefactor     13.641        45.630       -.47198E-05   -.25663E-04
  16  Prefactor     .10000E-03    11.657        .20464E-05** at limit **
  17  Prefactor     .10000E-03    53.565        .67780E-06** at limit **
  18  Prefactor     .78286        1.3669        .24767E-06   -.88237E-03
  19  norm          1.6152        .40187       -.50154E-08    .17143E-04
  20  Prefactor     1.0569        3.1966       -.54342E-06   -.46321E-04
  21  Prefactor     15.387        17.421       -.51354E-06   -.58082E-06
  22  Prefactor     .10000E-03    5.1255       -.33219E-06** at limit **
  23  norm          27.896        16.742       -.50033E-06    .58504E-05
  24  Prefactor     .10000E-03    .69192       -.83496E-07** at limit **
  25  Prefactor     .10000E-03    12.561       -.38707E-05** at limit **
  26  norm          .10000E-03    1.3091       -.93271E-07** at limit **
  27  Normalizat    1.2219        .18804        .11800E-05   -.78658E-04
  28  Prefactor     .37927        .20915        .26533E-05    .48133E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6626
  Prefactor  = 0.000100143
  norm       = 9.95193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.927051
  Prefactor  = 12.1804
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 13.6414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.782856
  norm       = 1.61516
  Prefactor  = 1.05687
  Prefactor  = 15.3868
  Prefactor  = 0.0001
  norm       = 27.8957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22187
  Prefactor  = 0.379267
 **********
 **   18 **HESSE 
 **********

 FCN=   4010.699     FROM HESSE     STATUS=OK           531 CALLS     4133 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.663        27.740        .95301E-04   -1.4867    
   4  Prefactor     .10014E-03    13.920        .54674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9519        13.271        .12702E-03   -1.5077    
   6  Prefactor     .10000E-03    9.6327        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5582        .19531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    81.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5782        .24194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92705        35.756        .33766E-02   -1.5515    
  11  Prefactor     12.180        53.900        .11457E-03   -1.5010    
  12  Prefactor     .10000E-03    11.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    13.034        .21488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7960        .82747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.641        44.779        .10845E-03   -1.4969    
  16  Prefactor     .10000E-03    11.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .78286        17.031        .24050E-02   -1.5531    
  19  norm          1.6152        .40285        .18960E-04   -1.5454    
  20  Prefactor     1.0569        3.2192        .18814E-03   -1.5502    
  21  Prefactor     15.387        17.449        .10211E-03   -1.4923    
  22  Prefactor     .10000E-03    5.1265        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          27.896        16.731        .75853E-04   -1.4651    
  24  Prefactor     .10000E-03    .69380        .51442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3319        .70749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2219        .20622        .18003E-03   -.85930    
  28  Prefactor     .37927        .22694        .36097E-03   -1.1788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42345e-09
Minuit parameter uncertainties:
  1  3.10887e-05
  2  1.57903e-05
  3  27.7601
  4  0.00282283
  5  13.2746
  6  5.14327e-05
  7  9.13321e-06
  8  0.000124922
  9  0.000130746
  10  11.5216
  11  51.3227
  12  1.05428e-05
  13  0.000878649
  14  4.5922e-06
  15  44.89
  16  9.03375e-06
  17  4.43177e-05
  18  7.30477
  19  0.402853
  20  3.21972
  21  17.4547
  22  9.85549e-08
  23  16.7333
  24  4.61337e-07
  25  4.07851e-06
  26  2.47154e-06
  27  0.20636
  28  0.227475
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.054e-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:  3.793e-01  2.275e-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.222e+00  2.064e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959372/likelihoodResults_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.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) = 4010.69966481
delta logL = -0.000400152458496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4010.6992646
delta logL = 5.76997081225e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0494       1.0000          .0000       10.000    
     3 'Normalizat'    1.2219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37927       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=   4010.699     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10194E-03    100.36        .18142E-02** at limit **
   2  Index         1.9842        7.6129        .50000        .15492E-04
   3  Normalizat    1.2219        .11881E-01    .18003E-03   -.40099E-05
   4  Prefactor     .37927        .13908E-01    .36097E-03    .30188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101937
  Index      = 1.98425
  Normalizat = 1.22187
  Prefactor  = 0.379266
 **********
 **   18 **HESSE 
 **********

 FCN=   4010.699     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10194E-03    437.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9842        7.6262        .50000       -.64745    
   3  Normalizat    1.2219        .25688E-01    .72012E-05   -.85930    
   4  Prefactor     .37927        .30067E-01    .14439E-04   -1.1788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.9613e-08
Minuit parameter uncertainties:
  1  0.0586454
  2  622.023
  3  0.0256883
  4  0.0300687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959372': 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) = 4010.69926435
delta logL = 3.10379618895e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.019e-04  5.865e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.984e+00  6.220e+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:  3.793e-01  3.007e-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.222e+00  2.569e-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/959372/cmap_HighResolution_239587201_239846401_4FGL_J1032.6+3737_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-02 02:47:27.698022', job_id='959372', GAL2='0.38', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630576047.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='3.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 02:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 959372: <4FGL_J1032.6+3737_daily_bin1> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 02:30:51 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:31:59 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:31:59 2021
Terminated at Thu Sep  2 02:47:28 2021
Results reported at Thu Sep  2 02:47:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1 158.173 37.6234 239587201 239846401 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 :                                   692.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            997 sec.

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

