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


Performing analysis on: 4FGL_J1549.5+0236_daily_bin990
RA = 237.385, Dec = 2.6084
tmin = 495936001, tmax = 496195201
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='738726', job_status='RUN', time_executed='2021-09-12 15:01:41.520020', time_epoch_executed='1631484101.52' WHERE source_name='4FGL J1549.5+0236' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738726/ft1_4FGL_J1549.5+0236_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738726/ft1_4FGL_J1549.5+0236_daily_bin990.fits outfile=/scratch/kocevski/738726/ft1_filteredMKT_4FGL_J1549.5+0236_daily_bin990.fits ra=237.385 dec=2.6084 rad=12.0 tmin=495936001.0 tmax=496195201.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.49
user 3.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.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/738726/ft1_filteredMKT_4FGL_J1549.5+0236_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.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.50
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/738726/ltcube_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.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/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits
.....................!
real 13.80
user 13.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/738726/ltcube_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits outfile=/scratch/kocevski/738726/expmap_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.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/738726/ltcube_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits
.....................!
real 193.94
user 188.69
sys 4.89

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1549.5+0236 @ 237.385 2.6084

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits outfile=/scratch/kocevski/738726/cmap_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.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=237.385 yref=2.6084 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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits outfile=/scratch/kocevski/738726/cmap_HighResolution_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.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=237.385 yref=2.6084 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738726/Model_4FGL_J1549.5+0236_daily_bin990.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits.....................!
real 75.47
user 74.21
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits', '/scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits', expMap='/scratch/kocevski/738726/expmap_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits', expCube='/scratch/kocevski/738726/ltcube_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738726/Model_4FGL_J1549.5+0236_daily_bin990.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1549.5+0236'

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  2.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
238        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/738726/ft1_filtered_4FGL_J1549.5+0236_daily_bin990.fits
Spacecraft file(s): /scratch/kocevski/738726/ft2_4FGL_J1549.5+0236_daily_bin990.fits
Exposure map: /scratch/kocevski/738726/expmap_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits
Exposure cube: /scratch/kocevski/738726/ltcube_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738726/Model_4FGL_J1549.5+0236_daily_bin990.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) = 8981.24131246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8327       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8849       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.355       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8120       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5438       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0798       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    142.95       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1557       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6628       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8981.240     FROM MIGRAD    STATUS=CONVERGED     41 CALLS     1292 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8330        2.3467       -.63179E-06   -.36141E-02
   2  norm          2.8831        1.2582       -.33991E-06   -.57305E-03
   3  Prefactor     5.9870        1.0195        .52824E-07   -.55851E-03
   4  Prefactor     .10000E-03    1.5175       -.11156E-05** at limit **
   5  Prefactor     26.914        1.0025        .23133E-08   -.39528E-03
   6  Prefactor     17.791        1.0051       -.15990E-07    .56810E-03
   7  Prefactor     1.8848        2.3389       -.12278E-05   -.35261E-02
   8  norm          4.2077        4.0482       -.31412E-06   -.23985E-02
   9  Prefactor     32.350        1.5077       -.14555E-06    .82612E-02
  10  norm          6.8149        2.6864       -.92792E-06    .66966E-02
  11  norm          3.5439        1.6428        .39769E-06    .52196E-03
  12  norm          6.0816        1.5428       -.47171E-06    .30956E-02
  13  norm          .10001E-03    49.409        .99796E-05** at limit **
  14  Prefactor     142.95        1.0037        .54039E-08   -.12280E-02
  15  Prefactor     4.1560        1.0628       -.16292E-06    .73092E-03
  16  Normalizat    1.6625        .29118        .17570E-05   -.24412E-04
  17  Prefactor     .86277        .10272       -.65905E-06   -.11002E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83303
  norm       = 2.88311
  Prefactor  = 5.98698
  Prefactor  = 0.0001
  Prefactor  = 26.9136
  Prefactor  = 17.7912
  Prefactor  = 1.88483
  norm       = 4.20771
  Prefactor  = 32.3503
  norm       = 6.81489
  norm       = 3.54391
  norm       = 6.08158
  norm       = 0.000100009
  Prefactor  = 142.952
  Prefactor  = 4.15603
  Normalizat = 1.66253
  Prefactor  = 0.862768
 **********
 **   18 **HESSE 
 **********

 FCN=   8981.240     FROM HESSE     STATUS=OK           265 CALLS     1557 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8330        2.5040        .60405E-02   -1.5371    
   2  norm          2.8831        3.3545        .59839E-02   -1.5368    
   3  Prefactor     5.9870        69.613        .41028E-02   -1.5219    
   4  Prefactor     .10000E-03    1.5045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.914        24.381        .19305E-02   -1.4670    
   6  Prefactor     17.791        43.467        .23738E-02   -1.4864    
   7  Prefactor     1.8848        2.4010        .75791E-02   -1.5433    
   8  norm          4.2077        4.1421        .49120E-02   -1.5298    
   9  Prefactor     32.350        74.130        .17611E-02   -1.4570    
  10  norm          6.8149        7.9016        .38432E-02   -1.5186    
  11  norm          3.5439        1.6548        .53679E-02   -1.5331    
  12  norm          6.0816        8.7148        .40708E-02   -1.5215    
  13  norm          .10001E-03    49.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     142.95        92.224        .84243E-03   -1.3311    
  15  Prefactor     4.1560        7.2067        .49430E-02   -1.5300    
  16  Normalizat    1.6625        .25477        .85446E-01   -.73308    
  17  Prefactor     .86277        .88978E-01    .44528E-01   -.97454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29162e-06
Minuit parameter uncertainties:
  1  2.5041
  2  3.35471
  3  40.8894
  4  2.14017e-05
  5  24.3904
  6  43.5445
  7  2.40112
  8  4.1424
  9  74.3426
  10  7.90285
  11  1.65478
  12  8.71659
  13  0.00130636
  14  92.3168
  15  7.20817
  16  0.254966
  17  0.0889933
Done.

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

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  1.885e+00  2.401e+00  1.000e-04  1.000e+04 ( 1.000e-12)
238        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.628e-01  8.899e-02  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.663e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 237.385 2.608
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 7.40e-06 +/- 9.42e-06

TS (Fixed Index): 1.39
Ra Dec: 237.385 2.608
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738726/likelihoodResults_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.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) = 8980.82214362
delta logL = 0.417934779853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8980.81461925
delta logL = 0.425459145194

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8980.815     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1838        2.7751        .69665E-02   -.16397E-03
   2  Index         1.6807        .57977        .28026       -.54646E-04
   3  Normalizat    1.6746        .24535        .85194E-01    .11301E-04
   4  Prefactor     .86036        .88056E-01    .44498E-01    .49948E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18376
  Index      = 1.68068
  Normalizat = 1.6746
  Prefactor  = 0.860364
 **********
 **   18 **HESSE 
 **********

 FCN=   8980.815     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1838        2.6748        .15672E-03   -1.5412    
   2  Index         1.6807        .70141        .12979E-01   -.72597    
   3  Normalizat    1.6746        .28474        .37713E-03   -.72983    
   4  Prefactor     .86036        .10241        .17972E-03   -.97540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70139e-12
Minuit parameter uncertainties:
  1  2.6749
  2  0.705591
  3  0.285015
  4  0.102429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738726': 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) = 8980.81461838
delta logL = 0.425460016408

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  2.184e+00  2.675e+00  1.000e-04  1.000e+04 ( 1.000e-12)
238        Index:  1.681e+00  7.056e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.604e-01  1.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.675e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 237.385 2.608
Photon Index (Free Index): 1.68 +/- 0.71
Photon Flux (Free Index): 1.15e-08 +/- 1.70e-08
Energy Flux (Free Index): 1.99e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/738726/cmap_HighResolution_495936001_496195201_4FGL_J1549.5+0236_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.99e-05', photon_flux_error='2.93e-08', dlogl='4.25e-01', energy_flux='7.40e-06', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-12 15:11:30.259099', photon_index_error2='0.71', photon_index2='1.68', ts='1.39', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.51e-05', EG='1.66', time_epoch_completed='1631484690.26', return_code='0', job_id='738726', GAL2='0.86', EG2='1.67', return_code2='0', energy_flux_error='9.42e-06', photon_flux_error2='1.70e-08', ts2='2.24', photon_index='2.41' WHERE bin_id='990' AND source_name='4FGL J1549.5+0236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:11:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 738726: <4FGL_J1549.5+0236_daily_bin990> in cluster <slac> Done

Job <4FGL_J1549.5+0236_daily_bin990> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 15:00:30 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:01:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 15:01:33 2021
Terminated at Sun Sep 12 15:11:31 2021
Results reported at Sun Sep 12 15:11:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.5+0236_daily_bin990 237.385 2.6084 495936001 496195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1549.5+0236 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             393.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            661 sec.

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

