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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1222
RA = 144.297, Dec = 50.1437
tmin = 556070401, tmax = 556329601
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='365922', job_status='RUN', time_executed='2021-08-31 19:01:13.623494', time_epoch_executed='1630461673.62' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365922/ft1_4FGL_J0937.1+5008_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365922/ft1_4FGL_J0937.1+5008_daily_bin1222.fits outfile=/scratch/kocevski/365922/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1222.fits ra=144.297 dec=50.1437 rad=12.0 tmin=556070401.0 tmax=556329601.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.70
user 3.50
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.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/365922/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/365922/ltcube_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.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/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits
.....................!
real 15.06
user 14.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/365922/ltcube_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits outfile=/scratch/kocevski/365922/expmap_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.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/365922/ltcube_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits
.....................!
real 190.18
user 184.93
sys 4.89

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/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits scfile=/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits outfile=/scratch/kocevski/365922/cmap_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.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/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits scfile=/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits outfile=/scratch/kocevski/365922/cmap_HighResolution_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits', '/scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits', expMap='/scratch/kocevski/365922/expmap_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits', expCube='/scratch/kocevski/365922/ltcube_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365922/Model_4FGL_J0937.1+5008_daily_bin1222.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/365922/ft1_filtered_4FGL_J0937.1+5008_daily_bin1222.fits
Spacecraft file(s): /scratch/kocevski/365922/ft2_4FGL_J0937.1+5008_daily_bin1222.fits
Exposure map: /scratch/kocevski/365922/expmap_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits
Exposure cube: /scratch/kocevski/365922/ltcube_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365922/Model_4FGL_J0937.1+5008_daily_bin1222.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6664       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0040       1.0000         .10000E-03   10000.    
     3 'norm      '    6.3329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47663E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.356       1.0000         .10000E-03   10000.    
    10 'norm      '    .13404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54672       1.0000         .10000E-03   10000.    
    12 'norm      '    110.16       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12971E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0514       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5003       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7319       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8466       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8846       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6918       1.0000         .10000E-03   10000.    
    26 'norm      '    6.8267       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2352       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
    29 'norm      '    6.9652       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
    31 'norm      '    1.7184       1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.7450       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .39479E-06   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=   13.42644     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      253 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6664        1.0188         .0000         .0000    
   2  norm          6.0040        1.0035         .0000         .0000    
   3  norm          6.3329        1.0031         .0000         .0000    
   4  Prefactor     3.8697        1.0086         .0000         .0000    
   5  Prefactor     .10000E-03    976.93       -.72144E-06** at limit **
   6  Prefactor     1.8972        1.0398         .0000         .0000    
   7  Prefactor     4.1636        1.0074         .0000         .0000    
   8  Prefactor     .10000E-03    24.283        .81370E-10** at limit **
   9  Prefactor     .10001E-03    6396.6       -.55096E-04** at limit **
  10  norm          .10000E-03    92.460        .18916E-08** at limit **
  11  Prefactor     .10000E-03    618.89       -.75687E-07** at limit **
  12  norm          117.56        119.33       -.17999E-04   -.21337E-05
  13  Prefactor     .10000E-03    26.221       -.23311E-09** at limit **
  14  Prefactor     5.6322        1.0040         .0000         .0000    
  15  Prefactor     1.6534        1.0551         .0000         .0000    
  16  Prefactor     4.2445        1.0071         .0000         .0000    
  17  Prefactor     1.0514        1.2363         .0000         .0000    
  18  norm          .10000E-03    895.95        .17272E-05** at limit **
  19  Prefactor     .10001E-03    1277.7       -.97176E-05** at limit **
  20  Prefactor     2.8066        1.0168         .0000         .0000    
  21  Prefactor     1.7319        1.0493         .0000         .0000    
  22  norm          1.0299        1.2706         .0000         .0000    
  23  Prefactor     .10001E-03    1036.2        .52757E-05** at limit **
  24  Prefactor     8.8846        1.0016         .0000         .0000    
  25  norm          1.6918        1.0522         .0000         .0000    
  26  norm          6.8267        1.0027         .0000         .0000    
  27  Prefactor     1.2352        1.1226         .0000         .0000    
  28  Prefactor     5.8976        1.0036         .0000         .0000    
  29  norm          6.9652        1.0026         .0000         .0000    
  30  Prefactor     7.3057        1.0024         .0000         .0000    
  31  norm          1.7184        1.0502         .0000         .0000    
  32  Prefactor     9.7450        1.0013         .0000         .0000    
  33  Normalizat    .10000E-01    .53743       -.41506E-08** at limit **
  34  Prefactor      .0000        .60229       -.77560E-09** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66641
  norm       = 6.00399
  norm       = 6.33292
  Prefactor  = 3.86972
  Prefactor  = 0.0001
  Prefactor  = 1.89722
  Prefactor  = 4.1636
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 117.559
  Prefactor  = 0.0001
  Prefactor  = 5.63222
  Prefactor  = 1.65345
  Prefactor  = 4.24448
  Prefactor  = 1.05136
  norm       = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 2.80665
  Prefactor  = 1.73194
  norm       = 1.02988
  Prefactor  = 0.000100006
  Prefactor  = 8.8846
  norm       = 1.69183
  norm       = 6.82667
  Prefactor  = 1.23522
  Prefactor  = 5.89762
  norm       = 6.96518
  Prefactor  = 7.30573
  norm       = 1.71843
  Prefactor  = 9.74504
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.42644     FROM HESSE     STATUS=FAILED         9 CALLS      262 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     558.90        556.14         .0000       -1.5381    
   2  norm          6.0040        1.0035         .0000       -1.5218    
   3  norm          6.3329        1.0031         .0000       -1.5205    
   4  Prefactor     3.8697        1.0086         .0000       -1.5315    
   5  Prefactor     .10000E-03    .31071       -.72144E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8972        1.0398         .0000       -1.5432    
   7  Prefactor     4.1636        1.0074         .0000       -1.5300    
   8  Prefactor     .10000E-03    .28039        .81370E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    .12950E-01   -.55096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .23388        .18916E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .32833       -.75687E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          117.56        1.0326       -.17999E-04   -1.3535    
  13  Prefactor     .10000E-03    .20571       -.23311E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6322        1.0040         .0000       -1.5233    
  15  Prefactor     1.6534        1.0551         .0000       -1.5451    
  16  Prefactor     4.2445        1.0071         .0000       -1.5296    
  17  Prefactor     1.0514        1.2363         .0000       -1.5503    
  18  norm          .10000E-03    .17955        .17272E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    .10437       -.97176E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8066        1.0168         .0000       -1.5373    
  21  Prefactor     1.7319        1.0493         .0000       -1.5445    
  22  norm          1.0299        1.2706         .0000       -1.5505    
  23  Prefactor     .10001E-03    .36737E-01    .52757E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.8846        1.0016         .0000       -1.5112    
  25  norm          1.6918        1.0522         .0000       -1.5448    
  26  norm          6.8267        1.0027         .0000       -1.5185    
  27  Prefactor     1.2352        1.1226         .0000       -1.5486    
  28  Prefactor     5.8976        1.0036         .0000       -1.5222    
  29  norm          6.9652        1.0026         .0000       -1.5180    
  30  Prefactor     7.3057        1.0024         .0000       -1.5167    
  31  norm          1.7184        1.0502         .0000       -1.5446    
  32  Prefactor     9.7450        1.0013         .0000       -1.5084    
  33  Normalizat    .10000E-01    .25505       -.41506E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor      .0000        .25750       -.77560E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14768e-11
Minuit parameter uncertainties:
  1  1.01876
  2  1.00351
  3  1.00315
  4  1.0086
  5  1.09542e-05
  6  1.0398
  7  1.0074
  8  1.62031e-09
  9  2.6867e-05
  10  3.48294e-08
  11  1.83521e-06
  12  1.03265
  13  4.00192e-09
  14  1.00399
  15  1.05516
  16  1.00711
  17  1.23632
  18  2.37082e-05
  19  7.53013e-05
  20  1.01682
  21  1.0493
  22  1.27062
  23  2.87833e-05
  24  1.00159
  25  1.05216
  26  1.00271
  27  1.12262
  28  1.00364
  29  1.0026
  30  1.00236
  31  1.05024
  32  1.00132
  33  2.15878e-09
  34  1.82665e-10
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.244e+00  1.007e+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

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  0.000e+00  1.827e-10  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:  1.000e-02  2.159e-09  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.7763568394e-15

TS (Fixed Index): 0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.73e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365922/likelihoodResults_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.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): 101
logL (Free Index) = 13.4268790173
delta logL = -0.000439077026005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13.4268790173
delta logL = -0.000439077026005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.3968       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.42688     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.3968        1.0112        .23916         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.39678
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.42688     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .64409        1.8268        .23916       -.54761    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365922': 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): 101
logL (Free Index) = 13.4268790173
delta logL = -0.000439077026005

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.244e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
358        Index:  2.397e+00  1.021e+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:  1.063e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/365922/cmap_HighResolution_556070401_556329601_4FGL_J0937.1+5008_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.73e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-31 19:07:06.086573', job_id='365922', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630462026.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-4.39e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1222' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 365922: <4FGL_J0937.1+5008_daily_bin1222> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1222> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 19:00:55 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:00:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:00:57 2021
Terminated at Tue Aug 31 19:07:06 2021
Results reported at Tue Aug 31 19:07:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1222 144.297 50.1437 556070401 556329601 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 :                                   334.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             309.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   369 sec.
    Turnaround time :                            371 sec.

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

