/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 4 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1549.3+6310_daily_bin294
RA = 237.332, Dec = 63.178
tmin = 315532801, tmax = 315792001
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='726053', job_status='RUN', time_executed='2021-09-12 14:18:27.882478', time_epoch_executed='1631481507.88' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726053

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726053/ft1_4FGL_J1549.3+6310_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726053/ft2_4FGL_J1549.3+6310_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726053/ft1_4FGL_J1549.3+6310_daily_bin294.fits outfile=/scratch/kocevski/726053/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin294.fits ra=237.332 dec=63.178 rad=12.0 tmin=315532801.0 tmax=315792001.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.86
user 3.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726053/ft2_4FGL_J1549.3+6310_daily_bin294.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/726053/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin294.fits evtable="EVENTS" outfile="/scratch/kocevski/726053/ft1_filtered_4FGL_J1549.3+6310_daily_bin294.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726053/ft1_filtered_4FGL_J1549.3+6310_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/726053/ft2_4FGL_J1549.3+6310_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/726053/ltcube_315532801_315792001_4FGL_J1549.3+6310_daily_bin294.fits outfile=/scratch/kocevski/726053/expmap_315532801_315792001_4FGL_J1549.3+6310_daily_bin294.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/726053/ltcube_315532801_315792001_4FGL_J1549.3+6310_daily_bin294.fits
.....................!
real 192.11
user 186.65
sys 5.06

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5170       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.494       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6549       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2530       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9055       1.0000         .10000E-03   10000.    
    24 'Prefactor '    89.752       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5164       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .56698       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=   5098.371     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2668 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.110        .24015E-05** at limit **
   2  Prefactor     .10000E-03    326.69       -.13522E-03** at limit **
   3  Prefactor     23.680        38.163       -.12448E-05   -.41101E-06
   4  Prefactor     .10000E-03    11.774        .10933E-06** at limit **
   5  Prefactor     .10000E-03    7.8300       -.75763E-06** at limit **
   6  Prefactor     3.3500        11.517       -.25373E-06   -.10740E-03
   7  Prefactor     2.5394        7.4539       -.30322E-05   -.36082E-03
   8  Prefactor     .10000E-03    7.0041       -.51730E-06** at limit **
   9  Prefactor     .10000E-03    22.552        .99693E-06** at limit **
  10  norm          .10000E-03    2.0779        .26145E-06** at limit **
  11  Prefactor     .10000E-03    48.903        .56495E-05** at limit **
  12  Prefactor     .10000E-03    6.7310       -.60400E-06** at limit **
  13  norm          .10000E-03    6.9673        .13061E-05** at limit **
  14  Prefactor     .10000E-03    89.961       -.35484E-04** at limit **
  15  Prefactor     .10000E-03    200.03        .16451E-03** at limit **
  16  Prefactor     .10000E-03    7.7521       -.30422E-06** at limit **
  17  Prefactor     6.5181        35.288        .22610E-06   -.12293E-04
  18  norm          .10000E-03    7.9404        .94012E-06** at limit **
  19  Prefactor     20.481        20.640       -.20019E-05    .24052E-03
  20  norm          2.6547        1.0344       -.46552E-07    .14805E-03
  21  Prefactor     7.2509        7.9984        .58345E-06    .74892E-04
  22  Prefactor     .10000E-03    26.740       -.21217E-05** at limit **
  23  Prefactor     1.8772        6.6467       -.36712E-04   -.10228E-02
  24  Prefactor     89.969        89.595        .16514E-03    .73113E-04
  25  Normalizat    1.5162        .19230       -.40846E-06    .37558E-03
  26  Prefactor     .56707        .18161       -.22637E-05    .97177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35003
  Prefactor  = 2.53937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.51806
  norm       = 0.0001
  Prefactor  = 20.4808
  norm       = 2.65467
  Prefactor  = 7.25095
  Prefactor  = 0.0001
  Prefactor  = 1.87716
  Prefactor  = 89.9687
  Normalizat = 1.51617
  Prefactor  = 0.567067
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.371     FROM HESSE     STATUS=OK           448 CALLS     3116 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    326.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.680        38.155        .82265E-04   -1.4734    
   4  Prefactor     .10000E-03    11.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3500        11.398        .22103E-03   -1.5342    
   7  Prefactor     2.5394        7.3915        .25635E-03   -1.5389    
   8  Prefactor     .10000E-03    7.0314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7757        .19933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    48.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8127        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    90.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    200.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5181        35.294        .15721E-03   -1.5197    
  18  norm          .10000E-03    8.0431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.481        20.616        .88475E-04   -1.4803    
  20  norm          2.6547        1.0312        .42138E-04   -1.5382    
  21  Prefactor     7.2509        7.9889        .14894E-03   -1.5169    
  22  Prefactor     .10000E-03    27.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8772        6.6545        .29962E-03   -1.5434    
  24  Prefactor     89.969        89.948        .21207E-03   -1.3808    
  25  Normalizat    1.5162        .22483        .20610E-03   -.77325    
  26  Prefactor     .56707        .21118        .30371E-03   -1.0899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77601e-09
Minuit parameter uncertainties:
  1  4.64321e-05
  2  4.9886e-05
  3  38.1939
  4  1.63886e-05
  5  3.50592e-06
  6  11.4058
  7  7.39411
  8  1.08049e-05
  9  2.69492e-05
  10  5.19577e-05
  11  2.97821e-05
  12  2.25173e-05
  13  3.39739e-05
  14  0.000423962
  15  0.000737703
  16  1.12223e-05
  17  30.3623
  18  3.05139e-05
  19  20.6232
  20  1.03125
  21  7.99005
  22  9.67545e-06
  23  6.6571
  24  90.0842
  25  0.224976
  26  0.211473
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  5.671e-01  2.115e-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.516e+00  2.250e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/726053/likelihoodResults_315532801_315792001_4FGL_J1549.3+6310_daily_bin294.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) = 5098.37105953
delta logL = -9.7228760751e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5098.37096287
delta logL = -5.70173142478e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7595       1.0000          .0000       10.000    
     3 'Normalizat'    1.5162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56707       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=   5098.371     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10440E-03    16.203        .18142E-01** at limit **
   2  Index         2.6591        6.1707        .50000        .93407E-05
   3  Normalizat    1.5162        .31464E-02    .20610E-03   -.22678E-03
   4  Prefactor     .56708        .29941E-02    .30371E-03    .25177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104398
  Index      = 2.65911
  Normalizat = 1.51616
  Prefactor  = 0.567077
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.371     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10440E-03    127.39        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6591        7.7101        .50000       -.48723    
   3  Normalizat    1.5162        .88407E-02    .41219E-04   -.77325    
   4  Prefactor     .56708        .84128E-02    .12148E-04   -1.0899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82217e-09
Minuit parameter uncertainties:
  1  0.0474388
  2  320.021
  3  0.00884068
  4  0.00841285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726053': 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) = 5098.3709627
delta logL = -4.02207660954e-07

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  1.044e-04  4.744e-02  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.659e+00  3.200e+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:  5.671e-01  8.413e-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.516e+00  8.841e-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/726053/cmap_HighResolution_315532801_315792001_4FGL_J1549.3+6310_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-12 14:30:36.952311', job_id='726053', GAL2='0.57', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1631482236.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='-4.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='294' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 726053: <4FGL_J1549.3+6310_daily_bin294> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin294> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 14:15:38 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:18:15 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:18:15 2021
Terminated at Sun Sep 12 14:30:37 2021
Results reported at Sun Sep 12 14:30:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin294 237.332 63.178 315532801 315792001 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 :                                   723.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            899 sec.

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

