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


Performing analysis on: 4FGL_J1549.5+0236_daily_bin476
RA = 237.385, Dec = 2.6084
tmin = 362707201, tmax = 362966401
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='735820', job_status='RUN', time_executed='2021-09-12 14:56:01.522665', time_epoch_executed='1631483761.52' WHERE source_name='4FGL J1549.5+0236' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735820

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735820/ft1_4FGL_J1549.5+0236_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735820/ft1_4FGL_J1549.5+0236_daily_bin476.fits outfile=/scratch/kocevski/735820/ft1_filteredMKT_4FGL_J1549.5+0236_daily_bin476.fits ra=237.385 dec=2.6084 rad=12.0 tmin=362707201.0 tmax=362966401.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 4.93
user 4.67
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.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/735820/ft1_filteredMKT_4FGL_J1549.5+0236_daily_bin476.fits evtable="EVENTS" outfile="/scratch/kocevski/735820/ft1_filtered_4FGL_J1549.5+0236_daily_bin476.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.45
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735820/ft1_filtered_4FGL_J1549.5+0236_daily_bin476.fits" evtable="EVENTS" scfile=/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits sctable="SC_DATA" outfile=/scratch/kocevski/735820/ltcube_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.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/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits
.....................!
real 11.39
user 11.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735820/ft1_filtered_4FGL_J1549.5+0236_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/735820/ltcube_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.fits outfile=/scratch/kocevski/735820/expmap_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.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/735820/ltcube_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.fits
.....................!
real 154.74
user 150.53
sys 3.90

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/735820/ft1_filtered_4FGL_J1549.5+0236_daily_bin476.fits scfile=/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits outfile=/scratch/kocevski/735820/cmap_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735820/ft1_filtered_4FGL_J1549.5+0236_daily_bin476.fits scfile=/scratch/kocevski/735820/ft2_4FGL_J1549.5+0236_daily_bin476.fits outfile=/scratch/kocevski/735820/cmap_HighResolution_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5771       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1947       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16411E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13661E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40281E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5124       1.0000         .10000E-03   10000.    
    12 'norm      '    13.752       1.0000         .10000E-03   10000.    
    13 'norm      '    .11359E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1399       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94736       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=   8315.069     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1328 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5801        2.4478        .10235E-06   -.77747E-04
   2  norm          1.1974        3.1275       -.70407E-06   -.11700E-02
   3  Prefactor     .10000E-03    22.672       -.80079E-05** at limit **
   4  Prefactor     8.1558        5.1962        .56958E-06   -.17245E-03
   5  Prefactor     .10000E-03    9.2229        .10341E-05** at limit **
   6  Prefactor     .10000E-03    29.735        .11907E-05** at limit **
   7  Prefactor     .10000E-03    1.9556        .50370E-07** at limit **
   8  norm          1.3879        2.5514       -.28891E-06   -.80437E-03
   9  Prefactor     .10000E-03    40.560        .16028E-04** at limit **
  10  norm          .10000E-03    2.2910       -.13390E-07** at limit **
  11  norm          3.5127        1.5928       -.95699E-07    .58706E-05
  12  norm          13.646        13.343        .15633E-04   -.27796E-04
  13  norm          .10000E-03    53.469       -.28388E-04** at limit **
  14  Prefactor     .10000E-03    29.664       -.48891E-05** at limit **
  15  Prefactor     .10000E-03    7.7843       -.11012E-05** at limit **
  16  Normalizat    1.1403        .24269       -.37769E-05    .35985E-04
  17  Prefactor     .94732        .86792E-01    .26224E-06   -.14437E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58008
  norm       = 1.19742
  Prefactor  = 0.0001
  Prefactor  = 8.15583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.51273
  norm       = 13.646
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1403
  Prefactor  = 0.947317
 **********
 **   18 **HESSE 
 **********

 FCN=   8315.069     FROM HESSE     STATUS=OK           219 CALLS     1547 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5801        2.4428        .11325E-03   -1.5330    
   2  norm          1.1974        3.0919        .25226E-03   -1.5489    
   3  Prefactor     .10000E-03    22.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1558        5.1974        .14024E-03   -1.5137    
   5  Prefactor     .10000E-03    9.2266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.796        .20543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9802        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3879        2.5147        .19187E-03   -1.5472    
   9  Prefactor     .10000E-03    40.693        .21260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2952        .13479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5127        1.5948        .75494E-04   -1.5333    
  12  norm          13.646        13.277        .10801E-03   -1.4969    
  13  norm          .10000E-03    53.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.691        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1403        .28157        .40651E-03   -.88468    
  17  Prefactor     .94732        .10128        .16091E-03   -.94507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46642e-09
Minuit parameter uncertainties:
  1  2.44291
  2  3.09229
  3  2.82152e-05
  4  5.19772
  5  4.0315e-06
  6  2.55797e-05
  7  3.95013e-06
  8  2.51489
  9  9.97738e-05
  10  6.17613e-06
  11  1.59478
  12  13.2795
  13  5.1382e-06
  14  1.77963e-05
  15  7.02214e-07
  16  0.281945
  17  0.101297
Done.

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

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.950e-06  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.473e-01  1.013e-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.140e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 237.385 2.608
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735820/likelihoodResults_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.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) = 8315.0714661
delta logL = -0.00240651033346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8315.06905946
delta logL = 1.24713551486e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8315.069     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    57.389        .12510E-02** at limit **
   2  Index         2.3424        5.9987        .50000        .35500E-04
   3  Normalizat    1.1403        .35245E-01    .40651E-03   -.24611E-04
   4  Prefactor     .94732        .12940E-01    .16091E-03   -.46488E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8315.069     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      373 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    57.389        .25171E-03** at limit **
   2  Index         2.3424        5.9987        .36020E-03    .35500E-04
   3  Normalizat    1.1403        .35245E-01    .84752E-05   -.24611E-04
   4  Prefactor     .94732        .12940E-01    .17349E-05   -.46488E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8315.069     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      414 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    314.02        .25021E-03** at limit **
   2  Index         2.1625        5.9500        .50000       -.45995E-06
   3  Normalizat    1.1403        .10177        .16260E-04    .15829E-03
   4  Prefactor     .94732        .37350E-01    .64366E-05    .41472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1625
  Normalizat = 1.1403
  Prefactor  = 0.947318
 **********
 **   18 **HESSE 
 **********

 FCN=   8315.069     FROM HESSE     STATUS=OK            27 CALLS      441 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6761        .50041E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1625        5.2269        .50000       -.60347    
   3  Normalizat    1.1403        .27457        .32521E-05   -.88468    
   4  Prefactor     .94732        .10094        .12873E-05   -.94507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51851e-10
Minuit parameter uncertainties:
  1  2.67911e-07
  2  86.0044
  3  0.274919
  4  0.100958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735820': 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) = 8315.06905812
delta logL = 1.46536694956e-06

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.679e-07  1.000e-04  1.000e+04 ( 1.000e-12)
238        Index:  2.163e+00  8.600e+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.473e-01  1.010e-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.140e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 237.385 2.608

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/735820/cmap_HighResolution_362707201_362966401_4FGL_J1549.5+0236_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-09-12 15:04:01.651539', job_id='735820', GAL2='0.95', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631484241.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='476' AND source_name='4FGL J1549.5+0236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:04:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 735820: <4FGL_J1549.5+0236_daily_bin476> in cluster <slac> Done

Job <4FGL_J1549.5+0236_daily_bin476> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 14:50:25 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:52:08 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:52:08 2021
Terminated at Sun Sep 12 15:04:02 2021
Results reported at Sun Sep 12 15:04:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.5+0236_daily_bin476 237.385 2.6084 362707201 362966401 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 :                                   476.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            817 sec.

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

