/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7526
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1549.3+6310_daily_bin671
RA = 237.332, Dec = 63.178
tmin = 413251201, tmax = 413510401
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='728732', job_status='RUN', time_executed='2021-09-12 14:25:55.040229', time_epoch_executed='1631481955.04' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728732/ft1_4FGL_J1549.3+6310_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728732/ft2_4FGL_J1549.3+6310_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728732/ft1_4FGL_J1549.3+6310_daily_bin671.fits outfile=/scratch/kocevski/728732/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin671.fits ra=237.332 dec=63.178 rad=12.0 tmin=413251201.0 tmax=413510401.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.77
user 5.52
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728732/ft1_filtered_4FGL_J1549.3+6310_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/728732/ft2_4FGL_J1549.3+6310_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/728732/ltcube_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.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/728732/ft2_4FGL_J1549.3+6310_daily_bin671.fits
.....................!
real 15.12
user 14.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728732/ft1_filtered_4FGL_J1549.3+6310_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/728732/ft2_4FGL_J1549.3+6310_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/728732/ltcube_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.fits outfile=/scratch/kocevski/728732/expmap_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.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/728732/ltcube_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.fits
.....................!
real 190.84
user 185.73
sys 4.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 216 point sources and 0 extended sources

Setting source of interest to:
4FGL J1549.3+6310 @ 237.332 63.178

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24742E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21357E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48936E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1153       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30489E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0400       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15494E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12379       1.0000         .10000E-03   10000.    
    18 'norm      '    .89690E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11147E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .83641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16349E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .89074E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82394       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=   4724.855     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     2868 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.169        37.126        .15966E-02   -.19582E-05
   2  Prefactor     148.34        929.28        .10355E-02    .12966E-04
   3  Prefactor     30.785        43.617        .17872E-02    .72961E-05
   4  Prefactor     .10000E-03    5.8031        .90712E-02** at limit **
   5  Prefactor     .10000E-03    13.664        .90712E-02** at limit **
   6  Prefactor     .10000E-03    14.069        .10584E-01** at limit **
   7  Prefactor     1.1479        15.954        .11150E-01    .74790E-03
   8  Prefactor     .10000E-03    7.6709        .90712E-02** at limit **
   9  Prefactor     .10000E-03    17.189        .10691E-01** at limit **
  10  norm          15.802        5.8985        .25172E-02    .72004E-04
  11  Prefactor     49.469        130.19        .14567E-02    .90221E-05
  12  Prefactor     5.8656        14.999        .40843E-02    .22331E-02
  13  norm          7.4979        9.7920        .36832E-02    .23301E-02
  14  Prefactor     .10000E-03    20.359        .90712E-02** at limit **
  15  Prefactor     .10000E-03    45.184        .91003E-02** at limit **
  16  Prefactor     .10000E-03    6.1707        .10716E-01** at limit **
  17  Prefactor     .10086E-03    32.682        .13085    ** at limit **
  18  norm          .10000E-03    7.2252        .62061E-01** at limit **
  19  Prefactor     .10000E-03    7.6805        .90712E-02** at limit **
  20  norm          .10000E-03    .45707        .25728E-01** at limit **
  21  Prefactor     .68193        6.1473        .91499E-01    .30008E-03
  22  Prefactor     .10000E-03    10.138        .90712E-02** at limit **
  23  Prefactor     .10000E-03    5.8050        .90712E-02** at limit **
  24  Prefactor     .10000E-03    59.154        .91437E-02** at limit **
  25  Normalizat    1.1616        .20615        .35939E-01   -.13404E-03
  26  Prefactor     .82266        .19228        .44028E-01   -.13778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.1688
  Prefactor  = 148.342
  Prefactor  = 30.785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8022
  Prefactor  = 49.4693
  Prefactor  = 5.86558
  norm       = 7.49789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100856
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.681927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16157
  Prefactor  = 0.822658
 **********
 **   18 **HESSE 
 **********

 FCN=   4724.855     FROM HESSE     STATUS=OK           462 CALLS     3330 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.169        37.138        .63862E-04   -1.4472    
   2  Prefactor     148.34        929.50        .41419E-04   -1.3266    
   3  Prefactor     30.785        43.609        .71489E-04   -1.4598    
   4  Prefactor     .10000E-03    5.8051        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.129        .21168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1479        16.144        .44601E-03   -1.5494    
   8  Prefactor     .10000E-03    7.7109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.238        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.802        5.9030        .89706E-04   -1.4913    
  11  Prefactor     49.469        130.53        .58267E-04   -1.4300    
  12  Prefactor     5.8656        14.877        .81686E-03   -1.5224    
  13  norm          7.4979        9.6996        .73663E-03   -1.5160    
  14  Prefactor     .10000E-03    20.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.186        .18201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2972        .16660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10086E-03    35.169        .12010       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    32.835        .35435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.4534        .85760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68193        30.553        .30712E-02   -1.5543    
  22  Prefactor     .10000E-03    10.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8578        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    59.186        .18287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1616        .24162        .22132E-03   -.87799    
  26  Prefactor     .82266        .22472        .25244E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56929e-10
Minuit parameter uncertainties:
  1  37.1601
  2  760.803
  3  43.6544
  4  6.63663e-06
  5  2.26939e-05
  6  4.16541e-05
  7  8.61207
  8  3.21301e-05
  9  1.07764e-05
  10  5.90321
  11  131.3
  12  14.8864
  13  9.70159
  14  3.13376e-05
  15  6.09267e-05
  16  6.80891e-06
  17  0.0109808
  18  5.50952e-05
  19  5.15607e-06
  20  4.9795e-05
  21  9.13337
  22  6.86843e-07
  23  2.34464e-07
  24  6.63243e-05
  25  0.241849
  26  0.224968
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  4.947e+01  1.313e+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:  8.227e-01  2.250e-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.162e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728732/likelihoodResults_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.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) = 4724.82975423
delta logL = 0.0256403163721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4724.81458211
delta logL = 0.0408124315363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8834       1.0000          .0000       10.000    
     3 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82850       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4724.815     FROM MIGRAD    STATUS=FAILED        96 CALLS      290 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.640        450.08        .74686E-04   -.16440E-04
   2  Index         2.8859        3.3016        .88269E-02    .32869E-03
   3  Normalizat    1.1521        .23198        .22206E-03    .10140E-03
   4  Prefactor     .82903        .22512        .25156E-03   -.10028E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4724.815     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      378 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.640        450.08        .73186E-03   -1.4637    
   2  Index         2.8859        3.3016        .11048E-02   -.43656    
   3  Normalizat    1.1521        .23198        .26463E-03   -.88097    
   4  Prefactor     .82903        .22512        .41881E-03   -.98667    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4724.815     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      406 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.640        118.96        .29874E-05   -.30444E-05
   2  Index         2.8859        1.8360        .17654E-02    .13314E-04
   3  Normalizat    1.1521        .23097        .44411E-04   -.56317E-06
   4  Prefactor     .82903        .22332        .10062E-04   -.67790E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6402
  Index      = 2.88586
  Normalizat = 1.15207
  Prefactor  = 0.829034
 **********
 **   18 **HESSE 
 **********

 FCN=   4724.815     FROM HESSE     STATUS=OK            25 CALLS      431 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.640        109.91        .59749E-06   -1.4637    
   2  Index         2.8859        1.7379        .35308E-03   -.43656    
   3  Normalizat    1.1521        .23098        .88822E-05   -.88097    
   4  Prefactor     .82903        .22331        .20125E-05   -.98667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1965e-13
Minuit parameter uncertainties:
  1  110.697
  2  1.78363
  3  0.231186
  4  0.223554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728732': 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) = 4724.81457838
delta logL = 0.0408161653295

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  2.864e+01  1.107e+02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.886e+00  1.784e+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:  8.290e-01  2.236e-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.152e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/728732/cmap_HighResolution_413251201_413510401_4FGL_J1549.3+6310_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-12 14:38:05.687296', job_id='728732', GAL2='0.83', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1631482685.69', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.08e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='671' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:38:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 728732: <4FGL_J1549.3+6310_daily_bin671> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin671> 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) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:25:41 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:41 2021
Terminated at Sun Sep 12 14:38:06 2021
Results reported at Sun Sep 12 14:38:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin671 237.332 63.178 413251201 413510401 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 :                                   727.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            770 sec.

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

