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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1265
RA = 84.3775, Dec = 9.986
tmin = 567216001, tmax = 567475201
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='660195', job_status='RUN', time_executed='2021-08-23 12:09:17.865840', time_epoch_executed='1629745757.87' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660195/ft1_4FGL_J0537.5+0959_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660195/ft1_4FGL_J0537.5+0959_daily_bin1265.fits outfile=/scratch/kocevski/660195/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1265.fits ra=84.3775 dec=9.986 rad=12.0 tmin=567216001.0 tmax=567475201.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.42
user 2.62
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.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/660195/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.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 1.09
user 0.33
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/660195/ltcube_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.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/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits
.....................!
real 13.16
user 12.15
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/660195/ltcube_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits outfile=/scratch/kocevski/660195/expmap_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.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/660195/ltcube_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits
.....................!
real 190.48
user 184.46
sys 5.65

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 164 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0537.5+0959 @ 84.3775 9.986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits outfile=/scratch/kocevski/660195/cmap_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.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=84.3775 yref=9.986 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 1.12
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits outfile=/scratch/kocevski/660195/cmap_HighResolution_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.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=84.3775 yref=9.986 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 1.14
user 0.38
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660195/Model_4FGL_J0537.5+0959_daily_bin1265.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits..!
real 15.91
user 12.60
sys 1.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits', '/scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits', expMap='/scratch/kocevski/660195/expmap_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits', expCube='/scratch/kocevski/660195/ltcube_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/660195/Model_4FGL_J0537.5+0959_daily_bin1265.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0537.5+0959'

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.070e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/660195/ft1_filtered_4FGL_J0537.5+0959_daily_bin1265.fits
Spacecraft file(s): /scratch/kocevski/660195/ft2_4FGL_J0537.5+0959_daily_bin1265.fits
Exposure map: /scratch/kocevski/660195/expmap_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits
Exposure cube: /scratch/kocevski/660195/ltcube_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/660195/Model_4FGL_J0537.5+0959_daily_bin1265.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) = 32.9159899984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6775       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5061       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .82802       1.0000         .10000E-03   10000.    
     5 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29972E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54939       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7492       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7368       1.0000         .10000E-03   10000.    
    20 'norm      '    .53212E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .39075E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .12416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   32.73201     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      396 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.010        .90712E-02** at limit **
   2  Prefactor     .10000E-03    852.18        .46518E-02** at limit **
   3  Prefactor     .10000E-03    766.78        .42807E-02** at limit **
   4  Prefactor     .10000E-03    335.58        .12544E-01** at limit **
   5  norm          .10000E-03    13.954        .90712E-02** at limit **
   6  norm          .10000E-03    191.73        .84264E-02** at limit **
   7  Prefactor     .10000E-03    666.34        .91719E-02** at limit **
   8  norm          .10000E-03    8833.8        .44056E-02** at limit **
   9  Prefactor     1.4666        1.0747         .0000         .0000    
  10  Prefactor     4.8188        1.0055         .0000         .0000    
  11  Prefactor     .10000E-03    .32894        .16949E-04** at limit **
  12  norm          4.7847        1.0056         .0000         .0000    
  13  Prefactor     .10000E-03    .20571        .23897E-07** at limit **
  14  norm          4.7492        1.0056         .0000         .0000    
  15  norm          2.1342        1.0305         .0000         .0000    
  16  Prefactor     3.8783        1.0086         .0000         .0000    
  17  Prefactor     4.0699        1.0077         .0000         .0000    
  18  Prefactor     1.9286        1.0383         .0000         .0000    
  19  Prefactor     1.7368        1.0490         .0000         .0000    
  20  norm          .10000E-03    .21556       -.12304E-03** at limit **
  21  norm          .10000E-03    .23822        .21545E-05** at limit **
  22  Normalizat    .10000E-01    .25505        .23245E-03** at limit **
  23  Prefactor     .12422        .37035       -.63262E-04    .17940E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 1.46656
  Prefactor  = 4.81879
  Prefactor  = 0.0001
  norm       = 4.7847
  Prefactor  = 0.0001
  norm       = 4.74921
  norm       = 2.13422
  Prefactor  = 3.87831
  Prefactor  = 4.06992
  Prefactor  = 1.92859
  Prefactor  = 1.73681
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.124225
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32.73201     FROM HESSE     STATUS=FAILED        25 CALLS      421 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    852.18        .46518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    766.78        .42807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    335.58        .12544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    191.73        .84264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    666.34        .91719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8833.8        .44056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     578.44        576.78         .0000       -1.5466    
  10  Prefactor     4.8188        1.0055         .0000       -1.5269    
  11  Prefactor     .10000E-03    .32894        .16949E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7847        1.0056         .0000       -1.5270    
  13  Prefactor     .10000E-03    .20571        .23897E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7492        1.0056         .0000       -1.5272    
  15  norm          2.1342        1.0305         .0000       -1.5416    
  16  Prefactor     3.8783        1.0086         .0000       -1.5314    
  17  Prefactor     4.0699        1.0077         .0000       -1.5304    
  18  Prefactor     1.9286        1.0383         .0000       -1.5430    
  19  Prefactor     1.7368        1.0490         .0000       -1.5444    
  20  norm          .10000E-03    .21556       -.12304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .23822        .21545E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25505        .23245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12422        .37035       -.63262E-04   -1.3474    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47437e-13
Minuit parameter uncertainties:
  1  9.26175e-08
  2  0.000376639
  3  0.000191884
  4  1.71475e-05
  5  1.76867e-07
  6  1.3664e-05
  7  0.000472641
  8  0.00849209
  9  1.07475
  10  1.00549
  11  1.16802e-07
  12  1.00557
  13  2.75818e-11
  14  1.00565
  15  1.03048
  16  1.00856
  17  1.00775
  18  1.03833
  19  1.04897
  20  8.59181e-07
  21  1.66638e-08
  22  8.99031e-08
  23  0.377621
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.070e+00  1.008e+00  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.242e-01  3.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.000e-02  8.990e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

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

Saving results to:
/scratch/kocevski/660195/likelihoodResults_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.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) = 32.7328317138
delta logL = -0.000824745805808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 32.7328317138
delta logL = -0.000824745805808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.6414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   32.73283     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.6414        1.0080        .23067         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.64138
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32.73283     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       .78929        1.9146        .23067       -.49124    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660195': 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) = 32.7328317138
delta logL = -0.000824745805808

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.070e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
262        Index:  2.641e+00  1.017e+00  0.000e+00  1.000e+01 (-1.000e+00)
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.239e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.008e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 84.377 9.986

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/660195/cmap_HighResolution_567216001_567475201_4FGL_J0537.5+0959_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.85e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-23 12:14:44.024386', job_id='660195', GAL2='0.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629746084.02', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.12', dlogl='-8.25e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1265' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 660195: <4FGL_J0537.5+0959_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1265> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Aug 23 12:05:32 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 12:05:33 2021
Terminated at Mon Aug 23 12:14:44 2021
Results reported at Mon Aug 23 12:14:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1265 84.3775 9.986 567216001 567475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0537.5+0959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   331.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            552 sec.

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

