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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin36
RA = 237.332, Dec = 63.178
tmin = 248659201, tmax = 248918401
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='724649', job_status='RUN', time_executed='2021-09-12 14:14:18.844875', time_epoch_executed='1631481258.84' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724649/ft1_4FGL_J1549.3+6310_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724649/ft1_4FGL_J1549.3+6310_daily_bin36.fits outfile=/scratch/kocevski/724649/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin36.fits ra=237.332 dec=63.178 rad=12.0 tmin=248659201.0 tmax=248918401.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.49
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.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/724649/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.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.51
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/724649/ltcube_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.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/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits
.....................!
real 14.75
user 14.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/724649/ltcube_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits outfile=/scratch/kocevski/724649/expmap_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.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/724649/ltcube_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits
.....................!
real 191.89
user 185.69
sys 5.84

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 216 point sources and 0 extended sources

Setting source of interest to:
4FGL J1549.3+6310 @ 237.332 63.178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits outfile=/scratch/kocevski/724649/cmap_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.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.332 yref=63.178 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits outfile=/scratch/kocevski/724649/cmap_HighResolution_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.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.332 yref=63.178 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724649/Model_4FGL_J1549.3+6310_daily_bin36.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/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits.....................!
real 45.28
user 43.97
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits', '/scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits', expMap='/scratch/kocevski/724649/expmap_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits', expCube='/scratch/kocevski/724649/ltcube_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/724649/Model_4FGL_J1549.3+6310_daily_bin36.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1549.3+6310'

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  7.296e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/724649/ft1_filtered_4FGL_J1549.3+6310_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/724649/ft2_4FGL_J1549.3+6310_daily_bin36.fits
Exposure map: /scratch/kocevski/724649/expmap_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits
Exposure cube: /scratch/kocevski/724649/ltcube_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/724649/Model_4FGL_J1549.3+6310_daily_bin36.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) = 4829.58108694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41669E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68361       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10239E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.959       1.0000         .10000E-03   10000.    
    10 'norm      '    .58816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    119.12       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26659E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.701       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8664       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4829.547     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3235 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9976        59.968        .70323E-05    .66742E-05
   2  Prefactor     .10000E-03    247.24        .16664E-04** at limit **
   3  Prefactor     77.262        62.966       -.11763E-06   -.18808E-04
   4  Prefactor     3.8229        29.222       -.27104E-05   -.86516E-05
   5  Prefactor     .61392        39.714       -.60187E-05    .29108E-03
   6  Prefactor     .10003E-03    11.003       -.59355E-06** at limit **
   7  Prefactor     21.408        13.019        .28328E-06   -.21880E-03
   8  Prefactor     .10000E-03    16.410       -.10096E-05** at limit **
   9  Prefactor     13.963        46.106       -.15987E-05    .15790E-05
  10  norm          .58741        3.1249        .10390E-05    .54915E-05
  11  Prefactor     119.08        151.30        .28053E-05   -.20884E-04
  12  Prefactor     .10000E-03    3.0028        .13837E-07** at limit **
  13  norm          .10000E-03    10.441        .38185E-06** at limit **
  14  Prefactor     .10000E-03    245.98        .16280E-04** at limit **
  15  Prefactor     .10000E-03    51.600       -.25990E-05** at limit **
  16  Prefactor     1.1708        6.3773        .18702E-05    .13067E-03
  17  Prefactor     .10000E-03    47.285       -.27360E-05** at limit **
  18  norm          .10000E-03    5.8867        .15049E-06** at limit **
  19  Prefactor     21.703        20.552        .25773E-06   -.24760E-04
  20  norm          .10000E-03    .41032        .57264E-06** at limit **
  21  Prefactor     9.8583        10.638       -.76600E-06   -.44357E-03
  22  Prefactor     13.508        17.130       -.20693E-05   -.39732E-03
  23  Prefactor     .10000E-03    2.7189        .85669E-08** at limit **
  24  Prefactor     .10000E-03    38.598        .21825E-05** at limit **
  25  Normalizat    1.2571        .20487       -.13285E-05   -.18072E-03
  26  Prefactor     .76437        .18584        .12758E-05   -.28008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.99763
  Prefactor  = 0.0001
  Prefactor  = 77.2621
  Prefactor  = 3.82289
  Prefactor  = 0.613919
  Prefactor  = 0.000100035
  Prefactor  = 21.4084
  Prefactor  = 0.0001
  Prefactor  = 13.9628
  norm       = 0.58741
  Prefactor  = 119.082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1708
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.7029
  norm       = 0.0001
  Prefactor  = 9.85834
  Prefactor  = 13.5076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25706
  Prefactor  = 0.764369
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.547     FROM HESSE     STATUS=OK           458 CALLS     3693 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9976        60.168        .14157E-03   -1.5142    
   2  Prefactor     .10000E-03    246.31        .21245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     77.262        62.985        .45685E-04   -1.3948    
   4  Prefactor     3.8229        29.112        .20788E-03   -1.5317    
   5  Prefactor     .61392        142.62        .58610E-02   -1.5551    
   6  Prefactor     .10003E-03    23.278        .36036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.408        12.938        .86586E-04   -1.4782    
   8  Prefactor     .10000E-03    16.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.963        46.000        .10721E-03   -1.4960    
  10  norm          .58741        2.9614        .22830E-03   -1.5555    
  11  Prefactor     119.08        149.74        .18435E-03   -1.3521    
  12  Prefactor     .10000E-03    3.0049        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    246.13        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1708        9.0062        .19766E-02   -1.5492    
  17  Prefactor     .10000E-03    47.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9167        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.703        20.581        .85981E-04   -1.4776    
  20  norm          .10000E-03    .58584        .83253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.8583        10.627        .12757E-03   -1.5080    
  22  Prefactor     13.508        17.144        .10891E-03   -1.4973    
  23  Prefactor     .10000E-03    2.7251        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2571        .24069        .22695E-03   -.84857    
  26  Prefactor     .76437        .21483        .26354E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10399e-09
Minuit parameter uncertainties:
  1  43.934
  2  0.000692279
  3  63.0398
  4  21.1132
  5  18.7582
  6  0.0017984
  7  12.9399
  8  2.06171e-05
  9  46.1169
  10  2.63785
  11  150.221
  12  1.28437e-06
  13  2.06797e-05
  14  0.000209969
  15  5.02248e-05
  16  6.49554
  17  4.9219e-05
  18  2.48117e-06
  19  20.5873
  20  6.67435e-06
  21  10.6289
  22  17.1504
  23  6.5543e-07
  24  3.71405e-05
  25  0.240906
  26  0.215065
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.191e+02  1.502e+02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.644e-01  2.151e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.257e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724649/likelihoodResults_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.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) = 4829.47582672
delta logL = 0.0714260983468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4829.47368954
delta logL = 0.0735632827127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.858       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8140       1.0000          .0000       10.000    
     3 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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.

 FCN=   4829.474     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.743        190.29        .46102E-04   -.78763E-04
   2  Index         2.8151        1.3186        .68959E-02   -.34867E-04
   3  Normalizat    1.2427        .23222        .22805E-03    .63670E-04
   4  Prefactor     .77306        .21248        .26220E-03   -.75617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.7427
  Index      = 2.81508
  Normalizat = 1.24272
  Prefactor  = 0.773058
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.474     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.743        149.65        .92204E-05   -1.3965    
   2  Index         2.8151        1.0377        .27584E-03   -.45224    
   3  Normalizat    1.2427        .23153        .45611E-04   -.85293    
   4  Prefactor     .77306        .21183        .10488E-04   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84556e-10
Minuit parameter uncertainties:
  1  150.408
  2  1.04715
  3  0.231723
  4  0.212056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724649': 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) = 4829.47368072
delta logL = 0.0735721022111

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  7.574e+01  1.504e+02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.815e+00  1.047e+00  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.731e-01  2.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.243e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 237.332 63.178
Photon Index (Free Index): 2.82 +/- 1.05
Photon Flux (Free Index): 6.01e-08 +/- 7.34e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.51e-05

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/724649/cmap_HighResolution_248659201_248918401_4FGL_J1549.3+6310_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='7.36e-02', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-12 14:26:29.544193', photon_index_error2='1.05', photon_index2='2.82', ts='0.88', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.51e-05', EG='1.26', time_epoch_completed='1631481989.54', return_code='0', job_id='724649', GAL2='0.77', EG2='1.24', return_code2='0', photon_flux_error2='7.34e-08', ts2='1.04', photon_index='2.44' WHERE bin_id='36' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 724649: <4FGL_J1549.3+6310_daily_bin36> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin36> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 14:10:51 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:12:36 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:12:36 2021
Terminated at Sun Sep 12 14:26:30 2021
Results reported at Sun Sep 12 14:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin36 237.332 63.178 248659201 248918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1549.3+6310 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            939 sec.

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

