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


Performing analysis on: 4FGL_J2149.1+6104_daily_bin451
RA = 327.29, Dec = 61.0705
tmin = 356227201, tmax = 356486401
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='961458', job_status='RUN', time_executed='2021-09-27 17:02:34.961573', time_epoch_executed='1632787354.96' WHERE source_name='4FGL J2149.1+6104' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961458

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961458/ft1_4FGL_J2149.1+6104_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/961458/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961458/ft1_4FGL_J2149.1+6104_daily_bin451.fits outfile=/scratch/kocevski/961458/ft1_filteredMKT_4FGL_J2149.1+6104_daily_bin451.fits ra=327.29 dec=61.0705 rad=12.0 tmin=356227201.0 tmax=356486401.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.14
user 2.91
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.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/961458/ft1_filteredMKT_4FGL_J2149.1+6104_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/961458/ltcube_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.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/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits
.....................!
real 3.51
user 3.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/961458/ltcube_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits outfile=/scratch/kocevski/961458/expmap_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.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/961458/ltcube_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits
.....................!
real 193.14
user 188.12
sys 4.57

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 189 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2149.1+6104 @ 327.29 61.0705

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits outfile=/scratch/kocevski/961458/cmap_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.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=327.29 yref=61.0705 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits outfile=/scratch/kocevski/961458/cmap_HighResolution_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.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=327.29 yref=61.0705 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961458/Model_4FGL_J2149.1+6104_daily_bin451.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits.....................!
real 131.72
user 130.18
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits', '/scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits', expMap='/scratch/kocevski/961458/expmap_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits', expCube='/scratch/kocevski/961458/ltcube_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961458/Model_4FGL_J2149.1+6104_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.1+6104'

4FGL J2149.1+6104
   Spectrum: LogParabola
411         norm:  2.535e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
412        alpha:  3.043e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  4.224e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.747e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/961458/ft1_filtered_4FGL_J2149.1+6104_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/961458/ft2_4FGL_J2149.1+6104_daily_bin451.fits
Exposure map: /scratch/kocevski/961458/expmap_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits
Exposure cube: /scratch/kocevski/961458/ltcube_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961458/Model_4FGL_J2149.1+6104_daily_bin451.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) = 8086.82876541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .23913E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     8 'Normalizat'    1.7339       1.0000         .10000E-01   10.000    
     9 'Prefactor '    .88568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8086.828     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      682 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.225        19.034        .27537E-02    .17203E-03
   2  Prefactor     10.519        37.445        .30895E-02   -.10719E-02
   3  Prefactor     .10000E-03    2.2635        .90712E-02** at limit **
   4  norm          .10000E-03    12.400        .11086    ** at limit **
   5  norm          10.872        5.8675        .30386E-02    .24429E-02
   6  Prefactor     .10000E-03    18.032        .90712E-02** at limit **
   7  Prefactor     .10000E-03    41.129        .90712E-02** at limit **
   8  Normalizat    1.7333        .61984        .21404        .27088E-04
   9  Prefactor     .88573        .54107E-01    .25619E-01    .40864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2252
  Prefactor  = 10.5195
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 10.8716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.73328
  Prefactor  = 0.885726
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.828     FROM HESSE     STATUS=OK            85 CALLS      767 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.225        19.032        .11015E-03   -1.4980    
   2  Prefactor     10.519        37.385        .12358E-03   -1.5059    
   3  Prefactor     .10000E-03    2.2648        .13213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    143.88        .60881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.872        5.8632        .60771E-03   -1.5048    
   6  Prefactor     .10000E-03    18.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Normalizat    1.7333        .63128        .95512E-03   -.71418    
   9  Prefactor     .88573        .56146E-01    .11322E-03   -.96642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56523e-08
Minuit parameter uncertainties:
  1  19.0403
  2  37.4681
  3  1.02091e-06
  4  0.000619117
  5  5.86348
  6  1.12008e-06
  7  4.84259e-05
  8  0.634261
  9  0.0561494
Done.

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

Extracting fit parameters...

4FGL J2149.1+6104
   Spectrum: LogParabola
411         norm:  1.000e-04  6.191e-04  1.000e-04  1.000e+04 ( 1.000e-12)
412        alpha:  3.043e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  4.224e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.747e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  8.857e-01  5.615e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
653   Normalization:  1.733e+00  6.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.290 61.071
Photon Flux Upper Limit: 2.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961458/likelihoodResults_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.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) = 8086.82791553
delta logL = -3.16088435284e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8086.77744562
delta logL = 0.0504382980753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50338       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88670       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8086.777     FROM MIGRAD    STATUS=FAILED       107 CALLS      353 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50235        2.4123        .18960E-02    .87997E-02
   2  alpha         5.0000        3.5865        .50000    ** at limit **
   3  Normalizat    1.6868        .63816        .96514E-03   -.15666E-04
   4  Prefactor     .88678        .56188E-01    .11315E-03    .15785E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8086.777     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      480 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50235        2.4123        .64247E-06   -1.5566    
   2  alpha         5.0000        3.5865        .22881E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6868        .63816        .72082E-05   -.72655    
   4  Prefactor     .88678        .56188E-01    .12014E-06   -.96605    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8086.777     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      515 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50236        1.8595        .37921E-03    .65776E-04
   2  alpha         5.0000        4.4650        .50000    ** at limit **
   3  Normalizat    1.6868        .63940        .38606E-04    .18258E-05
   4  Prefactor     .88678        .56210E-01    .45259E-05    .12509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.502359
  alpha      = 5
  Normalizat = 1.68684
  Prefactor  = 0.88678
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.777     FROM HESSE     STATUS=OK            31 CALLS      546 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50236        1.8139        .15168E-04   -1.5566    
   2  alpha         5.0000        4.5611        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6868        .63972        .77212E-05   -.72655    
   4  Prefactor     .88678        .56204E-01    .90519E-06   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06594e-12
Minuit parameter uncertainties:
  1  1.81405
  2  5.19898e-06
  3  0.642897
  4  0.056208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961458': 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) = 8086.77744377
delta logL = 0.0504401512226

Extracting fit parameters...

4FGL J2149.1+6104
   Spectrum: LogParabola
411         norm:  5.024e-01  1.814e+00  1.000e-04  1.000e+04 ( 1.000e-12)
412        alpha:  5.000e+00  5.199e-06  0.000e+00  5.000e+00 ( 1.000e+00)
413         beta:  4.224e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.747e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  8.868e-01  5.621e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
653   Normalization:  1.687e+00  6.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.290 61.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/961458/cmap_HighResolution_356227201_356486401_4FGL_J2149.1+6104_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-05', job_status='DONE', photon_flux_upper_limit='2.98e-07', time_completed='2021-09-27 17:12:53.553330', job_id='961458', GAL2='0.89', fit_tolerance='1e-08', EG2='1.69', EG='1.73', time_epoch_completed='1632787973.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.04e-02', ts2='0.11', photon_index_error='0.00', photon_index='3.04' WHERE bin_id='451' AND source_name='4FGL J2149.1+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 17:12:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 961458: <4FGL_J2149.1+6104_daily_bin451> in cluster <slac> Done

Job <4FGL_J2149.1+6104_daily_bin451> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep 27 17:00:14 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:00:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 17:00:16 2021
Terminated at Mon Sep 27 17:12:53 2021
Results reported at Mon Sep 27 17:12:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.1+6104_daily_bin451 327.29 61.0705 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.1+6104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

