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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin810
RA = 237.332, Dec = 63.178
tmin = 449280001, tmax = 449539201
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='728949', job_status='RUN', time_executed='2021-09-12 14:28:22.437378', time_epoch_executed='1631482102.44' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728949/ft1_4FGL_J1549.3+6310_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728949/ft2_4FGL_J1549.3+6310_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728949/ft1_4FGL_J1549.3+6310_daily_bin810.fits outfile=/scratch/kocevski/728949/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin810.fits ra=237.332 dec=63.178 rad=12.0 tmin=449280001.0 tmax=449539201.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.85
user 4.57
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/728949/ft2_4FGL_J1549.3+6310_daily_bin810.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/728949/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin810.fits evtable="EVENTS" outfile="/scratch/kocevski/728949/ft1_filtered_4FGL_J1549.3+6310_daily_bin810.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.46
user 0.29
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728949/ft1_filtered_4FGL_J1549.3+6310_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/728949/ft2_4FGL_J1549.3+6310_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/728949/ltcube_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.fits outfile=/scratch/kocevski/728949/expmap_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.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/728949/ltcube_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.fits
.....................!
real 157.30
user 151.95
sys 4.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 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/728949/ft1_filtered_4FGL_J1549.3+6310_daily_bin810.fits scfile=/scratch/kocevski/728949/ft2_4FGL_J1549.3+6310_daily_bin810.fits outfile=/scratch/kocevski/728949/cmap_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728949/ft1_filtered_4FGL_J1549.3+6310_daily_bin810.fits scfile=/scratch/kocevski/728949/ft2_4FGL_J1549.3+6310_daily_bin810.fits outfile=/scratch/kocevski/728949/cmap_HighResolution_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.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.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    404.72       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8873       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9387       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.684       1.0000         .10000E-03   10000.    
    18 'norm      '    10.439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.132       1.0000         .10000E-03   10000.    
    20 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2467       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72038       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=   4159.219     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3065 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.439       -.41748E-06** at limit **
   2  Prefactor     404.73        492.29       -.29594E-06   -.16943E-05
   3  Prefactor     21.266        38.498        .45756E-05    .44291E-04
   4  Prefactor     10.069        12.545        .67375E-07   -.86701E-05
   5  Prefactor     15.012        44.987        .24430E-05    .57611E-05
   6  Prefactor     .54704        55.802        .17507E-04   -.41683E-03
   7  Prefactor     1.9096        34.627       -.24744E-05   -.16729E-03
   8  Prefactor     .10000E-03    13.543        .11348E-07** at limit **
   9  Prefactor     .10000E-03    12.330        .79319E-07** at limit **
  10  norm          3.9691        3.1358        .24299E-07   -.38910E-04
  11  Prefactor     .10000E-03    32.041        .12919E-06** at limit **
  12  Prefactor     7.9408        11.874       -.93139E-06    .24443E-03
  13  norm          3.0295        7.6042        .67119E-05    .99205E-03
  14  Prefactor     .10000E-03    13.642       -.40347E-07** at limit **
  15  Prefactor     .10000E-03    151.62        .73574E-07** at limit **
  16  Prefactor     .10000E-03    2.8199        .41624E-07** at limit **
  17  Prefactor     28.684        39.592        .26750E-06   -.89465E-05
  18  norm          10.439        9.2293        .86399E-08   -.27886E-04
  19  Prefactor     23.127        24.495        .17339E-06   -.18816E-04
  20  norm          .10000E-03    .50383        .31635E-07** at limit **
  21  Prefactor     16.668        11.170        .10713E-06   -.54804E-04
  22  Prefactor     .10000E-03    15.954        .57676E-06** at limit **
  23  Prefactor     7.7984        7.4082        .54396E-06    .28219E-04
  24  Prefactor     .10000E-03    70.004        .13979E-06** at limit **
  25  Normalizat    1.2465        .21591       -.29682E-06   -.11201E-03
  26  Prefactor     .72065        .19903       -.13133E-05   -.15513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 404.728
  Prefactor  = 21.2665
  Prefactor  = 10.0694
  Prefactor  = 15.0121
  Prefactor  = 0.547036
  Prefactor  = 1.90961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96913
  Prefactor  = 0.0001
  Prefactor  = 7.94081
  norm       = 3.02947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6839
  norm       = 10.4393
  Prefactor  = 23.1271
  norm       = 0.0001
  Prefactor  = 16.6676
  Prefactor  = 0.0001
  Prefactor  = 7.79838
  Prefactor  = 0.000100001
  Normalizat = 1.2465
  Prefactor  = 0.720654
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.219     FROM HESSE     STATUS=OK           460 CALLS     3525 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     404.73        492.29        .10149E-03   -1.1657    
   3  Prefactor     21.266        38.582        .86762E-04   -1.4785    
   4  Prefactor     10.069        12.545        .12627E-03   -1.5073    
   5  Prefactor     15.012        45.379        .10334E-03   -1.4933    
   6  Prefactor     .54704        150.97        .45602E-02   -1.5560    
   7  Prefactor     1.9096        34.527        .30293E-03   -1.5432    
   8  Prefactor     .10000E-03    13.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9691        3.1374        .98478E-04   -1.5309    
  11  Prefactor     .10000E-03    32.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9408        11.880        .71154E-03   -1.5144    
  13  norm          3.0295        8.3291        .11653E-02   -1.5360    
  14  Prefactor     .10000E-03    13.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    151.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8268        .10576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.684        39.218        .74805E-04   -1.4636    
  18  norm          10.439        9.2274        .12401E-03   -1.5062    
  19  Prefactor     23.127        24.487        .83283E-04   -1.4746    
  20  norm          .10000E-03    .77809        .86241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.668        11.014        .98108E-04   -1.4891    
  22  Prefactor     .10000E-03    16.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7984        7.4018        .14360E-03   -1.5149    
  24  Prefactor     .10000E-03    69.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2465        .26209        .21824E-03   -.85178    
  26  Prefactor     .72065        .23911        .27024E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76332e-09
Minuit parameter uncertainties:
  1  1.33654e-05
  2  497.559
  3  38.627
  4  12.5487
  5  45.4831
  6  18.2205
  7  16.2503
  8  4.90068e-06
  9  5.80093e-06
  10  3.13749
  11  1.53811e-05
  12  11.8831
  13  8.33229
  14  4.05377e-06
  15  7.51365e-05
  16  4.03457e-06
  17  39.253
  18  9.22861
  19  24.4981
  20  2.64245e-06
  21  11.0152
  22  2.34397e-05
  23  7.40268
  24  0.000433791
  25  0.262363
  26  0.239453
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  1.538e-05  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.207e-01  2.395e-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.247e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728949/likelihoodResults_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.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) = 4159.21960301
delta logL = -0.000147600441778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4159.21945624
delta logL = -8.21807589091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6809       1.0000          .0000       10.000    
     3 'Normalizat'    1.2465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72068       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=   4159.219     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10389E-03    13.521        .18142E-01** at limit **
   2  Index         2.5931        5.6685        .50000        .16497E-04
   3  Normalizat    1.2465        .37697E-02    .21824E-03    .39996E-03
   4  Prefactor     .72065        .36654E-02    .27024E-03   -.41859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103894
  Index      = 2.59311
  Normalizat = 1.24651
  Prefactor  = 0.720649
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.219     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10389E-03    79.904        .31301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5931        6.2854        .50000       -.50223    
   3  Normalizat    1.2465        .91929E-02    .43648E-04   -.85178    
   4  Prefactor     .72065        .89384E-02    .10810E-04   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01063e-09
Minuit parameter uncertainties:
  1  0.0353244
  2  197.852
  3  0.00919292
  4  0.00893845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728949': 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): 102
logL (Free Index) = 4159.21945596
delta logL = -5.4238262237e-07

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.039e-04  3.532e-02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.593e+00  1.979e+02  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.206e-01  8.938e-03  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.247e+00  9.193e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 237.332 63.178

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/728949/cmap_HighResolution_449280001_449539201_4FGL_J1549.3+6310_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-12 14:37:53.791739', job_id='728949', GAL2='0.72', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631482673.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-5.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='810' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:37:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 728949: <4FGL_J1549.3+6310_daily_bin810> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin810> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:25:33 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:28:11 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:28:11 2021
Terminated at Sun Sep 12 14:37:54 2021
Results reported at Sun Sep 12 14:37:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin810 237.332 63.178 449280001 449539201 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 :                                   567.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            741 sec.

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

