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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin211
RA = 237.332, Dec = 63.178
tmin = 294019201, tmax = 294278401
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='725924', job_status='RUN', time_executed='2021-09-12 14:17:14.251650', time_epoch_executed='1631481434.25' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725924

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725924/ft1_4FGL_J1549.3+6310_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725924/ft1_4FGL_J1549.3+6310_daily_bin211.fits outfile=/scratch/kocevski/725924/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin211.fits ra=237.332 dec=63.178 rad=12.0 tmin=294019201.0 tmax=294278401.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.20
user 2.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725924/ft1_filtered_4FGL_J1549.3+6310_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/725924/ltcube_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.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/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits
.....................!
real 14.42
user 14.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725924/ft1_filtered_4FGL_J1549.3+6310_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/725924/ltcube_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.fits outfile=/scratch/kocevski/725924/expmap_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.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/725924/ltcube_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.fits
.....................!
real 191.83
user 186.33
sys 4.75

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/725924/ft1_filtered_4FGL_J1549.3+6310_daily_bin211.fits scfile=/scratch/kocevski/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits outfile=/scratch/kocevski/725924/cmap_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725924/ft1_filtered_4FGL_J1549.3+6310_daily_bin211.fits scfile=/scratch/kocevski/725924/ft2_4FGL_J1549.3+6310_daily_bin211.fits outfile=/scratch/kocevski/725924/cmap_HighResolution_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    374.10       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16859E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.478       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5634       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .92389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9127       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86284       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=   6660.680     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3066 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.256       -.40965E-06** at limit **
   2  Prefactor     374.07        393.34        .80223E-06    .36174E-05
   3  Prefactor     .10000E-03    13.717        .81348E-06** at limit **
   4  Prefactor     .10000E-03    49.421        .13206E-04** at limit **
   5  Prefactor     4.3618        60.626        .52178E-05    .48645E-04
   6  Prefactor     13.477        10.071       -.79420E-07    .18124E-04
   7  Prefactor     .10000E-03    3.0325       -.19247E-06** at limit **
   8  Prefactor     13.813        16.483        .54627E-06   -.15257E-04
   9  Prefactor     .10000E-03    27.852        .53344E-06** at limit **
  10  norm          9.1844        3.3794       -.22302E-07    .44598E-04
  11  Prefactor     68.502        69.064        .55095E-06    .22863E-04
  12  Prefactor     .10000E-03    4.2007        .28419E-06** at limit **
  13  norm          11.129        6.9863        .30882E-06    .24838E-03
  14  Prefactor     23.777        24.664        .34609E-07    .24296E-04
  15  Prefactor     .10000E-03    32.857        .28811E-06** at limit **
  16  Prefactor     .10000E-03    4.4900       -.48592E-06** at limit **
  17  Prefactor     .10000E-03    15.382       -.40959E-06** at limit **
  18  norm          1.5643        5.1406       -.27697E-05    .49885E-04
  19  Prefactor     .10000E-03    16.079       -.97416E-06** at limit **
  20  norm          .92393        .57578       -.22829E-07    .26741E-03
  21  Prefactor     .10000E-03    2.9743       -.80770E-07** at limit **
  22  Prefactor     .10000E-03    4.6285       -.79383E-07** at limit **
  23  Prefactor     5.9084        8.2924       -.23241E-06    .74479E-04
  24  Prefactor     .10000E-03    69.767        .17557E-05** at limit **
  25  Normalizat    1.0515        .16852        .46962E-06    .37013E-03
  26  Prefactor     .86266        .16400        .68237E-06    .40725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 374.073
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.3618
  Prefactor  = 13.4765
  Prefactor  = 0.0001
  Prefactor  = 13.8132
  Prefactor  = 0.0001
  norm       = 9.18438
  Prefactor  = 68.5017
  Prefactor  = 0.0001
  norm       = 11.1288
  Prefactor  = 23.7773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56426
  Prefactor  = 0.0001
  norm       = 0.923928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.90843
  Prefactor  = 0.0001
  Normalizat = 1.05153
  Prefactor  = 0.862659
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.680     FROM HESSE     STATUS=OK           452 CALLS     3518 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     374.07        393.42        .10539E-03   -1.1815    
   3  Prefactor     .10000E-03    13.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.977        .49527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3618        61.883        .19172E-03   -1.5290    
   6  Prefactor     13.477        10.086        .10911E-03   -1.4974    
   7  Prefactor     .10000E-03    3.0492        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.813        16.449        .10778E-03   -1.4964    
   9  Prefactor     .10000E-03    27.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1844        3.3797        .86708E-04   -1.5102    
  11  Prefactor     68.502        69.095        .48493E-04   -1.4051    
  12  Prefactor     .10000E-03    21.688        .30505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.129        6.6507        .12014E-03   -1.5041    
  14  Prefactor     23.777        24.662        .82145E-04   -1.4732    
  15  Prefactor     .10000E-03    32.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5449        .16889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5643        5.1449        .32571E-03   -1.5458    
  19  Prefactor     .10000E-03    16.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .92393        .56534        .47150E-04   -1.5516    
  21  Prefactor     .10000E-03    3.0057        .13739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6453        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9084        8.2922        .16515E-03   -1.5222    
  24  Prefactor     .10000E-03    69.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0515        .19672        .22622E-03   -.91324    
  26  Prefactor     .86266        .18963        .24632E-03   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21515e-10
Minuit parameter uncertainties:
  1  2.65578e-05
  2  396.298
  3  6.10564e-05
  4  0.000456474
  5  32.8994
  6  10.087
  7  2.96932e-06
  8  16.4547
  9  2.32949e-05
  10  3.3798
  11  69.1758
  12  0.000161769
  13  6.6511
  14  24.6728
  15  2.90845e-05
  16  1.4136e-06
  17  2.82896e-05
  18  5.14632
  19  1.06194e-05
  20  0.565339
  21  3.17755e-06
  22  2.3216e-06
  23  8.2938
  24  0.000269891
  25  0.196853
  26  0.189777
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  6.850e+01  6.918e+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:  8.627e-01  1.898e-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.052e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 237.332 63.178
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 8.10e-06 +/- 8.18e-06

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

Saving results to:
/scratch/kocevski/725924/likelihoodResults_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.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) = 6660.25563367
delta logL = 0.424259823119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6660.25521308
delta logL = 0.42468041032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.99       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9427       1.0000          .0000       10.000    
     3 'Normalizat'    1.0599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85517       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=   6660.255     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.89        126.73        .17395E-03    .11176E-04
   2  Index         1.9430        .50459        .81580E-02    .26398E-03
   3  Normalizat    1.0596        .18774        .22544E-03    .21180E-04
   4  Prefactor     .85551        .18771        .24715E-03    .91999E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.894
  Index      = 1.94303
  Normalizat = 1.05961
  Prefactor  = 0.855514
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.255     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.89        125.37        .69581E-05   -1.3389    
   2  Index         1.9430        .49934        .16316E-02   -.65782    
   3  Normalizat    1.0596        .18794        .90175E-05   -.91059    
   4  Prefactor     .85551        .18791        .98859E-05   -.97713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46079e-12
Minuit parameter uncertainties:
  1  125.62
  2  0.500679
  3  0.188061
  4  0.188055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725924': 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) = 6660.25521102
delta logL = 0.424682472753

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.555e-01  1.881e-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.060e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 237.332 63.178
Photon Index (Free Index): 1.94 +/- 0.50
Photon Flux (Free Index): 2.14e-08 +/- 2.24e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/725924/cmap_HighResolution_294019201_294278401_4FGL_J1549.3+6310_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='1.71e-05', photon_flux_error='2.63e-08', dlogl='4.25e-01', energy_flux='8.10e-06', photon_flux2='2.14e-08', job_status='DONE', time_completed='2021-09-12 14:32:00.856828', photon_index_error2='0.50', photon_index2='1.94', ts='1.56', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='2.06e-05', EG='1.05', time_epoch_completed='1631482320.86', return_code='0', job_id='725924', GAL2='0.86', EG2='1.06', return_code2='0', energy_flux_error='8.18e-06', photon_flux_error2='2.24e-08', ts2='2.42', photon_index='2.44' WHERE bin_id='211' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 725924: <4FGL_J1549.3+6310_daily_bin211> in cluster <slac> Done

Job <4FGL_J1549.3+6310_daily_bin211> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 14:15:28 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 14:16:59 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:16:59 2021
Terminated at Sun Sep 12 14:32:01 2021
Results reported at Sun Sep 12 14:32:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin211 237.332 63.178 294019201 294278401 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 :                                   882.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            993 sec.

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

