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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin635
RA = 343.496, Dec = 16.1506
tmin = 403920001, tmax = 404179201
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='576622', job_status='RUN', time_executed='2021-09-29 01:59:09.877250', time_epoch_executed='1632905949.88' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576622

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576622/ft1_4FGL_J2253.9+1609_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576622/ft1_4FGL_J2253.9+1609_daily_bin635.fits outfile=/scratch/kocevski/576622/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin635.fits ra=343.496 dec=16.1506 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.07
user 9.73
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.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/576622/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/576622/ltcube_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.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/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits
.....................!
real 9.14
user 8.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/576622/ltcube_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits outfile=/scratch/kocevski/576622/expmap_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.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/576622/ltcube_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits
.....................!
real 192.25
user 186.83
sys 5.10

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

Setting source of interest to:
4FGL J2253.9+1609 @ 343.496 16.1506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits outfile=/scratch/kocevski/576622/cmap_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.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=343.496 yref=16.1506 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits outfile=/scratch/kocevski/576622/cmap_HighResolution_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.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=343.496 yref=16.1506 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/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576622/Model_4FGL_J2253.9+1609_daily_bin635.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/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits.....................!
real 58.47
user 57.15
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits', '/scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits', expMap='/scratch/kocevski/576622/expmap_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits', expCube='/scratch/kocevski/576622/ltcube_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576622/Model_4FGL_J2253.9+1609_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.9+1609'

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/576622/ft1_filtered_4FGL_J2253.9+1609_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/576622/ft2_4FGL_J2253.9+1609_daily_bin635.fits
Exposure map: /scratch/kocevski/576622/expmap_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits
Exposure cube: /scratch/kocevski/576622/ltcube_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576622/Model_4FGL_J2253.9+1609_daily_bin635.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) = 5116.97739829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .97101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7906       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.417       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7191       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.737       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9693       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.359       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98013       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5116.969     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2707 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0341       -.44374E-06** at limit **
   2  norm          .10000E-03    2.5145       -.14347E-07** at limit **
   3  Prefactor     3.1217        10.421        .37684E-06   -.30265E-06
   4  Prefactor     14.253        13.615        .40300E-06    .38642E-05
   5  Prefactor     1.3155        .33148        .78882E-09    .19207E-04
   6  Prefactor     .10000E-03    4.1954       -.62999E-06** at limit **
   7  norm          .97100        1.2966       -.17975E-07   -.33983E-05
   8  Prefactor     45.235        42.618        .12882E-05    .74375E-05
   9  Prefactor     19.227        17.648        .92825E-07   -.37849E-05
  10  Prefactor     .10000E-03    7.5988       -.82041E-06** at limit **
  11  Prefactor     1.7906        .29268       -.43952E-08   -.27503E-04
  12  Prefactor     4.0045        18.430        .13464E-06    .25919E-05
  13  Prefactor     36.423        46.420        .28890E-05    .85275E-05
  14  Prefactor     .10000E-03    6.0130        .71860E-06** at limit **
  15  Prefactor     .10000E-03    4.0367        .45000E-06** at limit **
  16  Prefactor     4.3910        41.554       -.41651E-05   -.76564E-05
  17  Prefactor     .10000E-03    1.6887       -.23727E-07** at limit **
  18  Prefactor     3.7334        31.033       -.25094E-06   -.65482E-05
  19  Prefactor     25.738        19.698        .36206E-06   -.55647E-06
  20  norm          2.9530        26.513        .23923E-05   -.15720E-04
  21  Prefactor     11.361        12.714       -.56187E-06   -.36295E-04
  22  norm          .10000E-03    11.110        .86474E-06** at limit **
  23  Normalizat    .98004        .28414       -.13782E-05    .69721E-05
  24  Prefactor     .85169        .14528        .41060E-06   -.62681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.12169
  Prefactor  = 14.2533
  Prefactor  = 1.31545
  Prefactor  = 0.0001
  norm       = 0.971
  Prefactor  = 45.235
  Prefactor  = 19.2269
  Prefactor  = 0.0001
  Prefactor  = 1.79062
  Prefactor  = 4.00449
  Prefactor  = 36.4232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39095
  Prefactor  = 0.0001
  Prefactor  = 3.73336
  Prefactor  = 25.7378
  norm       = 2.95301
  Prefactor  = 11.3606
  norm       = 0.0001
  Normalizat = 0.980041
  Prefactor  = 0.851687
 **********
 **   18 **HESSE 
 **********

 FCN=   5116.969     FROM HESSE     STATUS=OK           405 CALLS     3112 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5239        .11075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1217        10.400        .22948E-03   -1.5355    
   4  Prefactor     14.253        13.649        .10610E-03   -1.4953    
   5  Prefactor     1.3155        .33175        .19484E-04   -1.5479    
   6  Prefactor     .10000E-03    4.2020        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .97100        1.2959        .52251E-04   -1.5511    
   8  Prefactor     45.235        42.737        .59614E-04   -1.4362    
   9  Prefactor     19.227        17.673        .91343E-04   -1.4831    
  10  Prefactor     .10000E-03    7.6064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7906        .29445        .14572E-04   -1.5440    
  12  Prefactor     4.0045        18.299        .20152E-03   -1.5308    
  13  Prefactor     36.423        46.492        .66411E-04   -1.4500    
  14  Prefactor     .10000E-03    6.1424        .17118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0387        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3910        41.958        .19210E-03   -1.5289    
  17  Prefactor     .10000E-03    1.6905        .90773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7334        31.215        .20939E-03   -1.5322    
  19  Prefactor     25.738        19.723        .78963E-04   -1.4693    
  20  norm          2.9530        27.329        .23563E-03   -1.5364    
  21  Prefactor     11.361        12.756        .11887E-03   -1.5034    
  22  norm          .10000E-03    11.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98004        .33198        .34589E-03   -.93702    
  24  Prefactor     .85169        .17014        .20634E-03   -.97850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54859e-11
Minuit parameter uncertainties:
  1  2.63462e-06
  2  3.7823e-07
  3  10.4057
  4  13.6524
  5  0.331747
  6  2.84167e-06
  7  1.29596
  8  42.7655
  9  17.6781
  10  5.96611e-06
  11  0.294454
  12  17.1291
  13  46.5388
  14  6.58073e-07
  15  1.21417e-06
  16  27.1712
  17  4.86761e-07
  18  21.6055
  19  19.7275
  20  17.9773
  21  12.7594
  22  9.59618e-06
  23  0.332681
  24  0.170249
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.791e+00  2.945e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.517e-01  1.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.800e-01  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 113.95
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.53e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 2.10e-04 +/- 3.45e-05

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) = 5114.37842784
delta logL = 2.59027638397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5114.35243796
delta logL = 2.6162662628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0009       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4716       1.0000          .0000       10.000    
     3 'Normalizat'    .83604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90835       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5114.352     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0008        .30624        .33031E-02    .23768E-02
   2  Index1        2.4716        .20650        .74926E-01   -.63446E-05
   3  Normalizat    .83601        .26249        .83347E-01   -.29233E-04
   4  Prefactor     .90838        .14636        .45111E-01    .24745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00082
  Index1     = 2.47164
  Normalizat = 0.83601
  Prefactor  = 0.908382
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.352     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0008        .30643        .14601E-04   -1.5425    
   2  Index1        2.4716        .20837        .32870E-03   -.53016    
   3  Normalizat    .83601        .30737        .36904E-03   -.98747    
   4  Prefactor     .90838        .17122        .20024E-03   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59905e-11
Minuit parameter uncertainties:
  1  0.306426
  2  0.208455
  3  0.308012
  4  0.171319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576622': 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) = 5114.3524379
delta logL = 2.61626632097

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.001e+00  3.064e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.472e+00  2.085e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.084e-01  1.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.360e-01  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 120.08
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.47 +/- 0.21
Photon Flux (Free Index): 7.88e-07 +/- 1.30e-07
Energy Flux (Free Index): 1.80e-04 +/- 2.92e-05

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/576622/cmap_HighResolution_403920001_404179201_4FGL_J2253.9+1609_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-07', energy_flux2='1.80e-04', photon_flux_error='1.07e-07', dlogl='2.62e+00', energy_flux='2.10e-04', photon_flux2='7.88e-07', job_status='DONE', time_completed='2021-09-29 02:08:52.444495', photon_index_error2='0.21', photon_index2='2.47', ts='113.95', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.92e-05', EG='0.98', time_epoch_completed='1632906532.44', return_code='0', job_id='576622', GAL2='0.91', EG2='0.84', return_code2='0', energy_flux_error='3.45e-05', photon_flux_error2='1.30e-07', ts2='120.08', photon_index='2.02' WHERE bin_id='635' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 576622: <4FGL_J2253.9+1609_daily_bin635> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:21 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:55:22 2021
Terminated at Wed Sep 29 02:08:53 2021
Results reported at Wed Sep 29 02:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin635 343.496 16.1506 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.9+1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

