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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin662
RA = 144.297, Dec = 50.1437
tmin = 410918401, tmax = 411177601
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='362082', job_status='RUN', time_executed='2021-08-31 18:50:43.193967', time_epoch_executed='1630461043.19' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362082/ft1_4FGL_J0937.1+5008_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362082/ft1_4FGL_J0937.1+5008_daily_bin662.fits outfile=/scratch/kocevski/362082/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin662.fits ra=144.297 dec=50.1437 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.96
user 6.73
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.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/362082/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/362082/ltcube_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.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/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits
.....................!
real 11.88
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/362082/ltcube_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits outfile=/scratch/kocevski/362082/expmap_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.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/362082/ltcube_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits
.....................!
real 190.31
user 186.17
sys 3.76

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

Setting source of interest to:
4FGL J0937.1+5008 @ 144.297 50.1437

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits outfile=/scratch/kocevski/362082/cmap_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.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=144.297 yref=50.1437 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits outfile=/scratch/kocevski/362082/cmap_HighResolution_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.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=144.297 yref=50.1437 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362082/Model_4FGL_J0937.1+5008_daily_bin662.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/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits.....................!
real 41.65
user 40.30
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits', '/scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits', expMap='/scratch/kocevski/362082/expmap_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits', expCube='/scratch/kocevski/362082/ltcube_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362082/Model_4FGL_J0937.1+5008_daily_bin662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.1+5008'

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.244e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362082/ft1_filtered_4FGL_J0937.1+5008_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/362082/ft2_4FGL_J0937.1+5008_daily_bin662.fits
Exposure map: /scratch/kocevski/362082/expmap_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits
Exposure cube: /scratch/kocevski/362082/ltcube_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362082/Model_4FGL_J0937.1+5008_daily_bin662.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) = 4058.28332292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.436       1.0000         .10000E-03   10000.    
     3 'norm      '    12.653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.653       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7155       1.0000         .10000E-03   10000.    
    12 'norm      '    .29564E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .95126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3467       1.0000         .10000E-03   10000.    
    26 'norm      '    .10210       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8385       1.0000         .10000E-03   10000.    
    29 'norm      '    14.317       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.1295       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .82619       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .99123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4058.185     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     4185 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.351        .72859E-06** at limit **
   2  norm          15.437        1.5348       -.28147E-07   -.56165E-03
   3  norm          12.656        2.1136        .82996E-07    .14257E-02
   4  Prefactor     17.651        1.4213       -.13383E-06    .62429E-03
   5  Prefactor     .10000E-03    3.8723        .19433E-05** at limit **
   6  Prefactor     8.1188        22.778       -.49629E-06    .82751E-04
   7  Prefactor     31.745        19.520       -.29101E-05    .30148E-03
   8  Prefactor     .10000E-03    .84159       -.23174E-06** at limit **
   9  Prefactor     .10000E-03    8.8864       -.22653E-06** at limit **
  10  norm          .10000E-03    .23645        .94694E-07** at limit **
  11  Prefactor     1.7156        2.1005       -.16498E-06   -.70550E-06
  12  norm          .10000E-03    9.9144       -.21729E-06** at limit **
  13  Prefactor     .94913        1.9948       -.48530E-06    .26251E-04
  14  Prefactor     .10000E-03    3.6703       -.10318E-05** at limit **
  15  Prefactor     .10000E-03    1.1912       -.68015E-08** at limit **
  16  Prefactor     .10000E-03    12.180       -.28769E-05** at limit **
  17  Prefactor     .10001E-03    5.7871        .11030E-05** at limit **
  18  norm          16.657        1.3001        .16538E-07   -.64345E-04
  19  Prefactor     .10000E-03    33.701       -.23382E-06** at limit **
  20  Prefactor     .10000E-03    5.1522        .28779E-05** at limit **
  21  Prefactor     .10000E-03    4.7745       -.22756E-05** at limit **
  22  norm          .10000E-03    4.7798       -.67107E-06** at limit **
  23  Prefactor     34.208        3.4449       -.42426E-06    .16113E-03
  24  Prefactor     .10000E-03    9.4007        .10204E-05** at limit **
  25  norm          1.3465        .64831       -.97038E-07    .88312E-04
  26  norm          .10003E-03    1031.0       -.54971E-04** at limit **
  27  Prefactor     .10000E-03    2.8123       -.20303E-06** at limit **
  28  Prefactor     3.8218        2.0929       -.68882E-06   -.35859E-03
  29  norm          14.321        5.3936        .18047E-06   -.57531E-04
  30  Prefactor     .10000E-03    10.987        .12494E-05** at limit **
  31  norm          2.1293        2.1124       -.45988E-07    .36258E-05
  32  Prefactor     .10000E-03    46.287       -.89488E-05** at limit **
  33  Normalizat    .82646        .21714        .25804E-05   -.42463E-04
  34  Prefactor     .99130        .23859       -.26050E-06   -.34045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 15.4373
  norm       = 12.6563
  Prefactor  = 17.6509
  Prefactor  = 0.0001
  Prefactor  = 8.11885
  Prefactor  = 31.745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71555
  norm       = 0.0001
  Prefactor  = 0.949134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 16.6567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.2085
  Prefactor  = 0.0001
  norm       = 1.34653
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 3.8218
  norm       = 14.3207
  Prefactor  = 0.000100004
  norm       = 2.12927
  Prefactor  = 0.000100001
  Normalizat = 0.826455
  Prefactor  = 0.991301
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.185     FROM HESSE     STATUS=OK           814 CALLS     4999 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.437        9.7774        .25486E-02   -1.4922    
   3  norm          12.656        9.3009        .28153E-02   -1.4996    
   4  Prefactor     17.651        15.326        .23831E-02   -1.4867    
   5  Prefactor     .10000E-03    2.0137        .31060E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1188        23.390        .35115E-02   -1.5138    
   7  Prefactor     31.745        58.095        .17726E-02   -1.4581    
   8  Prefactor     .10000E-03    .83754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .22058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7156        2.2188        .80209E-02   -1.5446    
  12  norm          .10000E-03    9.8131        .69096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .94913        2.0904        .12992E-01   -1.5513    
  14  Prefactor     .10000E-03    3.6639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.657        19.040        .24533E-02   -1.4891    
  19  Prefactor     .10000E-03    41.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.7657        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.208        48.246        .17122E-02   -1.4538    
  24  Prefactor     .10000E-03    9.4068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3465        .64948        .78043E-02   -1.5476    
  26  norm          .10003E-03    17.688        .95213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.8032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.8218        104.54        .51498E-02   -1.5317    
  29  norm          14.321        5.4237        .26464E-02   -1.4951    
  30  Prefactor     .10000E-03    15.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.1293        2.0998        .70635E-02   -1.5416    
  32  Prefactor     .10000E-03    46.431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .82646        .20456        .43951E-01   -.99095    
  34  Prefactor     .99130        .21322        .46157E-01   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50209e-09
Minuit parameter uncertainties:
  1  0.000195426
  2  9.77837
  3  9.30195
  4  15.3292
  5  1.0922e-05
  6  23.4166
  7  58.1991
  8  9.28001e-07
  9  2.33586e-06
  10  2.47709e-07
  11  2.21886
  12  4.59581e-05
  13  2.09056
  14  8.17436e-06
  15  8.31981e-08
  16  3.46346e-05
  17  0.000727425
  18  19.0472
  19  1.11507e-05
  20  2.64968e-05
  21  1.73459e-05
  22  8.75691e-06
  23  48.3013
  24  6.50959e-06
  25  0.649484
  26  0.00149389
  27  1.46493e-06
  28  40.0545
  29  5.42386
  30  0.000483343
  31  2.09991
  32  0.000336769
  33  0.204749
  34  0.213398
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  3.463e-05  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.913e-01  2.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  8.265e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362082/likelihoodResults_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.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) = 4058.18539861
delta logL = -0.000390100865843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4058.18500825
delta logL = 2.59336502495e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3492       1.0000          .0000       10.000    
     3 'Normalizat'    .82647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4058.139     FROM MIGRAD    STATUS=FAILED       150 CALLS      302 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8053        6276.2        .18142E-01    .42960E-03
   2  Index         1.2807        9.2063        .40046       -.38738E-04
   3  Normalizat    .82825        .20565        .24242E-03    .75974E-05
   4  Prefactor     .98611        .29644        .25147E-03    .29815E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4058.139     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      414 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8053        6276.2        .62538E-03    .42960E-03
   2  Index         1.2807        9.2063        .30208E-03   -.38738E-04
   3  Normalizat    .82825        .20565        .35062E-05    .75974E-05
   4  Prefactor     .98611        .29644        .28799E-05    .29815E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4058.139     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      448 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8052        14.449        .44657E-03    .11927E-04
   2  Index         1.2807        1.0967        .14342E-01    .58885E-05
   3  Normalizat    .82825        .20943        .96966E-05    .36345E-05
   4  Prefactor     .98611        .23760        .10059E-04    .25430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8052
  Index      = 1.28068
  Normalizat = 0.828246
  Prefactor  = 0.986113
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.139     FROM HESSE     STATUS=OK            25 CALLS      473 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8052        14.885        .17863E-04   -1.5318    
   2  Index         1.2807        1.1293        .57368E-03   -.83883    
   3  Normalizat    .82825        .20980        .19393E-05   -.99029    
   4  Prefactor     .98611        .23799        .20118E-05   -.93194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09831e-11
Minuit parameter uncertainties:
  1  14.8997
  2  1.15197
  3  0.210004
  4  0.23824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362082': 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) = 4058.13884956
delta logL = 0.046158950774

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  3.805e+00  1.490e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  1.281e+00  1.152e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.861e-01  2.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  8.282e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.297 50.144

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/362082/cmap_HighResolution_410918401_411177601_4FGL_J0937.1+5008_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-08-31 19:04:55.448916', job_id='362082', GAL2='0.99', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630461895.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.62e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='662' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 362082: <4FGL_J0937.1+5008_daily_bin662> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin662> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 18:50:25 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 18:50:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 18:50:26 2021
Terminated at Tue Aug 31 19:04:56 2021
Results reported at Tue Aug 31 19:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin662 144.297 50.1437 410918401 411177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.1+5008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

