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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin50
RA = 237.332, Dec = 63.178
tmin = 252288001, tmax = 252547201
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='724663', job_status='RUN', time_executed='2021-09-12 14:14:59.101074', time_epoch_executed='1631481299.1' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724663/ft1_4FGL_J1549.3+6310_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724663/ft1_4FGL_J1549.3+6310_daily_bin50.fits outfile=/scratch/kocevski/724663/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin50.fits ra=237.332 dec=63.178 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.66
user 2.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.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/724663/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/724663/ltcube_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.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/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits
.....................!
real 16.58
user 16.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/724663/ltcube_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits outfile=/scratch/kocevski/724663/expmap_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.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/724663/ltcube_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits
.....................!
real 192.94
user 185.96
sys 5.81

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/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits scfile=/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits outfile=/scratch/kocevski/724663/cmap_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits scfile=/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits outfile=/scratch/kocevski/724663/cmap_HighResolution_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits', '/scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits', expMap='/scratch/kocevski/724663/expmap_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits', expCube='/scratch/kocevski/724663/ltcube_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/724663/Model_4FGL_J1549.3+6310_daily_bin50.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/724663/ft1_filtered_4FGL_J1549.3+6310_daily_bin50.fits
Spacecraft file(s): /scratch/kocevski/724663/ft2_4FGL_J1549.3+6310_daily_bin50.fits
Exposure map: /scratch/kocevski/724663/expmap_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits
Exposure cube: /scratch/kocevski/724663/ltcube_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/724663/Model_4FGL_J1549.3+6310_daily_bin50.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) = 5766.07014682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46739E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94234E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94414E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    259.18       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.474       1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36799       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8878       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1369       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90742       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=   5766.053     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3137 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.359       -.20529E-06** at limit **
   2  Prefactor     .10000E-03    366.47        .62587E-05** at limit **
   3  Prefactor     18.415        30.386       -.53587E-07    .22980E-05
   4  Prefactor     .10007E-03    46.543       -.78858E-05** at limit **
   5  Prefactor     .10000E-03    14.730       -.35135E-07** at limit **
   6  Prefactor     .10000E-03    3.1471        .61299E-08** at limit **
   7  Prefactor     2.9417        4.6906        .22266E-06    .45171E-04
   8  Prefactor     2.7624        19.115        .43289E-06    .33549E-04
   9  Prefactor     .10000E-03    10.355       -.21893E-07** at limit **
  10  norm          .10000E-03    1.8511        .17921E-06** at limit **
  11  Prefactor     259.20        123.58        .21637E-05   -.68456E-04
  12  Prefactor     13.473        8.1095        .30525E-07    .17510E-05
  13  norm          .10000E-03    4.8444       -.92271E-07** at limit **
  14  Prefactor     .10000E-03    23.509       -.43859E-07** at limit **
  15  Prefactor     .10000E-03    81.528       -.96449E-06** at limit **
  16  Prefactor     .10000E-03    3.2867       -.45981E-07** at limit **
  17  Prefactor     .10000E-03    95.744       -.14959E-05** at limit **
  18  norm          .10000E-03    4.8067       -.43684E-07** at limit **
  19  Prefactor     .10000E-03    7.3324       -.26609E-07** at limit **
  20  norm          .36695        .98749       -.10742E-05    .21032E-03
  21  Prefactor     1.8413        14.005        .47480E-05    .17734E-03
  22  Prefactor     7.6948        18.331        .18248E-05    .10531E-03
  23  Prefactor     3.8858        7.2318        .42700E-06   -.71945E-04
  24  Prefactor     .10000E-03    69.377        .19561E-05** at limit **
  25  Normalizat    1.1369        .18883       -.39126E-06    .16758E-03
  26  Prefactor     .90723        .17915        .67493E-06    .20604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4151
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94168
  Prefactor  = 2.76245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 259.196
  Prefactor  = 13.4731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.366954
  Prefactor  = 1.84129
  Prefactor  = 7.69476
  Prefactor  = 3.88576
  Prefactor  = 0.0001
  Normalizat = 1.13688
  Prefactor  = 0.907231
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.053     FROM HESSE     STATUS=OK           454 CALLS     3591 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    365.63        .21190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.415        30.391        .93340E-04   -1.4849    
   4  Prefactor     .10007E-03    137.82        .60479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1568        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9417        4.7244        .10135E-02   -1.5365    
   8  Prefactor     2.7624        19.698        .12247E-02   -1.5376    
   9  Prefactor     .10000E-03    10.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7611        .18553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     259.20        119.94        .12587E-03   -1.2474    
  12  Prefactor     13.473        8.0975        .10912E-03   -1.4974    
  13  norm          .10000E-03    4.8969        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    81.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3314        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    96.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8410        .16257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.3442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36695        .98394        .99437E-04   -1.5587    
  21  Prefactor     1.8413        16.504        .15392E-02   -1.5437    
  22  Prefactor     7.6948        18.063        .14466E-03   -1.5153    
  23  Prefactor     3.8858        7.2173        .10232E-02   -1.5314    
  24  Prefactor     .10000E-03    69.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1369        .21770        .22766E-03   -.88576    
  26  Prefactor     .90723        .20897        .24876E-03   -.95889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63057e-10
Minuit parameter uncertainties:
  1  2.50727e-05
  2  0.000448375
  3  30.4162
  4  0.00644425
  5  1.38209e-05
  6  2.20943e-06
  7  4.72504
  8  14.76
  9  2.28246e-06
  10  0.000114186
  11  120.051
  12  8.0982
  13  4.89132e-06
  14  9.03954e-06
  15  5.15513e-05
  16  7.83592e-06
  17  0.000323696
  18  7.10405e-06
  19  8.25711e-06
  20  0.983987
  21  11.029
  22  18.0763
  23  7.21894
  24  2.00961e-05
  25  0.217873
  26  0.209151
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  2.592e+02  1.201e+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:  9.072e-01  2.092e-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.137e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.74
Ra Dec: 237.332 63.178
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 9.86e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 1.42e-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) = 5765.9304631
delta logL = 0.122372452116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5765.91387097
delta logL = 0.138964587336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    181.96       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6836       1.0000          .0000       10.000    
     3 'Normalizat'    1.1187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92093       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=   5765.914     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      283 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     181.93        189.04        .29927E-04    .12027E-03
   2  Index         2.6837        .55280        .35063E-02    .10415E-03
   3  Normalizat    1.1183        .21422        .22924E-03   -.16782E-03
   4  Prefactor     .92118        .20901        .24713E-03   -.16055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 181.93
  Index      = 2.6837
  Normalizat = 1.11833
  Prefactor  = 0.921185
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.914     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     181.93        166.34        .59854E-05   -1.3002    
   2  Index         2.6837        .48589        .14025E-03   -.48167    
   3  Normalizat    1.1183        .21398        .45849E-04   -.89165    
   4  Prefactor     .92118        .20876        .98852E-05   -.95405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21036e-10
Minuit parameter uncertainties:
  1  166.768
  2  0.486873
  3  0.214145
  4  0.208943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724663': 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) = 5765.91386973
delta logL = 0.138965817637

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.819e+02  1.668e+02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.684e+00  4.869e-01  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:  9.212e-01  2.089e-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.118e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.04
Ra Dec: 237.332 63.178
Photon Index (Free Index): 2.68 +/- 0.49
Photon Flux (Free Index): 1.11e-07 +/- 5.35e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.36e-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/724663/cmap_HighResolution_252288001_252547201_4FGL_J1549.3+6310_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.86e-08', energy_flux2='2.70e-05', photon_flux_error='4.56e-08', dlogl='1.39e-01', energy_flux='3.06e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-12 14:27:03.011507', photon_index_error2='0.49', photon_index2='2.68', ts='7.74', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.14', time_epoch_completed='1631482023.01', return_code='0', job_id='724663', GAL2='0.92', EG2='1.12', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.35e-08', ts2='8.04', photon_index='2.44' WHERE bin_id='50' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 724663: <4FGL_J1549.3+6310_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin50 237.332 63.178 252288001 252547201 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 :                                   721.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            970 sec.

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

