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


Performing analysis on: 4FGL_J0534.5+2201s_daily_bin1320
RA = 83.6331, Dec = 22.0199
tmin = 581472001, tmax = 581731201
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='621050', job_status='RUN', time_executed='2021-08-23 09:56:47.164494', time_epoch_executed='1629737807.16' WHERE source_name='4FGL J0534.5+2201s' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621050/ft1_4FGL_J0534.5+2201s_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621050/ft1_4FGL_J0534.5+2201s_daily_bin1320.fits outfile=/scratch/kocevski/621050/ft1_filteredMKT_4FGL_J0534.5+2201s_daily_bin1320.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=581472001.0 tmax=581731201.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 5.53
user 2.58
sys 2.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.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/621050/ft1_filteredMKT_4FGL_J0534.5+2201s_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.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 3.25
user 0.31
sys 2.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/621050/ltcube_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.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/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits
.....................!
real 15.33
user 11.95
sys 3.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/621050/ltcube_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits outfile=/scratch/kocevski/621050/expmap_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.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/621050/ltcube_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits
.....................!
real 194.20
user 184.82
sys 8.87

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 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.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 168 point sources and 3 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 J0534.5+2201s @ 83.6331 22.0199

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits outfile=/scratch/kocevski/621050/cmap_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.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=83.6331 yref=22.0199 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 3.19
user 0.36
sys 2.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits outfile=/scratch/kocevski/621050/cmap_HighResolution_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.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=83.6331 yref=22.0199 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 3.20
user 0.38
sys 2.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621050/Model_4FGL_J0534.5+2201s_daily_bin1320.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 S 147
Working on...
/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits.....................!
real 125.21
user 120.06
sys 4.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits', '/scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits', expMap='/scratch/kocevski/621050/expmap_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits', expCube='/scratch/kocevski/621050/ltcube_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621050/Model_4FGL_J0534.5+2201s_daily_bin1320.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0534.5+2201s'

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/621050/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1320.fits
Spacecraft file(s): /scratch/kocevski/621050/ft2_4FGL_J0534.5+2201s_daily_bin1320.fits
Exposure map: /scratch/kocevski/621050/expmap_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits
Exposure cube: /scratch/kocevski/621050/ltcube_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621050/Model_4FGL_J0534.5+2201s_daily_bin1320.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) = 4874.63289452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15742       1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10739E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    151.52       1.0000         .10000E-03   10000.    
    10 'norm      '    .10704E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48692       1.0000         .10000E-03   10000.    
    12 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28836E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16526E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1676       1.0000          .0000       10.000    
    21 'norm      '    2.8887       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4857.666     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2601 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        8708.0        .15871E-02** at limit **
   2  norm         10000.0        1400.4       -.79822E-04** at limit **
   3  Prefactor     .10000E-03    2174.7       -.13793E-02** at limit **
   4  norm         10000.0        617.37       -.53159E-03** at limit **
   5  Prefactor     .10000E-03    106.41        .62735E-04** at limit **
   6  Prefactor     77.343        279.90       -.27048E-04   -.45449E-05
   7  Prefactor     .10000E-03    792.28        .86940E-03** at limit **
   8  norm          .10001E-03    47.673       -.90421E-06** at limit **
   9  Prefactor     151.29        278.37       -.16720E-03   -.44448E-04
  10  norm          .10000E-03    39.050       -.40506E-06** at limit **
  11  Prefactor     .48669        .36910        .33803E-06   -.44285E-03
  12  norm          .10000E-03    7.4856        .58871E-06** at limit **
  13  Prefactor     1.7315        4.7905        .71269E-05    .78174E-04
  14  Prefactor     .10000E-03    62.561        .20943E-04** at limit **
  15  Prefactor     .10000E-03    103.69       -.14416E-05** at limit **
  16  Prefactor     .10003E-03    19.386       -.13344E-05** at limit **
  17  Prefactor     .10000E-03    73.434       -.38782E-04** at limit **
  18  Prefactor     .10000E-03    161.95       -.96977E-04** at limit **
  19  Normalizat    .10000E-01    .16578        .29986E-05** at limit **
  20  Prefactor     1.1675        .72257E-01    .94348E-06   -.16297E-03
  21  norm          2.8890        1.0800       -.10729E-06    .11583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 77.3434
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 151.287
  norm       = 0.0001
  Prefactor  = 0.486689
  norm       = 0.0001
  Prefactor  = 1.73152
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.16751
  norm       = 2.88903
 **********
 **   18 **HESSE 
 **********

 FCN=   4857.666     FROM HESSE     STATUS=OK           307 CALLS     2908 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        8707.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        1400.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2174.0        .19563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        617.30        .20232E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    106.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     77.343        279.98        .45653E-04   -1.3947    
   7  Prefactor     .10000E-03    791.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    47.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     151.29        275.44        .16372E-03   -1.3242    
  10  norm          .10000E-03    39.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .48669        .36303        .28967E-04   -1.5568    
  12  norm          .10000E-03    7.5416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7315        4.6939        .18979E-03   -1.5445    
  14  Prefactor     .10000E-03    62.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    107.60        .42813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    109.02        .57622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    73.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    161.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .16906        .17214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1675        .69321E-01    .13989E-03   -.87337    
  21  norm          2.8890        1.0769        .42002E-04   -1.5368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26515e-10
Minuit parameter uncertainties:
  1  0.00251509
  2  0.0005244
  3  0.000116954
  4  0.000532995
  5  2.0359e-05
  6  284.975
  7  9.72176e-05
  8  0.00103657
  9  277.834
  10  4.4736e-05
  11  0.363028
  12  1.3997e-05
  13  4.69485
  14  5.11831e-05
  15  0.000774566
  16  0.00351721
  17  3.29964e-05
  18  1.12612e-06
  19  4.44896e-07
  20  0.069326
  21  1.07692
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.732e+00  4.695e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.168e+00  6.933e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  4.449e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 83.633 22.020
Photon Flux Upper Limit: 2.69e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621050/likelihoodResults_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.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) = 4857.63967786
delta logL = 0.0263688554578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4857.60314153
delta logL = 0.0629051784636

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4857.603     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82700        1.7161        .12540E-01   -.11916E-02
   2  Index         3.0502        .75441        .16513        .28342E-04
   3  Normalizat    .10000E-01    .16566        .32094    ** at limit **
   4  Prefactor     1.1657        .68573E-01    .35497E-01   -.13705E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.826996
  Index      = 3.05025
  Normalizat = 0.01
  Prefactor  = 1.16569
 **********
 **   18 **HESSE 
 **********

 FCN=   4857.603     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82700        2.1171        .10591E-03   -1.5526    
   2  Index         3.0502        1.4132        .94080E-02   -.40058    
   3  Normalizat    .10000E-01    .16903        .17216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1657        .66947E-01    .13993E-03   -.87394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87389e-09
Minuit parameter uncertainties:
  1  2.11726
  2  1.43634
  3  2.85516e-06
  4  0.0669515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621050': 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) = 4857.60314138
delta logL = 0.062905335677

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  8.270e-01  2.117e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.050e+00  1.436e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.166e+00  6.695e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  2.855e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 83.633 22.020

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/621050/cmap_HighResolution_581472001_581731201_4FGL_J0534.5+2201s_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-01', job_status='DONE', photon_flux_upper_limit='2.69e-06', time_completed='2021-08-23 10:08:15.221254', job_id='621050', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629738495.22', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.29e-02', ts2='0.37', photon_index_error='0.00', photon_index='3.80' WHERE bin_id='1320' AND source_name='4FGL J0534.5+2201s' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 10:08:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 621050: <4FGL_J0534.5+2201s_daily_bin1320> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_daily_bin1320> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 23 09:55:45 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 09:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 09:55:47 2021
Terminated at Mon Aug 23 10:08:16 2021
Results reported at Mon Aug 23 10:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_daily_bin1320 83.6331 22.0199 581472001 581731201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2201s fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.18 sec.
    Max Memory :                                 782 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

