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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin676
RA = 327.424, Dec = 3.3959
tmin = 414547201, tmax = 414806401
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='978222', job_status='RUN', time_executed='2021-09-27 17:51:25.558849', time_epoch_executed='1632790285.56' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978222/ft1_4FGL_J2149.6+0323_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978222/ft1_4FGL_J2149.6+0323_daily_bin676.fits outfile=/scratch/kocevski/978222/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin676.fits ra=327.424 dec=3.3959 rad=12.0 tmin=414547201.0 tmax=414806401.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 6.10
user 5.78
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.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/978222/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.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.58
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/978222/ltcube_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.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/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits
.....................!
real 20.43
user 19.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/978222/ltcube_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits outfile=/scratch/kocevski/978222/expmap_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.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/978222/ltcube_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits
.....................!
real 195.78
user 191.15
sys 4.08

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits outfile=/scratch/kocevski/978222/cmap_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.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.424 yref=3.3959 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.59
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits outfile=/scratch/kocevski/978222/cmap_HighResolution_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.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.424 yref=3.3959 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.59
user 0.44
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978222/Model_4FGL_J2149.6+0323_daily_bin676.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/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits.....................!
real 52.70
user 51.07
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits', '/scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits', expMap='/scratch/kocevski/978222/expmap_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits', expCube='/scratch/kocevski/978222/ltcube_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/978222/Model_4FGL_J2149.6+0323_daily_bin676.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/978222/ft1_filtered_4FGL_J2149.6+0323_daily_bin676.fits
Spacecraft file(s): /scratch/kocevski/978222/ft2_4FGL_J2149.6+0323_daily_bin676.fits
Exposure map: /scratch/kocevski/978222/expmap_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits
Exposure cube: /scratch/kocevski/978222/ltcube_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/978222/Model_4FGL_J2149.6+0323_daily_bin676.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) = 4328.64464747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11728E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5873       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11157E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.112       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.396       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10183E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4328.634     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3188 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.973        44.012        .15962E-05    .69903E-04
   2  Prefactor     9.1077        19.804        .68123E-06    .43697E-04
   3  Prefactor     .10000E-03    11.978       -.40594E-06** at limit **
   4  Prefactor     .10000E-03    54.361        .13669E-05** at limit **
   5  Prefactor     7.8633        18.409        .88710E-06    .61620E-04
   6  Prefactor     .10000E-03    14.645        .38582E-07** at limit **
   7  Prefactor     9.8489        11.492        .31774E-06    .60285E-04
   8  Prefactor     6.5675        22.202        .50987E-06    .15200E-04
   9  Prefactor     .10000E-03    2.4275       -.23060E-05** at limit **
  10  Prefactor     35.050        46.357       -.28899E-05    .53958E-04
  11  Prefactor     .10000E-03    68.766       -.34049E-05** at limit **
  12  Prefactor     .10000E-03    35.077        .30461E-06** at limit **
  13  Prefactor     .10018E-03    904.97        .20934E-04** at limit **
  14  norm          .10000E-03    1.1339        .72940E-06** at limit **
  15  norm          4.6106        66.418       -.13165E-05   -.66841E-05
  16  Prefactor     .10000E-03    5.9400        .14750E-05** at limit **
  17  Prefactor     14.401        17.241        .80101E-06    .13846E-03
  18  Prefactor     16.588        51.415        .14561E-05   -.22529E-04
  19  Prefactor     .10002E-03    407.99        .25233E-04** at limit **
  20  Prefactor     .10000E-03    19.930        .22969E-06** at limit **
  21  Prefactor     11.103        110.84       -.65055E-05   -.74278E-04
  22  Prefactor     44.421        28.247        .15856E-06   -.54930E-04
  23  Normalizat    .10000E-01    .23721       -.80400E-05** at limit **
  24  Prefactor     1.3512        .97961E-01    .22414E-06    .56394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9735
  Prefactor  = 9.10774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86331
  Prefactor  = 0.0001
  Prefactor  = 9.84889
  Prefactor  = 6.56753
  Prefactor  = 0.000100001
  Prefactor  = 35.0504
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  norm       = 0.0001
  norm       = 4.61056
  Prefactor  = 0.000100001
  Prefactor  = 14.4014
  Prefactor  = 16.588
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 11.1027
  Prefactor  = 44.4209
  Normalizat = 0.01
  Prefactor  = 1.35117
 **********
 **   18 **HESSE 
 **********

 FCN=   4328.634     FROM HESSE     STATUS=OK           413 CALLS     3601 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.973        44.200        .75782E-04   -1.4650    
   2  Prefactor     9.1077        19.819        .13282E-03   -1.5104    
   3  Prefactor     .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8633        18.432        .14307E-03   -1.5147    
   6  Prefactor     .10000E-03    14.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8489        11.431        .12774E-03   -1.5080    
   8  Prefactor     6.5675        22.093        .15669E-03   -1.5195    
   9  Prefactor     .10000E-03    2.6147        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.050        47.024        .67680E-04   -1.4523    
  11  Prefactor     .10000E-03    69.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10018E-03    929.09        .36326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1600        .69068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6106        65.295        .18794E-03   -1.5278    
  16  Prefactor     .10000E-03    6.0483        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.401        17.295        .10555E-03   -1.4949    
  18  Prefactor     16.588        51.069        .98813E-04   -1.4893    
  19  Prefactor     .10002E-03    24.358        .10208       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.103        114.75        .12019E-03   -1.5041    
  22  Prefactor     44.421        28.768        .60170E-04   -1.4374    
  23  Normalizat    .10000E-01    .93634        .20130       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3512        .15976        .15412E-03   -.81798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36059e-09
Minuit parameter uncertainties:
  1  44.2518
  2  19.833
  3  6.00129e-05
  4  0.000328894
  5  18.445
  6  2.02275e-05
  7  11.4337
  8  22.1203
  9  0.000116786
  10  47.0733
  11  0.000920984
  12  6.26697e-05
  13  0.0263089
  14  2.82293e-05
  15  34.7469
  16  0.000133444
  17  17.3013
  18  51.2038
  19  0.00140282
  20  3.38341e-05
  21  71.5633
  22  28.7765
  23  3.02881e-05
  24  0.15982
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.334e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.351e+00  1.598e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  3.029e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978222/likelihoodResults_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4328.63444728
delta logL = -0.000787792338087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4328.6336603
delta logL = -8.16309693619e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1352       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   4328.634     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      269 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    65.906        .16065E-02** at limit **
   2  Index         2.0761        8.9256        .50000        .22760E-04
   3  Normalizat    .10000E-01    .50161E-02    .20130    ** at limit **
   4  Prefactor     1.3512        .11849E-01    .15411E-03    .22204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101333
  Index      = 2.07614
  Normalizat = 0.01
  Prefactor  = 1.35117
 **********
 **   18 **HESSE 
 **********

 FCN=   4328.634     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      308 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10133E-03    282.97        .32130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0761        5.8900        .50000       -.62460    
   3  Normalizat    .10000E-01    .20352E-01    .21761       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3512        .25628E-01    .61646E-05   -.81798    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.35825e-08
Minuit parameter uncertainties:
  1  0.0390334
  2  565.9
  3  5.05573e-07
  4  0.0256287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978222': 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) = 4328.63365907
delta logL = 4.10471329815e-07

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.013e-04  3.903e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.076e+00  5.659e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.351e+00  2.563e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  5.056e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.424 3.396

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/978222/cmap_HighResolution_414547201_414806401_4FGL_J2149.6+0323_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-27 18:01:55.845039', job_id='978222', GAL2='1.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632790915.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='676' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 978222: <4FGL_J2149.6+0323_daily_bin676> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin676> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 17:50:15 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:51:14 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:51:14 2021
Terminated at Mon Sep 27 18:01:56 2021
Results reported at Mon Sep 27 18:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin676 327.424 3.3959 414547201 414806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            701 sec.

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

