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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin725
RA = 237.332, Dec = 63.178
tmin = 427248001, tmax = 427507201
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='728817', job_status='RUN', time_executed='2021-09-12 14:30:00.794425', time_epoch_executed='1631482200.79' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728817/ft1_4FGL_J1549.3+6310_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728817/ft2_4FGL_J1549.3+6310_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728817/ft1_4FGL_J1549.3+6310_daily_bin725.fits outfile=/scratch/kocevski/728817/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin725.fits ra=237.332 dec=63.178 rad=12.0 tmin=427248001.0 tmax=427507201.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.72
user 5.42
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728817/ft1_filtered_4FGL_J1549.3+6310_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/728817/ft2_4FGL_J1549.3+6310_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/728817/ltcube_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.fits outfile=/scratch/kocevski/728817/expmap_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.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/728817/ltcube_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.fits
.....................!
real 194.90
user 188.01
sys 5.27

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/728817/ft1_filtered_4FGL_J1549.3+6310_daily_bin725.fits scfile=/scratch/kocevski/728817/ft2_4FGL_J1549.3+6310_daily_bin725.fits outfile=/scratch/kocevski/728817/cmap_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=237.332 yref=63.178 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728817/ft1_filtered_4FGL_J1549.3+6310_daily_bin725.fits scfile=/scratch/kocevski/728817/ft2_4FGL_J1549.3+6310_daily_bin725.fits outfile=/scratch/kocevski/728817/cmap_HighResolution_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .28539E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13695E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2383       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .77507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5743       1.0000         .10000E-03   10000.    
    20 'norm      '    .44128       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0957       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2018       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .56593       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=   4237.793     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2681 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.762        .12928E-07** at limit **
   2  Prefactor     .10004E-03    488.89        .11879E-04** at limit **
   3  Prefactor     .10000E-03    17.659       -.13417E-05** at limit **
   4  Prefactor     15.397        16.637        .92677E-07    .50920E-05
   5  Prefactor     .10000E-03    17.526        .99270E-06** at limit **
   6  Prefactor     2.2466        7.1195       -.18384E-07   -.15309E-03
   7  Prefactor     .10000E-03    6.7294       -.17258E-06** at limit **
   8  Prefactor     9.7547        13.369        .47839E-06    .55653E-04
   9  Prefactor     .10000E-03    17.684        .62725E-06** at limit **
  10  norm          5.3124        3.1041       -.14539E-07    .14668E-04
  11  Prefactor     .10000E-03    129.22        .31134E-07** at limit **
  12  Prefactor     .10000E-03    6.2766       -.31215E-06** at limit **
  13  norm          1.5860        12.651        .78778E-06   -.52088E-04
  14  Prefactor     .10001E-03    605.01       -.83008E-05** at limit **
  15  Prefactor     .10000E-03    58.433       -.72381E-07** at limit **
  16  Prefactor     8.2358        8.2468        .14515E-05   -.24763E-03
  17  Prefactor     .10000E-03    16.235       -.11544E-06** at limit **
  18  norm          .73268        5.9720       -.10230E-06    .25944E-04
  19  Prefactor     9.5690        23.773       -.66342E-06   -.74335E-05
  20  norm          .44131        .67834        .78065E-07    .78044E-04
  21  Prefactor     5.0937        7.4877       -.15524E-06   -.11830E-03
  22  Prefactor     .10000E-03    7.1117        .82054E-08** at limit **
  23  Prefactor     .10000E-03    3.3924       -.19749E-07** at limit **
  24  Prefactor     .10000E-03    42.926        .74851E-07** at limit **
  25  Normalizat    1.2022        .17927       -.39930E-06    .35894E-04
  26  Prefactor     .56562        .16650       -.17846E-06    .39346E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 15.3966
  Prefactor  = 0.0001
  Prefactor  = 2.24661
  Prefactor  = 0.0001
  Prefactor  = 9.75465
  Prefactor  = 0.0001
  norm       = 5.31237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58603
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 8.23578
  Prefactor  = 0.0001
  norm       = 0.732677
  Prefactor  = 9.56898
  norm       = 0.441305
  Prefactor  = 5.09375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20219
  Prefactor  = 0.565622
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.793     FROM HESSE     STATUS=OK           456 CALLS     3137 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    515.17        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.397        16.637        .10207E-03   -1.4923    
   5  Prefactor     .10000E-03    17.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2466        7.2631        .27465E-03   -1.5408    
   7  Prefactor     .10000E-03    6.9036        .32926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7547        13.379        .12833E-03   -1.5083    
   9  Prefactor     .10000E-03    17.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3124        3.1051        .85047E-04   -1.5247    
  11  Prefactor     .10000E-03    129.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3003        .15883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5860        12.814        .33476E-03   -1.5456    
  14  Prefactor     .10001E-03    631.24        .36365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2358        8.3789        .69839E-03   -1.5134    
  17  Prefactor     .10000E-03    16.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73268        19.437        .29914E-02   -1.5537    
  19  Prefactor     9.5690        23.630        .12951E-03   -1.5089    
  20  norm          .44131        .63676        .62718E-03   -1.5575    
  21  Prefactor     5.0937        7.4562        .17811E-03   -1.5257    
  22  Prefactor     .10000E-03    7.1247        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4020        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2022        .20366        .19446E-03   -.86535    
  26  Prefactor     .56562        .18875        .26252E-03   -1.0905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34998e-10
Minuit parameter uncertainties:
  1  8.25075e-07
  2  0.00903376
  3  0.000186773
  4  16.6424
  5  0.000132365
  6  7.26597
  7  1.04588e-05
  8  13.3831
  9  7.90928e-05
  10  3.10524
  11  7.08197e-06
  12  7.51961e-06
  13  9.01858
  14  0.00387074
  15  1.96109e-05
  16  8.38009
  17  1.45789e-05
  18  7.54973
  19  23.6526
  20  0.636773
  21  7.45755
  22  1.7604e-06
  23  2.01686e-07
  24  1.95852e-05
  25  0.20379
  26  0.188962
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  7.082e-06  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:  5.656e-01  1.890e-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.202e+00  2.038e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728817/likelihoodResults_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.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) = 4237.79258695
delta logL = -3.65542837244e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4237.79255007
delta logL = 3.20419530908e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1657       1.0000          .0000       10.000    
     3 'Normalizat'    1.2022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56562       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=   4237.785     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      347 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.443        7440.3        .90712E-02    .17671E-04
   2  Index         1.6819        5.3595        .50000       -.12370E-04
   3  Normalizat    1.2028        .27801E-01    .34838E-01    .61331E-04
   4  Prefactor     .56397        .25962E-01    .59421E-01   -.73645E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4425
  Index      = 1.68194
  Normalizat = 1.20283
  Prefactor  = 0.563971
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.785     FROM HESSE     STATUS=OK            31 CALLS      378 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.443        196.14        .36285E-03   -1.5062    
   2  Index         1.6819        2.0803        .20288E-01   -.72564    
   3  Normalizat    1.2028        .19339        .19441E-03   -.86516    
   4  Prefactor     .56397        .18619        .26286E-03   -1.0913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69313e-11
Minuit parameter uncertainties:
  1  90.8595
  2  2.206
  3  0.193508
  4  0.186397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728817': 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) = 4237.7851671
delta logL = 0.0073832880862

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.044e+01  9.086e+01  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  1.682e+00  2.206e+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:  5.640e-01  1.864e-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.203e+00  1.935e-01  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/728817/cmap_HighResolution_427248001_427507201_4FGL_J1549.3+6310_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-12 14:41:17.488578', job_id='728817', GAL2='0.56', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631482877.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='7.38e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='725' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:41:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 728817: <4FGL_J1549.3+6310_daily_bin725> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin725> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:25:23 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:26:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 14:26:44 2021
Terminated at Sun Sep 12 14:41:18 2021
Results reported at Sun Sep 12 14:41:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin725 237.332 63.178 427248001 427507201 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 :                                   673.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            955 sec.

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

