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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin1169
RA = 237.332, Dec = 63.178
tmin = 542332801, tmax = 542592001
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='731362', job_status='RUN', time_executed='2021-09-12 14:35:48.944778', time_epoch_executed='1631482548.94' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='1169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731362

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731362/ft1_4FGL_J1549.3+6310_daily_bin1169.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731362/ft1_4FGL_J1549.3+6310_daily_bin1169.fits outfile=/scratch/kocevski/731362/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin1169.fits ra=237.332 dec=63.178 rad=12.0 tmin=542332801.0 tmax=542592001.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.15
user 3.93
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.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/731362/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin1169.fits evtable="EVENTS" outfile="/scratch/kocevski/731362/ft1_filtered_4FGL_J1549.3+6310_daily_bin1169.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731362/ft1_filtered_4FGL_J1549.3+6310_daily_bin1169.fits" evtable="EVENTS" scfile=/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits sctable="SC_DATA" outfile=/scratch/kocevski/731362/ltcube_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.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/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits
.....................!
real 12.90
user 12.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731362/ft1_filtered_4FGL_J1549.3+6310_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits sctable="SC_DATA" expcube=/scratch/kocevski/731362/ltcube_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.fits outfile=/scratch/kocevski/731362/expmap_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.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/731362/ltcube_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.fits
.....................!
real 190.39
user 185.65
sys 4.40

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/731362/ft1_filtered_4FGL_J1549.3+6310_daily_bin1169.fits scfile=/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits outfile=/scratch/kocevski/731362/cmap_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731362/ft1_filtered_4FGL_J1549.3+6310_daily_bin1169.fits scfile=/scratch/kocevski/731362/ft2_4FGL_J1549.3+6310_daily_bin1169.fits outfile=/scratch/kocevski/731362/cmap_HighResolution_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .59609       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85347       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83066       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=   5876.906     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3096 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4203        .11103E-07** at limit **
   2  Prefactor     .10000E-03    303.89       -.78060E-05** at limit **
   3  Prefactor     22.866        29.880        .46581E-06   -.10046E-04
   4  Prefactor     .10000E-03    12.678        .11102E-05** at limit **
   5  Prefactor     51.860        33.292        .20694E-06   -.14817E-04
   6  Prefactor     14.734        13.037       -.19441E-05    .64613E-04
   7  Prefactor     .10000E-03    11.583        .64688E-06** at limit **
   8  Prefactor     .10000E-03    3.1608       -.91837E-08** at limit **
   9  Prefactor     .10000E-03    17.916        .94285E-06** at limit **
  10  norm          16.744        4.6156       -.31108E-07   -.23915E-04
  11  Prefactor     .10000E-03    103.08        .55997E-05** at limit **
  12  Prefactor     .10000E-03    7.8496       -.30961E-07** at limit **
  13  norm          23.112        9.8740        .14160E-07   -.14127E-04
  14  Prefactor     .10000E-03    14.460       -.12661E-05** at limit **
  15  Prefactor     .10001E-03    54.299       -.18478E-04** at limit **
  16  Prefactor     11.776        7.6051       -.11703E-06   -.59332E-04
  17  Prefactor     .10000E-03    11.697       -.71422E-06** at limit **
  18  norm          17.037        9.5408        .22475E-08    .36717E-04
  19  Prefactor     .10000E-03    4.7112       -.10441E-08** at limit **
  20  norm          .59603        .49126        .29650E-07    .26094E-03
  21  Prefactor     .88728        4.3949       -.24535E-05   -.11145E-02
  22  Prefactor     .10000E-03    26.238       -.13123E-05** at limit **
  23  Prefactor     .10000E-03    6.2852       -.54156E-07** at limit **
  24  Prefactor     .10000E-03    49.953        .16249E-04** at limit **
  25  Normalizat    .85310        .16343        .56696E-06    .54710E-05
  26  Prefactor     .83103        .15437        .12129E-06    .51351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.8661
  Prefactor  = 0.0001
  Prefactor  = 51.8604
  Prefactor  = 14.7336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7443
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 23.1119
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 11.7759
  Prefactor  = 0.0001
  norm       = 17.037
  Prefactor  = 0.0001
  norm       = 0.596032
  Prefactor  = 0.887281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.853097
  Prefactor  = 0.831032
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.906     FROM HESSE     STATUS=OK           454 CALLS     3550 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    303.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.866        29.871        .83761E-04   -1.4751    
   4  Prefactor     .10000E-03    12.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.860        33.398        .55690E-04   -1.4266    
   6  Prefactor     14.734        13.055        .10440E-03   -1.4940    
   7  Prefactor     .10000E-03    11.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1625        .13310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.744        4.6217        .82963E-04   -1.4889    
  11  Prefactor     .10000E-03    102.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.112        9.8654        .83323E-04   -1.4746    
  14  Prefactor     .10000E-03    14.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    51.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.776        7.6159        .11674E-03   -1.5022    
  17  Prefactor     .10000E-03    11.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.037        9.5328        .97032E-04   -1.4882    
  19  Prefactor     .10000E-03    4.7137        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .59603        .47299        .46621E-03   -1.5554    
  21  Prefactor     .88728        5.3667        .33648E-03   -1.5520    
  22  Prefactor     .10000E-03    27.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5421        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    47.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .85310        .19151        .23442E-03   -.98128    
  26  Prefactor     .83103        .18038        .23317E-03   -.98594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9871e-09
Minuit parameter uncertainties:
  1  9.70074e-07
  2  0.00110245
  3  29.8909
  4  4.17005e-05
  5  33.4101
  6  13.0579
  7  0.000120215
  8  1.10318e-06
  9  4.10773e-05
  10  4.62182
  11  0.000501001
  12  3.45589e-06
  13  9.86611
  14  3.78951e-05
  15  0.00108452
  16  7.61649
  17  2.12392e-05
  18  9.53362
  19  1.52229e-07
  20  0.472993
  21  4.36465
  22  0.00011679
  23  1.58775e-05
  24  0.000946905
  25  0.191658
  26  0.180507
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  5.010e-04  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:  8.310e-01  1.805e-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:  8.531e-01  1.917e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731362/likelihoodResults_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.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) = 5876.90593905
delta logL = -4.61578310933e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5876.90589293
delta logL = -3.52165443473e-08

Fit tolerance = 1e-08

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

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

 FCN=   5876.906     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8114.4        .90712E-02** at limit **
   2  Index         2.4361        7.0084        .50000       -.36150E-05
   3  Normalizat    .85310        .39693E-01    .44299E-01   -.47655E-04
   4  Prefactor     .83103        .39224E-01    .44120E-01    .96247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43609
  Normalizat = 0.853097
  Prefactor  = 0.831032
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.906     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9850.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4361        5.9186        .50000       -.53842    
   3  Normalizat    .85310        .85983E-01    .23442E-03   -.98128    
   4  Prefactor     .83103        .85002E-01    .23317E-03   -.98594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13624e-09
Minuit parameter uncertainties:
  1  0.00561385
  2  60.4964
  3  0.0859968
  4  0.0850153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731362': 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) = 5876.9058929
delta logL = -4.68207872473e-09

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  5.614e-03  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.436e+00  6.050e+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:  8.310e-01  8.502e-02  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:  8.531e-01  8.600e-02  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/731362/cmap_HighResolution_542332801_542592001_4FGL_J1549.3+6310_daily_bin1169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-12 14:49:38.429474', job_id='731362', GAL2='0.83', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631483378.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-4.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1169' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 731362: <4FGL_J1549.3+6310_daily_bin1169> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin1169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:35:16 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:35:34 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:35:34 2021
Terminated at Sun Sep 12 14:49:39 2021
Results reported at Sun Sep 12 14:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin1169 237.332 63.178 542332801 542592001 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 :                                   809.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            863 sec.

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

