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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin673
RA = 237.332, Dec = 63.178
tmin = 413769601, tmax = 414028801
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='728735', job_status='RUN', time_executed='2021-09-12 14:29:01.139193', time_epoch_executed='1631482141.14' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728735

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728735/ft1_4FGL_J1549.3+6310_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728735/ft1_4FGL_J1549.3+6310_daily_bin673.fits outfile=/scratch/kocevski/728735/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin673.fits ra=237.332 dec=63.178 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.21
user 5.93
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728735/ft1_filtered_4FGL_J1549.3+6310_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/728735/ltcube_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.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/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits
.....................!
real 14.72
user 14.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728735/ft1_filtered_4FGL_J1549.3+6310_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/728735/ltcube_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits outfile=/scratch/kocevski/728735/expmap_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.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/728735/ltcube_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits
.....................!
real 192.66
user 187.65
sys 4.35

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/728735/ft1_filtered_4FGL_J1549.3+6310_daily_bin673.fits scfile=/scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits outfile=/scratch/kocevski/728735/cmap_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.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.40
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/728735/ft1_filtered_4FGL_J1549.3+6310_daily_bin673.fits', '/scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits', expMap='/scratch/kocevski/728735/expmap_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits', expCube='/scratch/kocevski/728735/ltcube_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/728735/Model_4FGL_J1549.3+6310_daily_bin673.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/728735/ft1_filtered_4FGL_J1549.3+6310_daily_bin673.fits
Spacecraft file(s): /scratch/kocevski/728735/ft2_4FGL_J1549.3+6310_daily_bin673.fits
Exposure map: /scratch/kocevski/728735/expmap_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits
Exposure cube: /scratch/kocevski/728735/ltcube_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/728735/Model_4FGL_J1549.3+6310_daily_bin673.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4680.39047357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9776       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2089       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.621       1.0000         .10000E-03   10000.    
    13 'norm      '    14.911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .43162       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72802       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=   4680.372     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3141 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.483        .88107E-05** at limit **
   2  Prefactor     .10000E-03    309.96       -.14838E-03** at limit **
   3  Prefactor     .10000E-03    16.932       -.21436E-04** at limit **
   4  Prefactor     .10000E-03    4.6442       -.94773E-07** at limit **
   5  Prefactor     10.338        23.645        .45475E-06   -.18163E-04
   6  Prefactor     9.9778        11.534       -.60924E-07   -.33150E-04
   7  Prefactor     .10000E-03    3.5291        .15386E-06** at limit **
   8  Prefactor     2.2080        19.193       -.10422E-05   -.16009E-03
   9  Prefactor     .10000E-03    10.564        .18149E-05** at limit **
  10  norm          2.6485        2.1395       -.85591E-08    .29081E-04
  11  Prefactor     .10000E-03    56.647        .18813E-04** at limit **
  12  Prefactor     18.622        14.292       -.23396E-07   -.20268E-04
  13  norm          14.911        12.146       -.29268E-07   -.27043E-04
  14  Prefactor     6.7218        49.208       -.37258E-06   -.11428E-04
  15  Prefactor     .10000E-03    240.97        .91024E-04** at limit **
  16  Prefactor     .10000E-03    4.7546       -.78045E-07** at limit **
  17  Prefactor     .10000E-03    15.963        .18848E-04** at limit **
  18  norm          21.722        13.435       -.89277E-09   -.19362E-04
  19  Prefactor     .10000E-03    11.249       -.27816E-05** at limit **
  20  norm          .43172        .44455        .57811E-07    .23638E-04
  21  Prefactor     .10000E-03    6.0690       -.20983E-06** at limit **
  22  Prefactor     3.9863        13.697       -.51816E-06   -.11648E-03
  23  Prefactor     .10000E-03    6.7334       -.79950E-07** at limit **
  24  Prefactor     .10000E-03    43.623       -.21719E-04** at limit **
  25  Normalizat    1.1887        .19321        .46778E-06   -.12146E-03
  26  Prefactor     .72808        .18500       -.11826E-05   -.86571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3376
  Prefactor  = 9.97782
  Prefactor  = 0.0001
  Prefactor  = 2.20799
  Prefactor  = 0.0001
  norm       = 2.64854
  Prefactor  = 0.0001
  Prefactor  = 18.6219
  norm       = 14.9113
  Prefactor  = 6.7218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.7217
  Prefactor  = 0.0001
  norm       = 0.431721
  Prefactor  = 0.0001
  Prefactor  = 3.98628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18871
  Prefactor  = 0.728076
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.372     FROM HESSE     STATUS=OK           452 CALLS     3593 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    309.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6449        .14400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.338        23.649        .12461E-03   -1.5065    
   6  Prefactor     9.9778        11.550        .12686E-03   -1.5076    
   7  Prefactor     .10000E-03    3.5378        .12542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2080        19.176        .27678E-03   -1.5411    
   9  Prefactor     .10000E-03    10.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6485        2.1411        .87579E-04   -1.5382    
  11  Prefactor     .10000E-03    56.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.622        14.313        .92814E-04   -1.4845    
  13  norm          14.911        12.144        .10372E-03   -1.4935    
  14  Prefactor     6.7218        49.006        .15471E-03   -1.5189    
  15  Prefactor     .10000E-03    241.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8083        .14566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.722        13.440        .85943E-04   -1.4775    
  19  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .43172        .44945        .44006E-04   -1.5577    
  21  Prefactor     .10000E-03    6.1113        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9863        13.591        .20201E-03   -1.5309    
  23  Prefactor     .10000E-03    6.8071        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1887        .22264        .21201E-03   -.86953    
  26  Prefactor     .72808        .21235        .25752E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54478e-10
Minuit parameter uncertainties:
  1  4.23702e-06
  2  3.05243e-05
  3  4.52036e-06
  4  5.84709e-07
  5  23.67
  6  11.5524
  7  1.50515e-06
  8  13.0191
  9  4.07928e-06
  10  2.14121
  11  4.36991e-06
  12  14.3153
  13  12.1457
  14  36.3408
  15  0.000217423
  16  3.72781e-06
  17  1.81929e-06
  18  13.4416
  19  7.9489e-06
  20  0.449452
  21  3.57202e-06
  22  13.6016
  23  8.05899e-06
  24  7.01429e-06
  25  0.22282
  26  0.21259
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  4.370e-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:  7.281e-01  2.126e-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.189e+00  2.228e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728735/likelihoodResults_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.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) = 4680.37258047
delta logL = -8.39489912323e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4680.37249774
delta logL = -1.21588436741e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16811E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    1.1887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72808       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=   4680.372     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      275 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10315E-03    18.626        .18142E-01** at limit **
   2  Index         2.6012        8.4468        .50000        .75273E-05
   3  Normalizat    1.1887        .29281E-02    .21201E-03    .23541E-04
   4  Prefactor     .72808        .28661E-02    .25752E-03    .16158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103149
  Index      = 2.60119
  Normalizat = 1.18871
  Prefactor  = 0.728076
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.372     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10315E-03    134.34        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6012        5.6496        .50000       -.50038    
   3  Normalizat    1.1887        .78855E-02    .84803E-05   -.86953    
   4  Prefactor     .72808        .77185E-02    .10301E-04   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.63262e-10
Minuit parameter uncertainties:
  1  0.0412303
  2  277.1
  3  0.00788549
  4  0.00771852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728735': 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) = 4680.37249677
delta logL = -2.51406163443e-07

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.031e-04  4.123e-02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.601e+00  2.771e+02  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.281e-01  7.719e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.189e+00  7.885e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/728735/cmap_HighResolution_413769601_414028801_4FGL_J1549.3+6310_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-12 14:41:28.099608', job_id='728735', GAL2='0.73', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631482888.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-2.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='673' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 728735: <4FGL_J1549.3+6310_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin673 237.332 63.178 413769601 414028801 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 :                                   744.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            972 sec.

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

