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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1268
RA = 84.3775, Dec = 9.986
tmin = 567993601, tmax = 568252801
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='660200', job_status='RUN', time_executed='2021-08-23 12:08:11.038110', time_epoch_executed='1629745691.04' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660200/ft1_4FGL_J0537.5+0959_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660200/ft1_4FGL_J0537.5+0959_daily_bin1268.fits outfile=/scratch/kocevski/660200/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1268.fits ra=84.3775 dec=9.986 rad=12.0 tmin=567993601.0 tmax=568252801.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.66
user 2.14
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.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/660200/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1268.fits evtable="EVENTS" outfile="/scratch/kocevski/660200/ft1_filtered_4FGL_J0537.5+0959_daily_bin1268.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.82
user 0.34
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660200/ft1_filtered_4FGL_J0537.5+0959_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/660200/ltcube_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.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/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits
.....................!
real 14.47
user 12.77
sys 1.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660200/ft1_filtered_4FGL_J0537.5+0959_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/660200/ltcube_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.fits outfile=/scratch/kocevski/660200/expmap_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.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/660200/ltcube_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.fits
.....................!
real 191.53
user 185.36
sys 5.77

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/660200/ft1_filtered_4FGL_J0537.5+0959_daily_bin1268.fits scfile=/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits outfile=/scratch/kocevski/660200/cmap_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.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.82
user 0.37
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660200/ft1_filtered_4FGL_J0537.5+0959_daily_bin1268.fits scfile=/scratch/kocevski/660200/ft2_4FGL_J0537.5+0959_daily_bin1268.fits outfile=/scratch/kocevski/660200/cmap_HighResolution_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.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.84
user 0.38
sys 1.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19237E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2817       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8358       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19238E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0982       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.4092       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4689.188     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     2219 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10141E-03    412.88        .68799E-04** at limit **
   2  Prefactor     23.979        3.4471        .96704E-06    .13894E-02
   3  Prefactor     97.521        1.5238        .18912E-06    .20107E-03
   4  Prefactor     .10000E-03    27.600       -.26990E-05** at limit **
   5  norm          2.2806        1.4488       -.18918E-07   -.31517E-03
   6  norm          7.8379        6.8676       -.94775E-06   -.30028E-03
   7  Prefactor     .10300E-03    14.876       -.15003E-04** at limit **
   8  norm          6.8071        1.0114        .29331E-08   -.21197E-03
   9  Prefactor     .10000E-03    5.7654        .75722E-06** at limit **
  10  Prefactor     .10096E-03    17.565        .14715E-04** at limit **
  11  Prefactor     .10367E-03    38.681        .37013E-04** at limit **
  12  norm          20.467        1.0022        .45196E-08   -.28027E-03
  13  Prefactor     .10000E-03    4.1305       -.44501E-06** at limit **
  14  norm          6.0989        1.0158        .16647E-06   -.11891E-03
  15  norm          3.0503        2.6570        .10778E-06   -.46746E-04
  16  Prefactor     .10000E-03    30.150       -.17432E-04** at limit **
  17  Prefactor     18.226        1.0127        .41918E-07    .83947E-04
  18  Prefactor     .10000E-03    18.801        .36513E-05** at limit **
  19  Prefactor     .10000E-03    2.4602       -.88665E-06** at limit **
  20  norm          .10187E-03    14.667        .46666E-05** at limit **
  21  norm          7.4059        1.0575        .14961E-06   -.54085E-03
  22  Normalizat    .10000E-01    6.5574        .39406E-04** at limit **
  23  Prefactor     .96986        .56040E-01   -.93078E-06   -.66344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101408
  Prefactor  = 23.9787
  Prefactor  = 97.5211
  Prefactor  = 0.000100001
  norm       = 2.28056
  norm       = 7.83794
  Prefactor  = 0.000102998
  norm       = 6.80712
  Prefactor  = 0.0001
  Prefactor  = 0.000100957
  Prefactor  = 0.000103666
  norm       = 20.4672
  Prefactor  = 0.0001
  norm       = 6.0989
  norm       = 3.05025
  Prefactor  = 0.000100001
  Prefactor  = 18.2259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101872
  norm       = 7.40591
  Normalizat = 0.01
  Prefactor  = 0.969857
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.188     FROM HESSE     STATUS=OK           430 CALLS     2649 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10141E-03    5.5610        .50377E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.979        230.89        .20444E-02   -1.4728    
   3  Prefactor     97.521        159.73        .10176E-02   -1.3730    
   4  Prefactor     .10000E-03    27.164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2806        1.9038        .67951E-02   -1.5406    
   6  norm          7.8379        6.9496        .35811E-02   -1.5148    
   7  Prefactor     .10300E-03    6.6300        .54846E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8071        11.648        .38449E-02   -1.5186    
   9  Prefactor     .10000E-03    5.7547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10096E-03    58.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10367E-03    65.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.467        11.002        .22133E-02   -1.4803    
  13  Prefactor     .10000E-03    4.1277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0989        15.340        .40645E-02   -1.5214    
  15  norm          3.0503        2.7412        .58078E-02   -1.5359    
  16  Prefactor     .10000E-03    49.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.226        63.448        .23453E-02   -1.4854    
  18  Prefactor     .10000E-03    18.837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10187E-03    55.408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.4059        12.896        .36836E-02   -1.5164    
  22  Normalizat    .10000E-01    .38415        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .96986        .77939E-01    .28331E-01   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72527e-07
Minuit parameter uncertainties:
  1  0.0055976
  2  149.576
  3  160.442
  4  0.000341806
  5  1.90384
  6  6.95033
  7  0.00891749
  8  11.6519
  9  1.15194e-05
  10  0.0149779
  11  0.0310275
  12  11.0032
  13  5.78796e-06
  14  15.3501
  15  2.74136
  16  0.000459219
  17  63.6848
  18  7.17254e-05
  19  8.79214e-06
  20  0.0203855
  21  12.9013
  22  4.3285e-06
  23  0.077948
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.823e+01  6.368e+01  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.699e-01  7.795e-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:  1.000e-02  4.328e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660200/likelihoodResults_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.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) = 4689.17657864
delta logL = 0.0110427005429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4688.9572168
delta logL = 0.230404537363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9170       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4688.957     FROM MIGRAD    STATUS=CONVERGED    260 CALLS      626 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17965E-01    .26787E-06** at limit **
   2  Index         8.9189        .79044        .15757E-04   -.93427E-05
   3  Normalizat    .10000E-01    1.1970       -.28563E-04** at limit **
   4  Prefactor     .96943        .54811E-01   -.21307E-05   -.19476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.91894
  Normalizat = 0.01
  Prefactor  = 0.969435
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.957     FROM HESSE     STATUS=OK            45 CALLS      671 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20236E-03    .29473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9189        .68387        .34161       -4.0423    
   3  Normalizat    .10000E-01    .29375        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96943        .72861E-01    .28316E-01   -.93755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41228e-10
Minuit parameter uncertainties:
  1  1.91276e-08
  2  0.689527
  3  5.43168e-06
  4  0.0728687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660200': 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) = 4688.9571961
delta logL = 0.230425236311

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  1.913e-08  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  8.919e+00  6.895e-01  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.694e-01  7.287e-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:  1.000e-02  5.432e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/660200/cmap_HighResolution_567993601_568252801_4FGL_J0537.5+0959_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-02', job_status='DONE', photon_flux_upper_limit='4.65e-07', time_completed='2021-08-23 12:19:17.702451', job_id='660200', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629746357.7', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.30e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1268' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:19:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 660200: <4FGL_J0537.5+0959_daily_bin1268> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1268> 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) <bullet0262>, 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:19:18 2021
Results reported at Mon Aug 23 12:19:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1268 84.3775 9.986 567993601 568252801 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 :                                   685.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

