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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin650
RA = 237.332, Dec = 63.178
tmin = 407808001, tmax = 408067201
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='728698', job_status='RUN', time_executed='2021-09-12 14:29:12.957574', time_epoch_executed='1631482152.96' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728698/ft1_4FGL_J1549.3+6310_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728698/ft1_4FGL_J1549.3+6310_daily_bin650.fits outfile=/scratch/kocevski/728698/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin650.fits ra=237.332 dec=63.178 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.14
user 3.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728698/ft1_filtered_4FGL_J1549.3+6310_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/728698/ltcube_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.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/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits
.....................!
real 14.88
user 14.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728698/ft1_filtered_4FGL_J1549.3+6310_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/728698/ltcube_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.fits outfile=/scratch/kocevski/728698/expmap_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.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/728698/ltcube_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.fits
.....................!
real 191.75
user 185.47
sys 5.69

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/728698/ft1_filtered_4FGL_J1549.3+6310_daily_bin650.fits scfile=/scratch/kocevski/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits outfile=/scratch/kocevski/728698/cmap_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728698/ft1_filtered_4FGL_J1549.3+6310_daily_bin650.fits scfile=/scratch/kocevski/728698/ft2_4FGL_J1549.3+6310_daily_bin650.fits outfile=/scratch/kocevski/728698/cmap_HighResolution_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16849E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6398       1.0000         .10000E-03   10000.    
    13 'norm      '    12.479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16224E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.312       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.280       1.0000         .10000E-03   10000.    
    20 'norm      '    .23593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73110       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=   4929.291     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3045 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.408       -.25712E-06** at limit **
   2  Prefactor     .10000E-03    6410.4        .78327E-04** at limit **
   3  Prefactor     .10000E-03    34.146        .27175E-06** at limit **
   4  Prefactor     .10000E-03    12.875       -.18247E-06** at limit **
   5  Prefactor     .10000E-03    18.186       -.70972E-07** at limit **
   6  Prefactor     .10000E-03    18.671       -.27032E-06** at limit **
   7  Prefactor     10.471        9.8189        .13761E-06    .63871E-05
   8  Prefactor     .10000E-03    12.267       -.92239E-07** at limit **
   9  Prefactor     .10000E-03    27.828        .18585E-06** at limit **
  10  norm          8.1386        3.4863        .16148E-07    .14504E-05
  11  Prefactor     .10000E-03    43.785       -.45237E-06** at limit **
  12  Prefactor     6.6383        8.3672        .17991E-07    .10080E-05
  13  norm          12.480        9.6379        .15050E-07    .46321E-05
  14  Prefactor     .10000E-03    17.418        .22728E-06** at limit **
  15  Prefactor     .10000E-03    69.764       -.16701E-06** at limit **
  16  Prefactor     2.7008        8.2542        .23529E-05    .15138E-04
  17  Prefactor     .10000E-03    17.744        .91128E-07** at limit **
  18  norm          12.313        11.970        .27085E-06    .59992E-05
  19  Prefactor     39.287        29.038       -.22696E-06    .87218E-05
  20  norm          .23634        .69057        .79113E-07   -.10466E-03
  21  Prefactor     .10000E-03    4.1066       -.67100E-08** at limit **
  22  Prefactor     .10000E-03    18.694       -.11997E-06** at limit **
  23  Prefactor     .10000E-03    2.1672       -.17978E-07** at limit **
  24  Prefactor     .10000E-03    22.650       -.21466E-06** at limit **
  25  Normalizat    1.1782        .20010       -.10749E-05    .29268E-04
  26  Prefactor     .73102        .18400        .99483E-06   -.20113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.13855
  Prefactor  = 0.0001
  Prefactor  = 6.63827
  norm       = 12.4804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70077
  Prefactor  = 0.0001
  norm       = 12.3131
  Prefactor  = 39.287
  norm       = 0.236338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17817
  Prefactor  = 0.731025
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.291     FROM HESSE     STATUS=OK           452 CALLS     3497 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6413.4        .18214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.471        9.8335        .12387E-03   -1.5061    
   8  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1386        3.4875        .83241E-04   -1.5137    
  11  Prefactor     .10000E-03    43.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6383        8.3503        .15573E-03   -1.5193    
  13  norm          12.480        9.6338        .11339E-03   -1.5001    
  14  Prefactor     .10000E-03    17.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7008        8.2756        .12395E-02   -1.5379    
  17  Prefactor     .10000E-03    17.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.313        11.952        .57081E-03   -1.5006    
  19  Prefactor     39.287        29.070        .63954E-04   -1.4454    
  20  norm          .23634        .85871        .91239E-03   -1.5611    
  21  Prefactor     .10000E-03    4.1177        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1710        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1782        .22766        .22210E-03   -.87280    
  26  Prefactor     .73102        .20957        .26053E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41723e-09
Minuit parameter uncertainties:
  1  2.08524e-06
  2  0.00197795
  3  6.45497e-06
  4  3.22044e-06
  5  2.91151e-06
  6  6.75994e-06
  7  9.83501
  8  4.64429e-06
  9  7.06715e-06
  10  3.48761
  11  6.03058e-06
  12  8.3518
  13  9.63496
  14  1.04949e-06
  15  5.59478e-06
  16  8.27906
  17  3.93323e-06
  18  11.954
  19  29.0801
  20  0.858757
  21  2.37205e-06
  22  1.5328e-05
  23  9.21254e-07
  24  2.6774e-06
  25  0.227856
  26  0.209797
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.310e-01  2.098e-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.178e+00  2.279e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728698/likelihoodResults_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.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) = 4929.29123147
delta logL = -0.000108667783934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4929.29112375
delta logL = -9.46987711359e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1109       1.0000          .0000       10.000    
     3 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73103       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=   4929.291     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10816E-03    5.0456        .18142E-01** at limit **
   2  Index         2.9319        5.3598        .50000        .86072E-05
   3  Normalizat    1.1782        .19416E-02    .22210E-03    .57843E-04
   4  Prefactor     .73102        .18460E-02    .26053E-03    .22167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108156
  Index      = 2.93186
  Normalizat = 1.17817
  Prefactor  = 0.731025
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.291     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10816E-03    138.24        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9319        8.5339        .50000       -.42644    
   3  Normalizat    1.1782        .10200E-01    .88838E-05   -.87280    
   4  Prefactor     .73102        .96980E-02    .10421E-04   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.72405e-09
Minuit parameter uncertainties:
  1  0.0673105
  2  648.811
  3  0.0102002
  4  0.009698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728698': 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) = 4929.29112352
delta logL = -7.1926660894e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.310e-01  9.698e-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.178e+00  1.020e-02  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/728698/cmap_HighResolution_407808001_408067201_4FGL_J1549.3+6310_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-12 14:41:28.148511', job_id='728698', GAL2='0.73', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631482888.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-7.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='650' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 728698: <4FGL_J1549.3+6310_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin650 237.332 63.178 407808001 408067201 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 :                                   734.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             291.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            974 sec.

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

