/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 38 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1549.3+6310_daily_bin52
RA = 237.332, Dec = 63.178
tmin = 252806401, tmax = 253065601
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='724665', job_status='RUN', time_executed='2021-09-12 14:13:33.721975', time_epoch_executed='1631481213.72' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724665/ft1_4FGL_J1549.3+6310_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724665/ft1_4FGL_J1549.3+6310_daily_bin52.fits outfile=/scratch/kocevski/724665/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin52.fits ra=237.332 dec=63.178 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.22
user 1.02
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724665/ft1_filtered_4FGL_J1549.3+6310_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/724665/ltcube_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.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/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits
.....................!
real 14.84
user 14.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724665/ft1_filtered_4FGL_J1549.3+6310_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/724665/ltcube_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.fits outfile=/scratch/kocevski/724665/expmap_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.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/724665/ltcube_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.fits
.....................!
real 156.92
user 152.25
sys 4.24

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/724665/ft1_filtered_4FGL_J1549.3+6310_daily_bin52.fits scfile=/scratch/kocevski/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits outfile=/scratch/kocevski/724665/cmap_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724665/ft1_filtered_4FGL_J1549.3+6310_daily_bin52.fits scfile=/scratch/kocevski/724665/ft2_4FGL_J1549.3+6310_daily_bin52.fits outfile=/scratch/kocevski/724665/cmap_HighResolution_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.637       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.899       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0608       1.0000         .10000E-03   10000.    
    13 'norm      '    13.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7197       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.885       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31915       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66892       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=   5150.230     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3089 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7648        .17316E-10** at limit **
   2  Prefactor     .10000E-03    178.91        .16317E-05** at limit **
   3  Prefactor     .10000E-03    35.466       -.73179E-06** at limit **
   4  Prefactor     .10000E-03    7.6692        .19207E-07** at limit **
   5  Prefactor     .10000E-03    25.106        .27257E-06** at limit **
   6  Prefactor     11.082        18.162        .81191E-06   -.23943E-03
   7  Prefactor     1.2046        19.719        .16001E-05   -.17383E-03
   8  Prefactor     19.571        15.581        .10755E-06   -.19997E-04
   9  Prefactor     32.637        29.592        .82466E-07   -.52693E-05
  10  norm          3.3843        3.0248        .52562E-07   -.69671E-04
  11  Prefactor     41.902        82.094        .77243E-06    .55455E-05
  12  Prefactor     1.0585        10.220        .31052E-05   -.14756E-03
  13  norm          13.893        9.8347       -.42443E-06   -.11364E-03
  14  Prefactor     .10000E-03    43.112        .94550E-06** at limit **
  15  Prefactor     .10000E-03    67.743       -.93781E-06** at limit **
  16  Prefactor     1.6091        8.5133       -.30346E-06   -.26000E-03
  17  Prefactor     .10000E-03    16.120       -.21034E-06** at limit **
  18  norm          2.9123        7.7133        .24706E-05    .27840E-03
  19  Prefactor     .10000E-03    15.284        .19723E-06** at limit **
  20  norm          1.7198        1.1518       -.15942E-08   -.53388E-04
  21  Prefactor     41.885        17.643        .36998E-06    .16927E-03
  22  Prefactor     19.344        18.032       -.16128E-06   -.31671E-04
  23  Prefactor     .28619        9.3438        .25781E-06   -.73728E-04
  24  Prefactor     .10000E-03    496.69       -.41636E-05** at limit **
  25  Normalizat    1.1756        .19601       -.91278E-06   -.74948E-04
  26  Prefactor     .66903        .17808       -.38606E-06   -.73414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0821
  Prefactor  = 1.20457
  Prefactor  = 19.5711
  Prefactor  = 32.6369
  norm       = 3.38435
  Prefactor  = 41.9024
  Prefactor  = 1.05846
  norm       = 13.8932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60912
  Prefactor  = 0.0001
  norm       = 2.91229
  Prefactor  = 0.0001
  norm       = 1.71978
  Prefactor  = 41.8849
  Prefactor  = 19.3437
  Prefactor  = 0.286185
  Prefactor  = 0.000100004
  Normalizat = 1.17558
  Prefactor  = 0.669033
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.230     FROM HESSE     STATUS=OK           456 CALLS     3545 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    179.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.082        16.911        .60093E-03   -1.5042    
   7  Prefactor     1.2046        17.760        .41835E-03   -1.5488    
   8  Prefactor     19.571        15.604        .90538E-04   -1.4823    
   9  Prefactor     32.637        29.592        .70140E-04   -1.4565    
  10  norm          3.3843        3.0181        .11271E-03   -1.5340    
  11  Prefactor     41.902        82.173        .61930E-04   -1.4412    
  12  Prefactor     1.0585        10.707        .43209E-03   -1.5502    
  13  norm          13.893        9.8015        .10746E-03   -1.4962    
  14  Prefactor     .10000E-03    43.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6091        9.6181        .33406E-03   -1.5454    
  17  Prefactor     .10000E-03    16.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9123        7.9014        .23825E-03   -1.5367    
  19  Prefactor     .10000E-03    15.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7198        1.1518        .32036E-04   -1.5446    
  21  Prefactor     41.885        17.589        .61940E-04   -1.4413    
  22  Prefactor     19.344        18.034        .91068E-04   -1.4828    
  23  Prefactor     .28619        86.845        .41514E-02   -1.5601    
  24  Prefactor     .10000E-03    498.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1756        .22761        .22267E-03   -.87361    
  26  Prefactor     .66903        .20531        .27525E-03   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76103e-10
Minuit parameter uncertainties:
  1  3.08335e-07
  2  0.000676718
  3  0.000130967
  4  3.16767e-06
  5  4.90261e-05
  6  16.9182
  7  9.25349
  8  15.6071
  9  29.6054
  10  3.01823
  11  82.3966
  12  6.7342
  13  9.80266
  14  0.000205311
  15  0.000234628
  16  7.86973
  17  2.86508e-05
  18  7.90426
  19  3.03161e-05
  20  1.15182
  21  17.5916
  22  18.0388
  23  9.98361
  24  0.00276088
  25  0.227803
  26  0.205541
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  4.190e+01  8.240e+01  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:  6.690e-01  2.055e-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.176e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724665/likelihoodResults_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.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) = 5150.20517314
delta logL = 0.0244255320567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5150.18526017
delta logL = 0.0443385029293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.861       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0497       1.0000          .0000       10.000    
     3 'Normalizat'    1.1582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67953       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=   5150.185     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      301 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.890        6054.1        .83776E-04    .97707E-05
   2  Index         3.0492        6.3562        .91676E-02    .16325E-04
   3  Normalizat    1.1583        .34338        .22407E-03   -.36302E-03
   4  Prefactor     .67955        .27340        .27330E-03    .19663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8901
  Index      = 3.04923
  Normalizat = 1.15827
  Prefactor  = 0.679546
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.185     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.890        89.941        .33510E-05   -1.4751    
   2  Index         3.0492        2.2852        .36670E-03   -.40080    
   3  Normalizat    1.1583        .22316        .44814E-04   -.87902    
   4  Prefactor     .67955        .20720        .10932E-04   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63407e-09
Minuit parameter uncertainties:
  1  90.4804
  2  2.39126
  3  0.223344
  4  0.20744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724665': 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) = 5150.18525998
delta logL = 0.0443386848729

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  6.795e-01  2.074e-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.158e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/724665/cmap_HighResolution_252806401_253065601_4FGL_J1549.3+6310_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-09-12 14:23:55.385639', job_id='724665', GAL2='0.68', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1631481835.39', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.43e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='52' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:23:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 724665: <4FGL_J1549.3+6310_daily_bin52> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 14:10:53 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:12:46 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:12:46 2021
Terminated at Sun Sep 12 14:23:56 2021
Results reported at Sun Sep 12 14:23:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin52 237.332 63.178 252806401 253065601 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 :                                   618.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            783 sec.

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

