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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin747
RA = 237.332, Dec = 63.178
tmin = 432950401, tmax = 433209601
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='728852', job_status='RUN', time_executed='2021-09-12 14:27:23.169742', time_epoch_executed='1631482043.17' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728852/ft1_4FGL_J1549.3+6310_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728852/ft1_4FGL_J1549.3+6310_daily_bin747.fits outfile=/scratch/kocevski/728852/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin747.fits ra=237.332 dec=63.178 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.75
user 5.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728852/ft1_filtered_4FGL_J1549.3+6310_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/728852/ltcube_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.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/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits
.....................!
real 14.89
user 14.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728852/ft1_filtered_4FGL_J1549.3+6310_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/728852/ltcube_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.fits outfile=/scratch/kocevski/728852/expmap_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.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/728852/ltcube_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.fits
.....................!
real 190.74
user 186.13
sys 4.08

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/728852/ft1_filtered_4FGL_J1549.3+6310_daily_bin747.fits scfile=/scratch/kocevski/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits outfile=/scratch/kocevski/728852/cmap_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728852/ft1_filtered_4FGL_J1549.3+6310_daily_bin747.fits scfile=/scratch/kocevski/728852/ft2_4FGL_J1549.3+6310_daily_bin747.fits outfile=/scratch/kocevski/728852/cmap_HighResolution_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15362E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    99.897       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.123       1.0000         .10000E-03   10000.    
    13 'norm      '    19.774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8747       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.327       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.753       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5780       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.931       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8599       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4894       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68612       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=   3359.729     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3570 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.516        .59788E-07** at limit **
   2  Prefactor     .10000E-03    340.32        .15828E-06** at limit **
   3  Prefactor     .10000E-03    25.862        .64126E-07** at limit **
   4  Prefactor     36.557        35.207       -.33906E-06    .33611E-06
   5  Prefactor     .10000E-03    17.402        .39857E-06** at limit **
   6  Prefactor     .10000E-03    15.449        .39721E-07** at limit **
   7  Prefactor     8.8401        16.869        .16978E-05    .15744E-03
   8  Prefactor     .10000E-03    13.812       -.25356E-06** at limit **
   9  Prefactor     .10000E-03    17.326       -.15632E-06** at limit **
  10  norm          8.8747        12.562       -.19752E-06   -.52240E-04
  11  Prefactor     99.660        367.65       -.74958E-05   -.10079E-04
  12  Prefactor     24.125        23.449       -.25270E-06   -.36332E-04
  13  norm          19.783        28.121       -.10563E-05   -.76543E-04
  14  Prefactor     9.6594        547.93       -.68410E-05   -.15048E-04
  15  Prefactor     .10000E-03    144.51        .32145E-06** at limit **
  16  Prefactor     12.327        14.837        .79115E-06    .92985E-04
  17  Prefactor     .10000E-03    53.903        .25241E-06** at limit **
  18  norm          20.752        16.923       -.15159E-06   -.11232E-04
  19  Prefactor     .10000E-03    45.393       -.10575E-06** at limit **
  20  norm          1.5779        1.1686        .76914E-07    .17193E-04
  21  Prefactor     14.931        11.443       -.63704E-07    .29050E-06
  22  Prefactor     35.559        21.172        .78284E-07    .13765E-05
  23  Prefactor     5.8600        9.3863        .24193E-07    .96605E-05
  24  Prefactor     .10000E-03    57.147       -.32529E-07** at limit **
  25  Normalizat    1.4895        .30669        .60886E-05   -.78873E-04
  26  Prefactor     .68611        .27973       -.79319E-05    .19719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.84006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.87474
  Prefactor  = 99.6599
  Prefactor  = 24.1248
  norm       = 19.783
  Prefactor  = 9.65938
  Prefactor  = 0.0001
  Prefactor  = 12.3267
  Prefactor  = 0.0001
  norm       = 20.7522
  Prefactor  = 0.0001
  norm       = 1.57791
  Prefactor  = 14.9314
  Prefactor  = 35.5588
  Prefactor  = 5.86002
  Prefactor  = 0.0001
  Normalizat = 1.4895
  Prefactor  = 0.686106
 **********
 **   18 **HESSE 
 **********

 FCN=   3359.729     FROM HESSE     STATUS=OK           454 CALLS     4024 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    340.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.557        35.210        .66287E-04   -1.4498    
   5  Prefactor     .10000E-03    17.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8401        17.345        .67399E-03   -1.5113    
   8  Prefactor     .10000E-03    13.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8747        12.540        .13459E-03   -1.5112    
  11  Prefactor     99.660        367.72        .20111E-03   -1.3708    
  12  Prefactor     24.125        23.447        .81557E-04   -1.4725    
  13  norm          19.783        28.117        .90071E-04   -1.4818    
  14  Prefactor     9.6594        560.46        .12752E-03   -1.5086    
  15  Prefactor     .10000E-03    144.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.327        14.913        .57047E-03   -1.5006    
  17  Prefactor     .10000E-03    53.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.752        16.915        .87922E-04   -1.4797    
  19  Prefactor     .10000E-03    45.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5779        1.1550        .50023E-04   -1.5457    
  21  Prefactor     14.931        11.431        .10365E-03   -1.4935    
  22  Prefactor     35.559        21.165        .67204E-04   -1.4515    
  23  Prefactor     5.8600        9.3775        .16590E-03   -1.5224    
  24  Prefactor     .10000E-03    57.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4895        .31153        .22948E-03   -.78074    
  26  Prefactor     .68611        .28335        .30347E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4261e-10
Minuit parameter uncertainties:
  1  2.21049e-06
  2  0.000140223
  3  2.36404e-06
  4  35.2303
  5  4.88133e-05
  6  2.28278e-05
  7  17.3544
  8  3.32774e-05
  9  3.0726e-05
  10  12.5435
  11  376.682
  12  23.4562
  13  28.1358
  14  148.641
  15  0.000116417
  16  14.9171
  17  6.95e-05
  18  16.9193
  19  4.64377e-05
  20  1.15498
  21  11.4325
  22  21.1699
  23  9.37983
  24  3.54243e-05
  25  0.311927
  26  0.283943
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  9.966e+01  3.767e+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.861e-01  2.839e-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.489e+00  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/728852/likelihoodResults_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.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) = 3358.48793173
delta logL = 1.24080704806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3358.45999058
delta logL = 1.26874820619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4143       1.0000          .0000       10.000    
     3 'Normalizat'    1.3440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77034       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=   3358.460     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      338 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.127        238.21        .12283E-03    .66041E-04
   2  Index         4.4154        3.6942        .30075E-02    .45661E-04
   3  Normalizat    1.3440        .28298        .23842E-03   -.13999E-03
   4  Prefactor     .77009        .25971        .28759E-03    .80979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1269
  Index      = 4.41536
  Normalizat = 1.34405
  Prefactor  = 0.770086
 **********
 **   18 **HESSE 
 **********

 FCN=   3358.460     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.127        37.832        .49131E-05   -1.5071    
   2  Index         4.4154        1.5715        .12030E-03   -.11720    
   3  Normalizat    1.3440        .31156        .47685E-04   -.82261    
   4  Prefactor     .77009        .28487        .11504E-04   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57149e-10
Minuit parameter uncertainties:
  1  37.9216
  2  1.599
  3  0.311997
  4  0.285418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728852': 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) = 3358.4599856
delta logL = 1.2687531811

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.701e-01  2.854e-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.344e+00  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 237.332 63.178
Photon Index (Free Index): 4.42 +/- 1.60
Photon Flux (Free Index): 2.67e-07 +/- 1.94e-07
Energy Flux (Free Index): 3.77e-05 +/- 2.85e-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/728852/cmap_HighResolution_432950401_433209601_4FGL_J1549.3+6310_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-02', comment='SUCCESS', energy_flux2='3.77e-05', dlogl='1.27e+00', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-09-12 14:38:21.593086', photon_index_error2='1.60', photon_index2='4.42', ts='0.10', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='3.36e-07', energy_flux_error2='2.85e-05', EG='1.49', time_epoch_completed='1631482701.59', return_code='0', job_id='728852', GAL2='0.77', EG2='1.34', return_code2='0', photon_flux_error2='1.94e-07', ts2='2.83', photon_index='2.44' WHERE bin_id='747' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:38:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 728852: <4FGL_J1549.3+6310_daily_bin747> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:25:26 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:27:06 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:27:06 2021
Terminated at Sun Sep 12 14:38:22 2021
Results reported at Sun Sep 12 14:38:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin747 237.332 63.178 432950401 433209601 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            776 sec.

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

