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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin93
RA = 159.429, Dec = 57.192
tmin = 263433601, tmax = 263692801
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='16214', job_status='RUN', time_executed='2021-09-02 05:38:30.012451', time_epoch_executed='1630586310.01' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16214/ft1_4FGL_J1037.7+5711_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16214/ft1_4FGL_J1037.7+5711_daily_bin93.fits outfile=/scratch/kocevski/16214/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin93.fits ra=159.429 dec=57.192 rad=12.0 tmin=263433601.0 tmax=263692801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.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/16214/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/16214/ltcube_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.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/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits
.....................!
real 13.88
user 13.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/16214/ltcube_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits outfile=/scratch/kocevski/16214/expmap_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.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/16214/ltcube_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits
.....................!
real 190.62
user 185.76
sys 4.49

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/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits outfile=/scratch/kocevski/16214/cmap_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits outfile=/scratch/kocevski/16214/cmap_HighResolution_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/16214/Model_4FGL_J1037.7+5711_daily_bin93.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/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits.....................!
real 46.09
user 44.79
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits', '/scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits', expMap='/scratch/kocevski/16214/expmap_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits', expCube='/scratch/kocevski/16214/ltcube_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16214/Model_4FGL_J1037.7+5711_daily_bin93.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/16214/ft1_filtered_4FGL_J1037.7+5711_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/16214/ft2_4FGL_J1037.7+5711_daily_bin93.fits
Exposure map: /scratch/kocevski/16214/expmap_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits
Exposure cube: /scratch/kocevski/16214/ltcube_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16214/Model_4FGL_J1037.7+5711_daily_bin93.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) = 4529.21910032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23862E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3185       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7527       1.0000         .10000E-03   10000.    
    12 'norm      '    .14720E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.029       1.0000         .10000E-03   10000.    
    17 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .86728       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.5710       1.0000         .10000E-03   10000.    
    30 'norm      '    3.6166       1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.816       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87131       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3285       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=   4529.152     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     3939 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51050        1.0532       -.49573E-07   -.95529E-05
   2  Prefactor     .10000E-03    1.2461        .40887E-08** at limit **
   3  Prefactor     .10000E-03    20.403       -.19950E-07** at limit **
   4  Prefactor     .10000E-03    10.410        .19868E-07** at limit **
   5  Prefactor     5.8722        10.996        .37059E-06    .24027E-05
   6  Prefactor     .10000E-03    7.5698       -.80519E-07** at limit **
   7  norm          .10000E-03    4.9456        .10114E-07** at limit **
   8  Prefactor     .10000E-03    20.117       -.15802E-06** at limit **
   9  norm          1.3185        .61256       -.24509E-07   -.13687E-03
  10  norm          4.8403        15.139       -.12513E-06   -.63081E-05
  11  Prefactor     3.7474        7.7650        .66470E-06    .60188E-04
  12  norm          .10000E-03    .45368        .37327E-07** at limit **
  13  norm          .10000E-03    2.7307        .29167E-06** at limit **
  14  Prefactor     .10000E-03    16.281        .38132E-06** at limit **
  15  norm          .10000E-03    13.287       -.14392E-06** at limit **
  16  Prefactor     14.016        24.789        .78235E-06   -.15671E-04
  17  norm          .10000E-03    1.8767       -.39973E-07** at limit **
  18  norm          1.3420        1.3029        .79570E-08   -.24574E-04
  19  Prefactor     9.7606        558.77        .26119E-04    .27143E-05
  20  Prefactor     .10000E-03    91.131       -.70203E-06** at limit **
  21  Prefactor     .10000E-03    49.955        .32155E-08** at limit **
  22  norm          2.6024        2.4256        .43956E-07   -.85318E-04
  23  Prefactor     .10000E-03    19.748       -.12909E-06** at limit **
  24  Prefactor     .86219        23.362        .65136E-06   -.16608E-05
  25  Prefactor     .10000E-03    25.337        .20217E-06** at limit **
  26  norm          .10000E-03    23.450       -.71308E-07** at limit **
  27  Prefactor     .10000E-03    3.0431       -.59975E-08** at limit **
  28  Prefactor     .10000E-03    101.03        .63190E-06** at limit **
  29  norm          3.5717        16.899        .51078E-07    .54612E-06
  30  norm          3.6142        7.2137        .26852E-06   -.72771E-05
  31  Prefactor     14.817        12.162       -.55183E-08   -.14396E-04
  32  Normalizat    .87112        .21003       -.32334E-05   -.54380E-04
  33  Prefactor     1.3289        .24218        .18154E-05   -.15682E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87219
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31853
  norm       = 4.84034
  Prefactor  = 3.7474
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0155
  norm       = 0.0001
  norm       = 1.34202
  Prefactor  = 9.76062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60235
  Prefactor  = 0.0001
  Prefactor  = 0.862188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57175
  norm       = 3.61417
  Prefactor  = 14.8169
  Normalizat = 0.87112
  Prefactor  = 1.32889
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.152     FROM HESSE     STATUS=OK           695 CALLS     4634 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51050        .94738        .92193E-03   -1.5565    
   2  Prefactor     .10000E-03    1.2492        .73339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8722        10.805        .16579E-03   -1.5223    
   6  Prefactor     .10000E-03    24.958        .33936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.9545        .14617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3185        .61027        .34796E-04   -1.5478    
  10  norm          4.8403        15.117        .18279E-03   -1.5268    
  11  Prefactor     3.7474        7.9313        .10421E-02   -1.5321    
  12  norm          .10000E-03    2.9734        .86689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8352        .21752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.016        24.641        .10694E-03   -1.4959    
  17  norm          .10000E-03    1.8985        .89541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3420        1.3230        .73544E-04   -1.5476    
  19  Prefactor     9.7606        578.14        .12647E-03   -1.5083    
  20  Prefactor     .10000E-03    91.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6024        2.4766        .47123E-03   -1.5385    
  23  Prefactor     .10000E-03    19.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .86219        192.61        .58670E-02   -1.5522    
  25  Prefactor     .10000E-03    25.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    23.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.0513        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    102.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.5717        16.770        .21386E-03   -1.5330    
  30  norm          3.6142        7.1373        .21246E-03   -1.5328    
  31  Prefactor     14.817        12.120        .10406E-03   -1.4938    
  32  Normalizat    .87112        .22640        .25032E-03   -.97482    
  33  Prefactor     1.3289        .26614        .25538E-03   -.82452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77352e-08
Minuit parameter uncertainties:
  1  0.947407
  2  1.23407e-06
  3  1.47748e-05
  4  2.63474e-06
  5  10.8085
  6  0.000353837
  7  1.02929e-06
  8  6.54513e-06
  9  0.610276
  10  15.1288
  11  7.93351
  12  3.51614e-06
  13  8.42154e-06
  14  2.0232e-05
  15  1.76265e-06
  16  24.6585
  17  1.1642e-06
  18  1.32306
  19  151.803
  20  1.59497e-05
  21  5.33882e-06
  22  2.47674
  23  5.37686e-06
  24  25.8561
  25  8.83288e-06
  26  2.38481e-07
  27  4.53394e-06
  28  0.000257502
  29  15.4858
  30  7.13896
  31  12.1217
  32  0.226646
  33  0.266409
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.342e+00  1.323e+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:  1.329e+00  2.664e-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:  8.711e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.68e-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) = 4529.07569997
delta logL = 0.0760246237724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4529.06694306
delta logL = 0.0847815290726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1598       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3932       1.0000          .0000       5.0000    
     3 'Normalizat'    .87624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3270       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=   4529.067     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1585        1.2248        .10700E-02   -.11911E-03
   2  alpha         1.3916        .65020        .47979       -.17188E-04
   3  Normalizat    .87598        .18062        .44597E-01    .12798E-04
   4  Prefactor     1.3272        .22237        .57790E-01    .49543E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15849
  alpha      = 1.39162
  Normalizat = 0.875978
  Prefactor  = 1.32724
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.067     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1585        1.3349        .42802E-04   -1.5493    
   2  alpha         1.3916        .83181        .18369E-01   -.45933    
   3  Normalizat    .87598        .20804        .24973E-03   -.97309    
   4  Prefactor     1.3272        .25674        .25554E-03   -.82501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55242e-10
Minuit parameter uncertainties:
  1  1.33494
  2  0.852206
  3  0.208232
  4  0.256986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16214': 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) = 4529.06694058
delta logL = 0.0847840141432

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.158e+00  1.335e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.392e+00  8.522e-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:  1.327e+00  2.570e-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:  8.760e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.70
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.39 +/- 0.85
Photon Flux (Free Index): 8.95e-09 +/- 1.32e-08
Energy Flux (Free Index): 2.77e-05 +/- 4.60e-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/16214/cmap_HighResolution_263433601_263692801_4FGL_J1037.7+5711_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='2.77e-05', photon_flux_error='1.46e-08', dlogl='8.48e-02', energy_flux='1.71e-05', photon_flux2='8.95e-09', job_status='DONE', time_completed='2021-09-02 05:51:12.510978', photon_index_error2='0.85', photon_index2='1.39', ts='5.54', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='4.60e-05', EG='0.87', time_epoch_completed='1630587072.51', return_code='0', job_id='16214', GAL2='1.33', EG2='0.88', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='1.32e-08', ts2='5.70', photon_index='1.76' WHERE bin_id='93' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 16214: <4FGL_J1037.7+5711_daily_bin93> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:36:23 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:36:24 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:24 2021
Terminated at Thu Sep  2 05:51:13 2021
Results reported at Thu Sep  2 05:51:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin93 159.429 57.192 263433601 263692801 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

