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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin75
RA = 159.429, Dec = 57.192
tmin = 258768001, tmax = 259027201
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='16188', job_status='RUN', time_executed='2021-09-02 05:39:31.958156', time_epoch_executed='1630586371.96' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16188

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16188/ft1_4FGL_J1037.7+5711_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16188/ft1_4FGL_J1037.7+5711_daily_bin75.fits outfile=/scratch/kocevski/16188/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin75.fits ra=159.429 dec=57.192 rad=12.0 tmin=258768001.0 tmax=259027201.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.14
user 0.98
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.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/16188/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/16188/ltcube_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.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/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits
.....................!
real 12.72
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/16188/ltcube_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits outfile=/scratch/kocevski/16188/expmap_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.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/16188/ltcube_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits
.....................!
real 193.14
user 187.71
sys 4.84

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 240 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.7+5711 @ 159.429 57.192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits outfile=/scratch/kocevski/16188/cmap_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.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=159.429 yref=57.192 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits outfile=/scratch/kocevski/16188/cmap_HighResolution_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.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=159.429 yref=57.192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/16188/Model_4FGL_J1037.7+5711_daily_bin75.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/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits....................!
real 34.87
user 33.55
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits', '/scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits', expMap='/scratch/kocevski/16188/expmap_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits', expCube='/scratch/kocevski/16188/ltcube_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16188/Model_4FGL_J1037.7+5711_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7+5711'

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.718e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/16188/ft1_filtered_4FGL_J1037.7+5711_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/16188/ft2_4FGL_J1037.7+5711_daily_bin75.fits
Exposure map: /scratch/kocevski/16188/expmap_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits
Exposure cube: /scratch/kocevski/16188/ltcube_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16188/Model_4FGL_J1037.7+5711_daily_bin75.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) = 2888.64000681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3844       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15164E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66864E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3484       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7296       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1031       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1205       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25860E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.675       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6512       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.298       1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10898E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.4522       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2888.551     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4613 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3808        1.5456        .17226E-07   -.64957E-03
   2  Prefactor     .10000E-03    1.9930       -.86840E-07** at limit **
   3  Prefactor     .10000E-03    167.15        .28555E-05** at limit **
   4  Prefactor     .10000E-03    15.094       -.69424E-07** at limit **
   5  Prefactor     .15571        17.255        .34963E-05   -.48235E-03
   6  Prefactor     .10000E-03    5.8525       -.24995E-06** at limit **
   7  norm          17.584        15.347       -.21752E-06   -.49629E-04
   8  Prefactor     .10000E-03    88.003       -.72898E-06** at limit **
   9  norm          1.3483        .76459       -.10386E-07   -.16510E-03
  10  norm          .10000E-03    20.405       -.86088E-06** at limit **
  11  Prefactor     7.7363        10.672        .51996E-05    .46402E-03
  12  norm          1.1024        1.1880       -.11756E-07   -.14760E-03
  13  norm          5.1251        4.5490       -.24767E-06   -.38933E-04
  14  Prefactor     .10000E-03    131.71       -.14861E-05** at limit **
  15  norm          .10000E-03    11.757       -.24334E-07** at limit **
  16  Prefactor     40.659        31.525        .62155E-06   -.62776E-04
  17  norm          .10000E-03    3.3706       -.53462E-07** at limit **
  18  norm          4.4532        3.2278        .49584E-07   -.28963E-04
  19  Prefactor     .10000E-03    101.65       -.10408E-06** at limit **
  20  Prefactor     .10000E-03    34.580       -.41776E-06** at limit **
  21  Prefactor     .10000E-03    76.010       -.32861E-06** at limit **
  22  norm          10.016        4.5657       -.56447E-08   -.84952E-04
  23  Prefactor     .10000E-03    23.914        .29040E-06** at limit **
  24  Prefactor     .10000E-03    26.890        .94201E-06** at limit **
  25  Prefactor     .10000E-03    93.153       -.48837E-06** at limit **
  26  norm          .10000E-03    42.771        .50088E-06** at limit **
  27  Prefactor     3.6427        10.779        .21262E-05    .69266E-04
  28  Prefactor     23.435        54.978        .61986E-06    .80909E-04
  29  norm          .10000E-03    7.6930        .38616E-06** at limit **
  30  norm          .10000E-03    4.9998        .10563E-05** at limit **
  31  Prefactor     9.4550        15.496        .32756E-06   -.26435E-04
  32  Normalizat    1.0113        .27487       -.63581E-05    .10860E-04
  33  Prefactor     .81584        .30562        .64890E-05   -.16588E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38077
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.155711
  Prefactor  = 0.0001
  norm       = 17.5837
  Prefactor  = 0.000100001
  norm       = 1.34827
  norm       = 0.000100001
  Prefactor  = 7.73625
  norm       = 1.10244
  norm       = 5.12515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.6591
  norm       = 0.0001
  norm       = 4.45318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.6427
  Prefactor  = 23.435
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.45501
  Normalizat = 1.01131
  Prefactor  = 0.81584
 **********
 **   18 **HESSE 
 **********

 FCN=   2888.551     FROM HESSE     STATUS=OK           693 CALLS     5306 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3808        1.5542        .50247E-04   -1.5399    
   2  Prefactor     .10000E-03    2.0054        .74102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    172.60        .36395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15571        21.075        .55681E-01   -1.5629    
   6  Prefactor     .10000E-03    5.8852        .12703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.584        15.332        .95480E-04   -1.4869    
   8  Prefactor     .10000E-03    88.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3483        .76593        .34278E-04   -1.5476    
  10  norm          .10000E-03    20.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7363        10.703        .72117E-03   -1.5152    
  12  norm          1.1024        1.1672        .56826E-03   -1.5498    
  13  norm          5.1251        4.5546        .10373E-03   -1.5255    
  14  Prefactor     .10000E-03    133.34        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.759        .18002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.659        31.424        .62851E-04   -1.4432    
  17  norm          .10000E-03    3.3956        .95655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4532        3.2259        .79259E-04   -1.5286    
  19  Prefactor     .10000E-03    101.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.016        4.5684        .74964E-04   -1.5075    
  23  Prefactor     .10000E-03    23.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    93.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    42.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6427        10.702        .21141E-03   -1.5326    
  28  Prefactor     23.435        54.951        .82987E-04   -1.4739    
  29  norm          .10000E-03    7.6951        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    5.0237        .11728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     9.4550        15.471        .13035E-03   -1.5093    
  32  Normalizat    1.0113        .30819        .23099E-03   -.92653    
  33  Prefactor     .81584        .34490        .30050E-03   -.99147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60761e-09
Minuit parameter uncertainties:
  1  1.55424
  2  5.63382e-06
  3  0.000834869
  4  5.28435e-05
  5  3.62319
  6  5.21409e-05
  7  15.3359
  8  0.000423919
  9  0.765934
  10  0.000224194
  11  10.7057
  12  1.16724
  13  4.55488
  14  0.000267237
  15  3.01525e-06
  16  31.4372
  17  5.49848e-06
  18  3.226
  19  5.74397e-05
  20  0.000213591
  21  0.000271014
  22  4.56858
  23  0.000169727
  24  1.49269e-05
  25  0.00029706
  26  0.000371266
  27  10.7076
  28  55.07
  29  1.65964e-05
  30  3.63297e-05
  31  15.4776
  32  0.308734
  33  0.345819
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  4.453e+00  3.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  8.158e-01  3.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.011e+00  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 5.67e-05 +/- 4.11e-05

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) = 2887.56410386
delta logL = 0.986400681488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2887.55912833
delta logL = 0.991376216478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6339       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6004       1.0000          .0000       5.0000    
     3 'Normalizat'    .94634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2887.559     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      236 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6339        33.065        .62813E-02    .29096E-03
   2  alpha         2.6004        3.8000        .16553        .13342E-04
   3  Normalizat    .94631        .12329        .45491E-01    .12453E-04
   4  Prefactor     .85973        .11958        .66234E-01   -.33292E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63388
  alpha      = 2.60037
  Normalizat = 0.946312
  Prefactor  = 0.859726
 **********
 **   18 **HESSE 
 **********

 FCN=   2887.559     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6339        2.8174        .48165E-04   -1.5383    
   2  alpha         2.6004        .66600        .67824E-02    .40159E-01
   3  Normalizat    .94631        .28052        .23707E-03   -.94851    
   4  Prefactor     .85973        .32732        .29299E-03   -.97563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95726e-11
Minuit parameter uncertainties:
  1  2.81758
  2  0.674152
  3  0.280955
  4  0.328067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16188': 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): 0
logL (Free Index) = 2887.55912832
delta logL = 0.991376225156

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.634e+00  2.818e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  2.600e+00  6.742e-01  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  8.597e-01  3.281e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  9.463e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 159.429 57.192
Photon Index (Free Index): 2.60 +/- 0.67
Photon Flux (Free Index): 1.18e-07 +/- 8.35e-08
Energy Flux (Free Index): 3.43e-05 +/- 2.10e-05

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/16188/cmap_HighResolution_258768001_259027201_4FGL_J1037.7+5711_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='3.43e-05', photon_flux_error='3.56e-08', dlogl='9.91e-01', energy_flux='5.67e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-02 05:50:19.661863', photon_index_error2='0.67', photon_index2='2.60', ts='4.91', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.01', time_epoch_completed='1630587019.66', return_code='0', job_id='16188', GAL2='0.86', EG2='0.95', return_code2='0', energy_flux_error='4.11e-05', photon_flux_error2='8.35e-08', ts2='6.91', photon_index='1.76' WHERE bin_id='75' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:50:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 16188: <4FGL_J1037.7+5711_daily_bin75> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin75> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:36:21 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:36:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:36:23 2021
Terminated at Thu Sep  2 05:50:20 2021
Results reported at Thu Sep  2 05:50:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin75 159.429 57.192 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7+5711 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             273.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

