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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin1205
RA = 237.332, Dec = 63.178
tmin = 551664001, tmax = 551923201
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='731418', job_status='RUN', time_executed='2021-09-12 14:36:23.914315', time_epoch_executed='1631482583.91' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731418/ft1_4FGL_J1549.3+6310_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731418/ft2_4FGL_J1549.3+6310_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731418/ft1_4FGL_J1549.3+6310_daily_bin1205.fits outfile=/scratch/kocevski/731418/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin1205.fits ra=237.332 dec=63.178 rad=12.0 tmin=551664001.0 tmax=551923201.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 3.79
user 3.55
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731418/ft1_filtered_4FGL_J1549.3+6310_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/731418/ft2_4FGL_J1549.3+6310_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/731418/ltcube_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.fits outfile=/scratch/kocevski/731418/expmap_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.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/731418/ltcube_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.fits
.....................!
real 191.79
user 186.90
sys 4.22

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/731418/ft1_filtered_4FGL_J1549.3+6310_daily_bin1205.fits scfile=/scratch/kocevski/731418/ft2_4FGL_J1549.3+6310_daily_bin1205.fits outfile=/scratch/kocevski/731418/cmap_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731418/ft1_filtered_4FGL_J1549.3+6310_daily_bin1205.fits scfile=/scratch/kocevski/731418/ft2_4FGL_J1549.3+6310_daily_bin1205.fits outfile=/scratch/kocevski/731418/cmap_HighResolution_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    471.25       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9948.2       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9834.7       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9931.5       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9991.4       1.0000         .10000E-03   10000.    
    10 'norm      '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9988.7       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9979.1       1.0000         .10000E-03   10000.    
    13 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9944.4       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11274E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17608E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10647E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14974E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12764E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36918E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .29219E-07   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=   6.887646     FROM MIGRAD    STATUS=FAILED      1230 CALLS     4225 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9997.0        2293.4        .94381E-03    .52380E-04
   2  Prefactor     9988.7        2292.7        .70099E-02   -.15346E-05
   3  Prefactor     1780.5        3219.1        .35073E-02   -.31403E-03
   4  Prefactor     9999.9        2282.6        .27864E-03   -.35845E-04
   5  Prefactor    10000.0        2180.3        .18530E-02** at limit **
   6  Prefactor     9999.9        2287.8        .15688E-03    .22204E-04
   7  Prefactor    10000.0        2266.9        .24248E-03    .16654E-04
   8  Prefactor    10000.0        2102.9        .18142E-02** at limit **
   9  Prefactor     9999.8        2266.1        .68147E-03    .14030E-03
  10  norm         10000.0        2061.5        .18142E-02** at limit **
  11  Prefactor     9999.9        2257.6        .59577E-03   -.88072E-04
  12  Prefactor    10000.0        2263.7        .43804E-03   -.31667E-04
  13  norm         10000.0        2230.7        .19098E-02** at limit **
  14  Prefactor    10000.0        2273.8        .26889E-01** at limit **
  15  Prefactor     .56267E-03    1980.5        .20682E-02** at limit **
  16  Prefactor    10000.0        2139.3        .21135E-02** at limit **
  17  Prefactor     .11522E-03    1606.4        .19443E-02** at limit **
  18  norm          .10000E-03    372.87        .56005E-03** at limit **
  19  Prefactor     .10000E-03    716.33        .85603E-03** at limit **
  20  norm          .10000E-03    76.364        .23651E-03** at limit **
  21  Prefactor     .10000E-03    399.11        .58393E-03** at limit **
  22  Prefactor     .10000E-03    962.33        .10828E-02** at limit **
  23  Prefactor     .10000E-03    301.22        .49425E-03** at limit **
  24  Prefactor     .10232E-03    1484.7        .17174E-02** at limit **
  25  Normalizat    .10000E-01    1.3322        .14962E-02** at limit **
  26  Prefactor     .17764E-13    1.1658        .12909E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6.886970     FROM SIMPLEX   STATUS=PROGRESS    1034 CALLS     5259 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        2293.4        .91061E-03    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        2292.7        .28578E-02    1.5671    
   3  Prefactor    10000.0        3219.1        .68329E-02    1.5723    
   4  Prefactor    10000.0        2282.6        .15625E-02    1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        2180.3        .76440E-03    1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9999.9        2287.8        .26658E-03    1.5759    
   7  Prefactor    10000.0        2266.9        .17489E-02    1.5719    
   8  Prefactor    10000.0        2102.9        .99112E-04    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        2266.1        .64299E-02    1.5737    
  10  norm         10000.0        2061.5        .27274E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        2257.6        .38986E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        2263.7        .84268E-03    1.5697    
  13  norm         10000.0        2230.7        .25209E-02    1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        2273.8        .33137E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .56267E-03    1980.5        .17497E-03   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        2139.3        .66560E-03    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11522E-03    1606.4        .51632E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    372.87        .32276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    716.33        .40240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    76.364        .32718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    399.11        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    962.33        .47780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    301.22        .82023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10232E-03    1484.7        .40255E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    1.3322        .28190E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .17764E-13    1.1658        .28870E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6.886970     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     5755 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        5412.9       -.26919E-03** at limit **
   2  Prefactor    10000.0        8854.6        .36602E-02** at limit **
   3  Prefactor    10000.0        5923.1       -.14390E-02** at limit **
   4  Prefactor    10000.0        5884.2        .34261E-03** at limit **
   5  Prefactor     10000.        8897.7        .71400E-05** at limit **
   6  Prefactor    10000.0        8197.2       -.27583E-02** at limit **
   7  Prefactor    10000.0        7982.7        .85303E-04** at limit **
   8  Prefactor     10000.       10000.0        .87778E-04** at limit **
   9  Prefactor     10000.        8065.0        .26833E-03** at limit **
  10  norm         10000.0        9843.1        .60911E-04** at limit **
  11  Prefactor    10000.0        5902.7       -.14259E-03** at limit **
  12  Prefactor    10000.0        7319.8       -.14921E-03** at limit **
  13  norm         10000.0        5556.1        .28974E-03** at limit **
  14  Prefactor     10000.        9976.4        .96688E-05** at limit **
  15  Prefactor     .10000E-03    9326.0       -.53637E-04** at limit **
  16  Prefactor     10000.        9828.0       -.15676E-03** at limit **
  17  Prefactor     .10000E-03    7218.8        .14822E-04** at limit **
  18  norm          .10000E-03    438.22        .67484E-06** at limit **
  19  Prefactor     .10000E-03    1003.9        .15492E-05** at limit **
  20  norm          .10000E-03    78.675       -.13015E-06** at limit **
  21  Prefactor     .10000E-03    474.76        .60730E-06** at limit **
  22  Prefactor     .10000E-03    1562.1        .53453E-05** at limit **
  23  Prefactor     .10000E-03    342.48        .22318E-06** at limit **
  24  Prefactor     .10000E-03    6815.8        .30628E-05** at limit **
  25  Normalizat    .10000E-01    6.4176       -.24970E-04** at limit **
  26  Prefactor      .0000        2.1807       -.34047E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   6.886970     FROM HESSE     STATUS=OK           440 CALLS     6195 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        5412.3        .37752E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        8751.5        .28040E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        5924.3        .14029E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        5884.3        .11146E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10000.        8896.1        .37060E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        8173.3        .62751E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8299.1        .48496E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10000.       10000.0        .41711E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10000.        8064.6        .27259E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        9876.5        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        5903.5        .23831E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7322.4        .17522E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        5707.4        .76391E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10000.        9976.4        .10756E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9326.0        .82726E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10000.        9828.2        .46643E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7218.8        .77772E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    438.22        .22402E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1003.9        .34241E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    78.675        .94602E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    474.76        .23357E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1562.1        .43312E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    342.48        .19770E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6815.8        .68696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    6.4175        .59849E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        2.1807        .51637E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14653e-12
Minuit parameter uncertainties:
  1  0.0011436
  2  4.79864
  3  0.0583778
  4  0.0113942
  5  0.000115401
  6  0.0889133
  7  0.115659
  8  0.000184572
  9  0.000184714
  10  0.0257502
  11  0.000713009
  12  0.0016732
  13  0.288396
  14  9.67685e-05
  15  1.10346e-05
  16  0.000307924
  17  2.9784e-06
  18  5.3869e-07
  19  2.37512e-08
  20  4.91778e-08
  21  2.84367e-07
  22  1.91164e-06
  23  1.98674e-07
  24  2.44219e-06
  25  5.80592e-11
  26  1.45841e-09
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e+04  7.130e-04  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:  0.000e+00  1.458e-09  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.000e-02  5.806e-11  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 3.71857815651e-08

TS (Fixed Index): 0.08
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.75e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731418/likelihoodResults_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.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) = -7.10616500357
delta logL = 13.9931348952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = -7.10729339682
delta logL = 13.9942632885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=  -7.107293     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       52 TOTAL
                     EDM=   .21E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .21763        .18049E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=  -7.107293     FROM HESSE     STATUS=OK             5 CALLS       57 TOTAL
                     EDM=   .21E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .21763        .39881E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05843e-18
Minuit parameter uncertainties:
  1  6.28361e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731418': 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) = -7.10729339682
delta logL = 13.9942632885

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
345        Index:  1.000e+01  6.284e-10  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:  3.982e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 28.07
Ra Dec: 237.332 63.178
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.89e+02 +/- 2.84e-07
Energy Flux (Free Index): 2.11e+04 +/- 3.18e-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/731418/cmap_HighResolution_551664001_551923201_4FGL_J1549.3+6310_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.75e+04', comment='SUCCESS', energy_flux2='2.11e+04', dlogl='1.40e+01', photon_flux2='1.89e+02', job_status='DONE', time_completed='2021-09-12 14:43:06.350443', photon_index_error2='0.00', photon_index2='10.00', ts='0.08', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.18e-05', EG='0.01', time_epoch_completed='1631482986.35', return_code='0', job_id='731418', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='2.84e-07', ts2='28.07', photon_index='2.44' WHERE bin_id='1205' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:43:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 731418: <4FGL_J1549.3+6310_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin1205> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 14:35:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:36:08 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:36:08 2021
Terminated at Sun Sep 12 14:43:07 2021
Results reported at Sun Sep 12 14:43:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin1205 237.332 63.178 551664001 551923201 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 :                                   344.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   418 sec.
    Turnaround time :                            466 sec.

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

