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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin18
RA = 237.332, Dec = 63.178
tmin = 243993601, tmax = 244252801
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='724619', job_status='RUN', time_executed='2021-09-12 14:13:30.578397', time_epoch_executed='1631481210.58' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724619/ft1_4FGL_J1549.3+6310_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724619/ft1_4FGL_J1549.3+6310_daily_bin18.fits outfile=/scratch/kocevski/724619/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin18.fits ra=237.332 dec=63.178 rad=12.0 tmin=243993601.0 tmax=244252801.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.40
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724619/ft1_filtered_4FGL_J1549.3+6310_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/724619/ltcube_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.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/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits
.....................!
real 15.01
user 14.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724619/ft1_filtered_4FGL_J1549.3+6310_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/724619/ltcube_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.fits outfile=/scratch/kocevski/724619/expmap_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.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/724619/ltcube_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.fits
.....................!
real 194.84
user 188.33
sys 5.37

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/724619/ft1_filtered_4FGL_J1549.3+6310_daily_bin18.fits scfile=/scratch/kocevski/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits outfile=/scratch/kocevski/724619/cmap_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724619/ft1_filtered_4FGL_J1549.3+6310_daily_bin18.fits scfile=/scratch/kocevski/724619/ft2_4FGL_J1549.3+6310_daily_bin18.fits outfile=/scratch/kocevski/724619/cmap_HighResolution_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.389       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18505E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12885E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.728       1.0000         .10000E-03   10000.    
    13 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.278       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.560       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3526       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63424       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=   4555.649     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3052 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.387        48.065       -.24811E-06    .30694E-05
   2  Prefactor     .10000E-03    496.12        .39274E-06** at limit **
   3  Prefactor     .10000E-03    18.647        .82034E-07** at limit **
   4  Prefactor     .10000E-03    11.068        .63495E-07** at limit **
   5  Prefactor     .10000E-03    9.1861        .99729E-07** at limit **
   6  Prefactor     16.353        13.902       -.15543E-06    .10231E-04
   7  Prefactor     .10000E-03    7.9742       -.20505E-07** at limit **
   8  Prefactor     11.891        16.435       -.26420E-06    .22109E-04
   9  Prefactor     .10000E-03    16.196       -.25540E-06** at limit **
  10  norm          .10000E-03    4.8784       -.50565E-05** at limit **
  11  Prefactor     95.263        157.48        .25561E-06    .10293E-04
  12  Prefactor     33.738        15.467       -.80806E-07    .51901E-04
  13  norm          .10000E-03    8.2104        .11516E-06** at limit **
  14  Prefactor     30.283        39.173        .28291E-07    .22545E-04
  15  Prefactor     .10000E-03    121.11        .35232E-06** at limit **
  16  Prefactor     5.8808        6.7334       -.29146E-07    .16441E-04
  17  Prefactor     21.589        38.377       -.50425E-06   -.30031E-04
  18  norm          .10000E-03    7.9872        .11413E-06** at limit **
  19  Prefactor     .10000E-03    12.358        .24531E-06** at limit **
  20  norm          .17918        .53536        .12016E-06    .20183E-04
  21  Prefactor     .10000E-03    13.132        .58607E-06** at limit **
  22  Prefactor     .10000E-03    6.6557        .11972E-06** at limit **
  23  Prefactor     .10000E-03    6.1962        .44827E-06** at limit **
  24  Prefactor     .10000E-03    46.656        .23921E-06** at limit **
  25  Normalizat    1.3522        .20490        .21563E-05    .23705E-04
  26  Prefactor     .63462        .18691       -.23817E-05    .13884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3527
  Prefactor  = 0.0001
  Prefactor  = 11.8906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 95.2627
  Prefactor  = 33.7383
  norm       = 0.0001
  Prefactor  = 30.2826
  Prefactor  = 0.0001
  Prefactor  = 5.88081
  Prefactor  = 21.5891
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.179182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35223
  Prefactor  = 0.634617
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.649     FROM HESSE     STATUS=OK           452 CALLS     3504 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.387        48.077        .70407E-04   -1.4569    
   2  Prefactor     .10000E-03    496.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.353        13.911        .99055E-04   -1.4899    
   7  Prefactor     .10000E-03    8.0340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.891        16.446        .11617E-03   -1.5018    
   9  Prefactor     .10000E-03    16.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9797        .28869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     95.263        157.71        .20559E-03   -1.3753    
  12  Prefactor     33.738        15.469        .68999E-04   -1.4546    
  13  norm          .10000E-03    8.2405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.283        39.163        .72814E-04   -1.4607    
  15  Prefactor     .10000E-03    121.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8808        6.7347        .16562E-03   -1.5223    
  17  Prefactor     21.589        37.720        .86263E-04   -1.4778    
  18  norm          .10000E-03    8.0434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17918        .50183        .78945E-03   -1.5623    
  21  Prefactor     .10000E-03    13.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6727        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3031        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3522        .23625        .21719E-03   -.82021    
  26  Prefactor     .63462        .21406        .28082E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48826e-10
Minuit parameter uncertainties:
  1  48.1345
  2  0.000348524
  3  7.76068e-08
  4  2.44324e-06
  5  1.58049e-06
  6  13.914
  7  6.70608e-06
  8  16.4518
  9  7.67963e-06
  10  2.43292e-05
  11  158.412
  12  15.4703
  13  1.85287e-06
  14  39.1959
  15  1.35914e-05
  16  6.7356
  17  37.7618
  18  3.44921e-06
  19  6.34739e-06
  20  0.501843
  21  8.38763e-06
  22  1.52929e-06
  23  1.01924e-06
  24  1.23838e-06
  25  0.236441
  26  0.214336
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  9.526e+01  1.584e+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:  6.346e-01  2.143e-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.352e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/724619/likelihoodResults_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.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) = 4555.64801431
delta logL = 0.000984358936876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4555.6473822
delta logL = 0.00161646950983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.12       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3890       1.0000          .0000       10.000    
     3 'Normalizat'    1.3535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63361       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=   4555.647     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      273 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.12        217.55        .39786E-04    .31146E-04
   2  Index         2.3890        .97527        .90754E-02    .46031E-04
   3  Normalizat    1.3535        .23098        .21709E-03    .18557E-03
   4  Prefactor     .63362        .21174        .28102E-03    .22384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.124
  Index      = 2.38901
  Normalizat = 1.35352
  Prefactor  = 0.633618
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.647     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.12        202.81        .79572E-05   -1.3683    
   2  Index         2.3890        .90861        .36302E-03   -.54943    
   3  Normalizat    1.3535        .23105        .43419E-04   -.81983    
   4  Prefactor     .63362        .21169        .11241E-04   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40118e-10
Minuit parameter uncertainties:
  1  204.216
  2  0.91563
  3  0.231225
  4  0.21196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724619': 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) = 4555.6473822
delta logL = 0.00161647019922

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.021e+02  2.042e+02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.389e+00  9.156e-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:  6.336e-01  2.120e-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.354e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/724619/cmap_HighResolution_243993601_244252801_4FGL_J1549.3+6310_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-12 14:25:00.140837', job_id='724619', GAL2='0.63', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631481900.14', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.62e-03', ts2='0.43', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='18' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:25:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 724619: <4FGL_J1549.3+6310_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin18 237.332 63.178 243993601 244252801 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 :                                   686.25 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             338.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            852 sec.

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

