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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1385
RA = 84.3775, Dec = 9.986
tmin = 598320001, tmax = 598579201
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='661722', job_status='RUN', time_executed='2021-08-23 12:13:54.194383', time_epoch_executed='1629746034.19' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661722/ft1_4FGL_J0537.5+0959_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661722/ft1_4FGL_J0537.5+0959_daily_bin1385.fits outfile=/scratch/kocevski/661722/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1385.fits ra=84.3775 dec=9.986 rad=12.0 tmin=598320001.0 tmax=598579201.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.54
user 3.08
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/661722/ltcube_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.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/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits
.....................!
real 12.59
user 11.96
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/661722/ltcube_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits outfile=/scratch/kocevski/661722/expmap_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.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/661722/ltcube_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits
.....................!
real 191.85
user 186.74
sys 4.73

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/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits scfile=/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits outfile=/scratch/kocevski/661722/cmap_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.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 0.77
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits scfile=/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits outfile=/scratch/kocevski/661722/cmap_HighResolution_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.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 0.78
user 0.36
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/661722/Model_4FGL_J0537.5+0959_daily_bin1385.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/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits.....................!
real 173.56
user 171.48
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits', '/scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits', expMap='/scratch/kocevski/661722/expmap_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits', expCube='/scratch/kocevski/661722/ltcube_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/661722/Model_4FGL_J0537.5+0959_daily_bin1385.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/661722/ft1_filtered_4FGL_J0537.5+0959_daily_bin1385.fits
Spacecraft file(s): /scratch/kocevski/661722/ft2_4FGL_J0537.5+0959_daily_bin1385.fits
Exposure map: /scratch/kocevski/661722/expmap_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits
Exposure cube: /scratch/kocevski/661722/ltcube_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/661722/Model_4FGL_J0537.5+0959_daily_bin1385.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) = 6668.57588155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.313       1.0000         .10000E-03   10000.    
     5 'norm      '    .45707       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.165       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4231       1.0000         .10000E-03   10000.    
    14 'norm      '    32.546       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16460E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    50.144       1.0000         .10000E-03   10000.    
    21 'norm      '    .11534E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80140       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92416       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6668.557     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2588 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8529        .86259E-07** at limit **
   2  Prefactor     42.663        58.395       -.16618E-05   -.12399E-03
   3  Prefactor     .10000E-03    17.474        .18472E-06** at limit **
   4  Prefactor     13.305        20.424        .25386E-06    .86172E-06
   5  norm          .45695        .86685        .42373E-06    .51049E-03
   6  norm          4.9834        3.8917       -.11979E-06   -.69015E-04
   7  Prefactor     .10000E-03    5.5941        .14826E-06** at limit **
   8  norm          .10000E-03    6.9220        .91908E-07** at limit **
   9  Prefactor     .10000E-03    3.7232        .31929E-07** at limit **
  10  Prefactor     .10000E-03    45.281       -.30341E-06** at limit **
  11  Prefactor     25.158        35.601       -.29333E-05   -.11570E-03
  12  norm          1.8351        8.3625       -.22474E-05   -.40415E-03
  13  Prefactor     4.4220        9.1947        .61941E-05   -.82814E-03
  14  norm          32.534        16.763        .95464E-07    .45653E-04
  15  norm          3.2694        2.2919        .10232E-06   -.44375E-04
  16  Prefactor     .10000E-03    92.474        .13112E-05** at limit **
  17  Prefactor     .10000E-03    46.460        .12128E-05** at limit **
  18  Prefactor     .10000E-03    31.599       -.62251E-06** at limit **
  19  Prefactor     .10000E-03    5.0987        .91509E-07** at limit **
  20  norm          50.106        36.242       -.56511E-05   -.69275E-03
  21  norm          .10000E-03    4.3747       -.48823E-06** at limit **
  22  Normalizat    .80209        .53931       -.75216E-05   -.37930E-04
  23  Prefactor     .92402        .84685E-01    .11197E-05   -.17001E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 42.6634
  Prefactor  = 0.0001
  Prefactor  = 13.3053
  norm       = 0.456948
  norm       = 4.98343
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1576
  norm       = 1.83511
  Prefactor  = 4.42196
  norm       = 32.5345
  norm       = 3.26939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.1061
  norm       = 0.0001
  Normalizat = 0.802092
  Prefactor  = 0.924023
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.557     FROM HESSE     STATUS=OK           366 CALLS     2954 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8869        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.663        58.117        .61369E-04   -1.4401    
   3  Prefactor     .10000E-03    17.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.305        20.343        .10978E-03   -1.4978    
   5  norm          .45695        .77230        .89558E-03   -1.5573    
   6  norm          4.9834        3.8707        .13403E-03   -1.5261    
   7  Prefactor     .10000E-03    5.7378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7301        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.158        35.499        .79854E-04   -1.4704    
  12  norm          1.8351        8.8008        .30747E-03   -1.5437    
  13  Prefactor     4.4220        9.8642        .95741E-03   -1.5287    
  14  norm          32.534        16.752        .70237E-04   -1.4567    
  15  norm          3.2694        2.2771        .97330E-04   -1.5346    
  16  Prefactor     .10000E-03    93.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1118        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          50.106        38.480        .56632E-04   -1.4291    
  21  norm          .10000E-03    4.3837        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80209        .51378        .82492E-03   -.99991    
  23  Prefactor     .92402        .84111E-01    .13650E-03   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82689e-09
Minuit parameter uncertainties:
  1  4.82723e-06
  2  58.1938
  3  4.87356e-05
  4  20.3533
  5  0.772321
  6  3.8709
  7  7.42882e-06
  8  5.68611e-06
  9  6.4283e-09
  10  7.48894e-05
  11  35.529
  12  8.03921
  13  9.86784
  14  16.7549
  15  2.27714
  16  0.000324302
  17  0.000264034
  18  0.000141168
  19  6.87744e-07
  20  38.4992
  21  8.0967e-05
  22  0.516935
  23  0.0841225
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  2.640e-04  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:  9.240e-01  8.412e-02  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:  8.021e-01  5.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.377 9.986
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661722/likelihoodResults_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.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): 0
logL (Free Index) = 6668.55753342
delta logL = -0.000102202218841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6668.55743122
delta logL = -2.80761014437e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7052       1.0000          .0000       10.000    
     3 'Normalizat'    .80210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92402       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.

 FCN=   6668.557     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    271.23        .90712E-02** at limit **
   2  Index         2.7044        5.6161        .50000        .15245E-06
   3  Normalizat    .80210        .44500        .18536        .35868E-04
   4  Prefactor     .92402        .79735E-01    .30889E-01   -.25705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.70443
  Normalizat = 0.802095
  Prefactor  = 0.924022
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.557     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    47.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7044        6.3462        .50000       -.47700    
   3  Normalizat    .80210        .43971        .82491E-03   -.99991    
   4  Prefactor     .92402        .79386E-01    .13650E-03   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17039e-10
Minuit parameter uncertainties:
  1  0.00122436
  2  4.5514
  3  0.441675
  4  0.079396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661722': 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) = 6668.55743122
delta logL = -2.08001438295e-09

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  1.224e-03  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.704e+00  4.551e+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:  9.240e-01  7.940e-02  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:  8.021e-01  4.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/661722/cmap_HighResolution_598320001_598579201_4FGL_J0537.5+0959_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-02', job_status='DONE', photon_flux_upper_limit='2.96e-07', time_completed='2021-08-23 12:27:07.808188', job_id='661722', GAL2='0.92', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629746827.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-2.08e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1385' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 661722: <4FGL_J0537.5+0959_daily_bin1385> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1385> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 23 12:10:38 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:10:39 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:10:39 2021
Terminated at Mon Aug 23 12:27:08 2021
Results reported at Mon Aug 23 12:27:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1385 84.3775 9.986 598320001 598579201 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 :                                   792.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

