/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 74 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 = 7658
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1549.5+0236_daily_bin68
RA = 237.385, Dec = 2.6084
tmin = 256953601, tmax = 257212801
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='733153', job_status='RUN', time_executed='2021-09-12 14:45:40.006117', time_epoch_executed='1631483140.01' WHERE source_name='4FGL J1549.5+0236' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733153

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733153/ft1_4FGL_J1549.5+0236_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733153/ft1_4FGL_J1549.5+0236_daily_bin68.fits outfile=/scratch/kocevski/733153/ft1_filteredMKT_4FGL_J1549.5+0236_daily_bin68.fits ra=237.385 dec=2.6084 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.47
user 1.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/733153/ltcube_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.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/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits
.....................!
real 16.41
user 16.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/733153/ltcube_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits outfile=/scratch/kocevski/733153/expmap_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.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/733153/ltcube_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits
.....................!
real 193.90
user 188.88
sys 4.43

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/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits scfile=/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits outfile=/scratch/kocevski/733153/cmap_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits scfile=/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits outfile=/scratch/kocevski/733153/cmap_HighResolution_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733153/Model_4FGL_J1549.5+0236_daily_bin68.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/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits.....................!
real 99.06
user 97.40
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits', '/scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits', expMap='/scratch/kocevski/733153/expmap_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits', expCube='/scratch/kocevski/733153/ltcube_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733153/Model_4FGL_J1549.5+0236_daily_bin68.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/733153/ft1_filtered_4FGL_J1549.5+0236_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/733153/ft2_4FGL_J1549.5+0236_daily_bin68.fits
Exposure map: /scratch/kocevski/733153/expmap_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits
Exposure cube: /scratch/kocevski/733153/ltcube_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733153/Model_4FGL_J1549.5+0236_daily_bin68.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) = 12477.9119586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7897       1.0000         .10000E-03   10000.    
     8 'norm      '    .71335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    31.602       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1787       1.0000         .10000E-03   10000.    
    12 'norm      '    20.887       1.0000         .10000E-03   10000.    
    13 'norm      '    21.349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4296       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94715       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12477.09     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1429 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0108        .28621E-07** at limit **
   2  norm          4.0648        2.8322        .84298E-07   -.83903E-05
   3  Prefactor     .10000E-03    50.325        .28524E-06** at limit **
   4  Prefactor     7.9136        4.4225        .14241E-06   -.31855E-04
   5  Prefactor     .10000E-03    6.4572       -.90885E-07** at limit **
   6  Prefactor     9.1998        31.188        .40277E-06    .32803E-05
   7  Prefactor     8.7902        4.2599       -.25229E-06   -.34412E-03
   8  norm          .71391        3.5270        .40363E-05   -.92631E-04
   9  Prefactor     .10000E-03    33.174       -.23086E-06** at limit **
  10  norm          31.603        10.110        .34799E-07   -.46816E-04
  11  norm          2.1788        1.2172       -.26945E-07   -.39881E-04
  12  norm          20.889        13.541        .57375E-07   -.32733E-04
  13  norm          21.293        48.350       -.13733E-05   -.12366E-03
  14  Prefactor     .10000E-03    27.763        .76962E-07** at limit **
  15  Prefactor     .10000E-03    6.5279        .23096E-07** at limit **
  16  Normalizat    1.4295        .20865       -.11701E-05   -.12543E-03
  17  Prefactor     .94717        .74369E-01    .79407E-07   -.34236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.06484
  Prefactor  = 0.0001
  Prefactor  = 7.91365
  Prefactor  = 0.0001
  Prefactor  = 9.19984
  Prefactor  = 8.79021
  norm       = 0.71391
  Prefactor  = 0.0001
  norm       = 31.6033
  norm       = 2.1788
  norm       = 20.8889
  norm       = 21.2925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42948
  Prefactor  = 0.947174
 **********
 **   18 **HESSE 
 **********

 FCN=   12477.09     FROM HESSE     STATUS=OK           225 CALLS     1654 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0376        .21910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0648        2.8295        .15242E-03   -1.5305    
   3  Prefactor     .10000E-03    50.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9136        4.4257        .14253E-03   -1.5145    
   5  Prefactor     .10000E-03    6.4611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1998        31.231        .13215E-03   -1.5101    
   7  Prefactor     8.7902        4.2704        .13520E-03   -1.5115    
   8  norm          .71391        3.5431        .39094E-02   -1.5539    
   9  Prefactor     .10000E-03    33.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          31.603        10.118        .71276E-04   -1.4583    
  11  norm          2.1788        1.2214        .89289E-04   -1.5413    
  12  norm          20.889        13.560        .87640E-04   -1.4794    
  13  norm          21.293        48.333        .86687E-04   -1.4785    
  14  Prefactor     .10000E-03    27.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4295        .23959        .39262E-03   -.79780    
  17  Prefactor     .94717        .85693E-01    .17221E-03   -.94512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98476e-07
Minuit parameter uncertainties:
  1  1.53489e-06
  2  2.82957
  3  0.000128672
  4  4.42588
  5  1.26092e-05
  6  31.2862
  7  4.2705
  8  3.18092
  9  9.56071e-05
  10  10.1181
  11  1.22143
  12  13.5618
  13  48.4221
  14  3.5767e-05
  15  4.13706e-06
  16  0.239777
  17  0.0857051
Done.

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

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  8.790e+00  4.271e+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:  9.472e-01  8.571e-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.429e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 237.385 2.608
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 5.21e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 1.68e-05

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) = 12476.8991136
delta logL = 0.187200288827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12476.8990656
delta logL = 0.187248262906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.172       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1534       1.0000          .0000       10.000    
     3 'Normalizat'    1.4544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94175       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=   12476.90     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      274 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.165        108.46        .31408E-02    .17490E-03
   2  Index         2.1525        6.0630        .15951        .80660E-04
   3  Normalizat    1.4546        .17816        .88045E-01    .20497E-04
   4  Prefactor     .94162        .48094E-01    .45535E-01    .15277E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1649
  Index      = 2.15247
  Normalizat = 1.45458
  Prefactor  = 0.941618
 **********
 **   18 **HESSE 
 **********

 FCN=   12476.90     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.165        5.1791        .12563E-03   -1.5070    
   2  Index         2.1525        .41383        .85641E-02   -.60591    
   3  Normalizat    1.4546        .23475        .38985E-03   -.79063    
   4  Prefactor     .94162        .85300E-01    .17264E-03   -.94702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03065e-12
Minuit parameter uncertainties:
  1  5.17932
  2  0.414528
  3  0.234921
  4  0.0853123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733153': 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) = 12476.8990588
delta logL = 0.187254992987

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  1.016e+01  5.179e+00  1.000e-04  1.000e+04 ( 1.000e-12)
238        Index:  2.152e+00  4.145e-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:  9.416e-01  8.531e-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.455e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.20
Ra Dec: 237.385 2.608
Photon Index (Free Index): 2.15 +/- 0.41
Photon Flux (Free Index): 8.70e-08 +/- 5.57e-08
Energy Flux (Free Index): 4.28e-05 +/- 2.78e-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/733153/cmap_HighResolution_256953601_257212801_4FGL_J1549.5+0236_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='4.28e-05', photon_flux_error='5.21e-08', dlogl='1.87e-01', energy_flux='3.45e-05', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-09-12 14:56:32.219290', photon_index_error2='0.41', photon_index2='2.15', ts='6.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='1.43', time_epoch_completed='1631483792.22', return_code='0', job_id='733153', GAL2='0.94', EG2='1.45', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.57e-08', ts2='7.20', photon_index='2.41' WHERE bin_id='68' AND source_name='4FGL J1549.5+0236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:56:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 733153: <4FGL_J1549.5+0236_daily_bin68> in cluster <slac> Done

Job <4FGL_J1549.5+0236_daily_bin68> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:40:41 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:44:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 14:44:17 2021
Terminated at Sun Sep 12 14:56:33 2021
Results reported at Sun Sep 12 14:56:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.5+0236_daily_bin68 237.385 2.6084 256953601 257212801 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 :                                   650.21 sec.
    Max Memory :                                 1152 MB
    Average Memory :                             339.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            952 sec.

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

