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


Performing analysis on: 4FGL_J1549.3+6310_daily_bin1008
RA = 237.332, Dec = 63.178
tmin = 500601601, tmax = 500860801
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='730061', job_status='RUN', time_executed='2021-09-12 14:32:56.782216', time_epoch_executed='1631482376.78' WHERE source_name='4FGL J1549.3+6310' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730061/ft1_4FGL_J1549.3+6310_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730061/ft2_4FGL_J1549.3+6310_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730061/ft1_4FGL_J1549.3+6310_daily_bin1008.fits outfile=/scratch/kocevski/730061/ft1_filteredMKT_4FGL_J1549.3+6310_daily_bin1008.fits ra=237.332 dec=63.178 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.20
user 4.91
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730061/ft1_filtered_4FGL_J1549.3+6310_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/730061/ft2_4FGL_J1549.3+6310_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/730061/ltcube_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.fits outfile=/scratch/kocevski/730061/expmap_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.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/730061/ltcube_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.fits
.....................!
real 192.79
user 187.41
sys 4.90

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/730061/ft1_filtered_4FGL_J1549.3+6310_daily_bin1008.fits scfile=/scratch/kocevski/730061/ft2_4FGL_J1549.3+6310_daily_bin1008.fits outfile=/scratch/kocevski/730061/cmap_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/730061/ft1_filtered_4FGL_J1549.3+6310_daily_bin1008.fits scfile=/scratch/kocevski/730061/ft2_4FGL_J1549.3+6310_daily_bin1008.fits outfile=/scratch/kocevski/730061/cmap_HighResolution_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.298       1.0000         .10000E-03   10000.    
     2 'Prefactor '    342.03       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.785       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1406       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11592E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.774       1.0000         .10000E-03   10000.    
    18 'norm      '    10.302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7651       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.744       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87014       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=   5222.795     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3128 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.302        29.407        .39474E-05   -.10838E-04
   2  Prefactor     341.83        343.94       -.11358E-03   -.14785E-05
   3  Prefactor     .72436        27.347        .31571E-05   -.25077E-03
   4  Prefactor     56.788        29.513        .20352E-05   -.26218E-04
   5  Prefactor     30.940        34.030        .94554E-05   -.27493E-04
   6  Prefactor     .10000E-03    6.2770        .67675E-06** at limit **
   7  Prefactor     14.358        8.9491       -.65800E-05   -.16225E-03
   8  Prefactor     .10000E-03    4.7358       -.10496E-06** at limit **
   9  Prefactor     .10000E-03    8.8624       -.13647E-06** at limit **
  10  norm          1.9118        2.5020       -.27975E-05   -.99407E-03
  11  Prefactor     32.509        100.86        .11735E-03    .94258E-05
  12  Prefactor     3.1405        8.2908       -.91250E-05   -.29454E-03
  13  norm          .10000E-03    5.5394        .51829E-06** at limit **
  14  Prefactor     .10000E-03    30.314        .18924E-05** at limit **
  15  Prefactor     .10000E-03    99.128       -.50207E-04** at limit **
  16  Prefactor     22.608        11.961        .20508E-05   -.46755E-04
  17  Prefactor     23.773        27.954        .33342E-06   -.25717E-05
  18  norm          10.302        9.4262        .27231E-05   -.67865E-04
  19  Prefactor     .10000E-03    30.371       -.56874E-05** at limit **
  20  norm          .10000E-03    .31908       -.37981E-07** at limit **
  21  Prefactor     2.7645        7.4443        .31830E-06   -.41575E-03
  22  Prefactor     24.743        17.602        .86542E-06   -.46714E-05
  23  Prefactor     9.8754        10.485        .49996E-05   -.23443E-03
  24  Prefactor     .10000E-03    73.848        .40985E-04** at limit **
  25  Normalizat    1.0453        .20063       -.75803E-05    .24893E-03
  26  Prefactor     .87044        .18432        .18272E-05   -.23509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3025
  Prefactor  = 341.826
  Prefactor  = 0.724365
  Prefactor  = 56.788
  Prefactor  = 30.94
  Prefactor  = 0.000100001
  Prefactor  = 14.3581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91176
  Prefactor  = 32.5086
  Prefactor  = 3.14052
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6076
  Prefactor  = 23.7727
  norm       = 10.3017
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.7645
  Prefactor  = 24.7426
  Prefactor  = 9.87537
  Prefactor  = 0.000100001
  Normalizat = 1.04527
  Prefactor  = 0.87044
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.795     FROM HESSE     STATUS=OK           460 CALLS     3588 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.302        29.404        .10592E-03   -1.4951    
   2  Prefactor     341.83        343.79        .11004E-03   -1.1989    
   3  Prefactor     .72436        176.93        .73371E-02   -1.5538    
   4  Prefactor     56.788        29.537        .53235E-04   -1.4199    
   5  Prefactor     30.940        34.147        .72045E-04   -1.4595    
   6  Prefactor     .10000E-03    6.3038        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.358        8.9921        .10571E-03   -1.4950    
   8  Prefactor     .10000E-03    4.7421        .15359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9118        2.4789        .12355E-03   -1.5431    
  11  Prefactor     32.509        101.11        .70357E-04   -1.4567    
  12  Prefactor     3.1405        8.3127        .22875E-03   -1.5354    
  13  norm          .10000E-03    5.5627        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    99.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.608        12.017        .84248E-04   -1.4757    
  17  Prefactor     23.773        27.893        .82154E-04   -1.4732    
  18  norm          10.302        9.4142        .12484E-03   -1.5066    
  19  Prefactor     .10000E-03    30.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .41892        .76849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7645        7.3828        .24476E-03   -1.5375    
  22  Prefactor     24.743        17.202        .80529E-04   -1.4713    
  23  Prefactor     9.8754        10.471        .12752E-03   -1.5079    
  24  Prefactor     .10000E-03    73.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0453        .23442        .23586E-03   -.91529    
  26  Prefactor     .87044        .21401        .25265E-03   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45186e-09
Minuit parameter uncertainties:
  1  29.4341
  2  345.877
  3  22.7084
  4  29.5445
  5  34.1684
  6  0.00015657
  7  8.99297
  8  2.17693e-05
  9  1.95418e-05
  10  2.47907
  11  101.652
  12  8.31572
  13  0.00012987
  14  1.52427e-05
  15  0.000103028
  16  12.0183
  17  27.9079
  18  9.41552
  19  0.0002789
  20  3.14232e-06
  21  7.38526
  22  17.2058
  23  10.4727
  24  0.000547049
  25  0.234649
  26  0.214212
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  3.251e+01  1.017e+02  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.704e-01  2.142e-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.045e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/730061/likelihoodResults_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.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) = 5221.58664096
delta logL = 1.20830959759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5221.54790608
delta logL = 1.2470444744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34593       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2423       1.0000          .0000       10.000    
     3 'Normalizat'    .97278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5221.548     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      340 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34336        4.5811        .69582E-02   -.18611E-02
   2  Index         5.2455        2.4386        .97950E-01   -.36622E-04
   3  Normalizat    .97279        .48948E-01    .45825E-01   -.28967E-03
   4  Prefactor     .91774        .48499E-01    .45229E-01   -.12456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.343356
  Index      = 5.24552
  Normalizat = 0.972786
  Prefactor  = 0.917742
 **********
 **   18 **HESSE 
 **********

 FCN=   5221.548     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      373 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34336        10.141        .31749E-03   -1.5591    
   2  Index         5.2455        3.9165        .37826E-02    .49124E-01
   3  Normalizat    .97279        .16760        .24320E-03   -.93948    
   4  Prefactor     .91774        .16389        .24676E-03   -.95524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.08245e-10
Minuit parameter uncertainties:
  1  3.73208
  2  4.50194
  3  0.167695
  4  0.16398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730061': 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) = 5221.54790509
delta logL = 1.24704546046

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  3.434e-01  3.732e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  5.246e+00  4.502e+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:  9.177e-01  1.640e-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:  9.728e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 237.332 63.178
Photon Index (Free Index): 5.25 +/- 4.50
Photon Flux (Free Index): 6.23e-08 +/- 4.83e-08
Energy Flux (Free Index): 8.13e-06 +/- 7.67e-06

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/730061/cmap_HighResolution_500601601_500860801_4FGL_J1549.3+6310_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', comment='SUCCESS', energy_flux2='8.13e-06', dlogl='1.25e+00', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-12 14:46:09.022874', photon_index_error2='4.50', photon_index2='5.25', ts='0.13', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='7.67e-06', EG='1.05', time_epoch_completed='1631483169.02', return_code='0', job_id='730061', GAL2='0.92', EG2='0.97', return_code2='102', photon_flux_error2='4.83e-08', ts2='2.75', photon_index='2.44' WHERE bin_id='1008' AND source_name='4FGL J1549.3+6310' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 14:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 730061: <4FGL_J1549.3+6310_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_daily_bin1008 237.332 63.178 500601601 500860801 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 :                                   785.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            941 sec.

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

