/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7631
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin934
RA = 343.496, Dec = 16.1506
tmin = 481420801, tmax = 481680001
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='578269', job_status='RUN', time_executed='2021-09-29 02:00:36.149217', time_epoch_executed='1632906036.15' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578269/ft1_4FGL_J2253.9+1609_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578269/ft1_4FGL_J2253.9+1609_daily_bin934.fits outfile=/scratch/kocevski/578269/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin934.fits ra=343.496 dec=16.1506 rad=12.0 tmin=481420801.0 tmax=481680001.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.82
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.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/578269/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin934.fits evtable="EVENTS" outfile="/scratch/kocevski/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.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/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/578269/ltcube_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.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/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits
.....................!
real 12.04
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/578269/ltcube_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits outfile=/scratch/kocevski/578269/expmap_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.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/578269/ltcube_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits
.....................!
real 191.05
user 185.75
sys 4.98

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/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits outfile=/scratch/kocevski/578269/cmap_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits outfile=/scratch/kocevski/578269/cmap_HighResolution_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.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/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578269/Model_4FGL_J2253.9+1609_daily_bin934.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/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits.....................!
real 96.14
user 94.77
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits', '/scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits', expMap='/scratch/kocevski/578269/expmap_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits', expCube='/scratch/kocevski/578269/ltcube_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/578269/Model_4FGL_J2253.9+1609_daily_bin934.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/578269/ft1_filtered_4FGL_J2253.9+1609_daily_bin934.fits
Spacecraft file(s): /scratch/kocevski/578269/ft2_4FGL_J2253.9+1609_daily_bin934.fits
Exposure map: /scratch/kocevski/578269/expmap_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits
Exposure cube: /scratch/kocevski/578269/ltcube_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/578269/Model_4FGL_J2253.9+1609_daily_bin934.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) = 9304.01914928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.633       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10753E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.044       1.0000         .10000E-03   10000.    
    20 'norm      '    18.704       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    26.153       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .56384       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0531       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=   9304.006     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2783 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8678        .66867E-07** at limit **
   2  norm          .10000E-03    2.3508        .70939E-07** at limit **
   3  Prefactor     2.4184        12.689        .71546E-05    .22581E-04
   4  Prefactor     14.108        11.090        .14858E-06    .24357E-04
   5  Prefactor     4.6509        .42368       -.32211E-07    .23003E-03
   6  Prefactor     11.633        8.3672        .55895E-07    .12545E-04
   7  norm          5.5294        2.2848        .17813E-07    .52272E-04
   8  Prefactor     .10000E-03    11.335        .24540E-08** at limit **
   9  Prefactor     3.9373        6.9713        .13563E-06    .15606E-04
  10  Prefactor     .10000E-03    20.388       -.35256E-08** at limit **
  11  Prefactor     2.4587        .26445        .35705E-08    .12823E-04
  12  Prefactor     .10000E-03    3.5588        .48557E-07** at limit **
  13  Prefactor     58.764        41.368        .82005E-06   -.27170E-03
  14  Prefactor     .10000E-03    5.3522        .41467E-07** at limit **
  15  Prefactor     2.0145        11.383        .40836E-06   -.12781E-04
  16  Prefactor     14.897        19.360        .18458E-06   -.68063E-05
  17  Prefactor     5.3276        5.9416        .13666E-05    .29424E-04
  18  Prefactor     .10000E-03    5.7625       -.36603E-06** at limit **
  19  Prefactor     15.042        17.035       -.40942E-06    .99324E-06
  20  norm          18.694        9.6526        .32320E-06    .23650E-03
  21  Prefactor     .10000E-03    2.8404       -.94411E-07** at limit **
  22  norm          26.152        14.497        .40080E-07    .24677E-05
  23  Normalizat    .56388        .24526       -.10078E-05    .26618E-04
  24  Prefactor     1.0531        .12927       -.11165E-06    .60824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.41842
  Prefactor  = 14.1082
  Prefactor  = 4.65091
  Prefactor  = 11.6329
  norm       = 5.52936
  Prefactor  = 0.0001
  Prefactor  = 3.93732
  Prefactor  = 0.0001
  Prefactor  = 2.45869
  Prefactor  = 0.0001
  Prefactor  = 58.764
  Prefactor  = 0.0001
  Prefactor  = 2.01453
  Prefactor  = 14.8971
  Prefactor  = 5.3276
  Prefactor  = 0.000100001
  Prefactor  = 15.0419
  norm       = 18.6939
  Prefactor  = 0.0001
  norm       = 26.1525
  Normalizat = 0.563878
  Prefactor  = 1.05311
 **********
 **   18 **HESSE 
 **********

 FCN=   9304.006     FROM HESSE     STATUS=OK           411 CALLS     3194 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3850        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4184        12.695        .13155E-02   -1.5397    
   4  Prefactor     14.108        11.069        .10664E-03   -1.4957    
   5  Prefactor     4.6509        .42391        .17613E-04   -1.5277    
   6  Prefactor     11.633        8.3751        .11745E-03   -1.5026    
   7  norm          5.5294        2.2837        .89792E-04   -1.5238    
   8  Prefactor     .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9373        6.9496        .20329E-03   -1.5311    
  10  Prefactor     .10000E-03    20.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4587        .26417        .15350E-04   -1.5394    
  12  Prefactor     .10000E-03    3.5651        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.764        41.901        .52327E-04   -1.4173    
  14  Prefactor     .10000E-03    5.5135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0145        11.324        .29155E-03   -1.5424    
  16  Prefactor     14.897        19.369        .10377E-03   -1.4936    
  17  Prefactor     5.3276        5.9342        .87062E-03   -1.5246    
  18  Prefactor     .10000E-03    6.3889        .81132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.042        17.001        .10326E-03   -1.4932    
  20  norm          18.694        9.6774        .92611E-04   -1.4843    
  21  Prefactor     .10000E-03    2.8538        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          26.152        14.495        .78334E-04   -1.4685    
  23  Normalizat    .56388        .25744        .49394E-03   -1.0954    
  24  Prefactor     1.0531        .13841        .21091E-03   -.90980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68407e-10
Minuit parameter uncertainties:
  1  1.42434e-05
  2  6.64912e-06
  3  11.0853
  4  11.0711
  5  0.423908
  6  8.3759
  7  2.28377
  8  5.80432e-06
  9  6.95104
  10  1.18351e-05
  11  0.264166
  12  6.15257e-06
  13  41.9218
  14  5.78593e-06
  15  9.55518
  16  19.3769
  17  5.93488
  18  0.000183314
  19  17.006
  20  9.67817
  21  9.42887e-06
  22  14.4972
  23  0.257989
  24  0.138454
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.459e+00  2.642e-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:  1.053e+00  1.385e-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:  5.639e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 292.56
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.97e-07 +/- 9.63e-08
Energy Flux (Fixed Index): 2.88e-04 +/- 3.09e-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) = 9302.10756004
delta logL = 1.8989366951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9302.10314549
delta logL = 1.90335125097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6450       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2705       1.0000          .0000       10.000    
     3 'Normalizat'    .46458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   9302.103     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6454        .27890        .35096E-02    .10789E-04
   2  Index1        2.2700        .12887        .64703E-01   -.37789E-04
   3  Normalizat    .46429        .24220        .12157        .78607E-04
   4  Prefactor     1.0921        .13663        .37899E-01    .13035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64541
  Index1     = 2.27005
  Normalizat = 0.464287
  Prefactor  = 1.0921
 **********
 **   18 **HESSE 
 **********

 FCN=   9302.103     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6454        .28384        .15511E-04   -1.5383    
   2  Index1        2.2700        .13225        .28441E-03   -.57757    
   3  Normalizat    .46429        .24550        .53918E-03   -1.1410    
   4  Prefactor     1.0921        .13911        .20737E-03   -.89719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06182e-13
Minuit parameter uncertainties:
  1  0.283842
  2  0.132275
  3  0.246072
  4  0.139158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578269': 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) = 9302.10313747
delta logL = 1.90335926863

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.645e+00  2.838e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.270e+00  1.323e-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:  1.092e+00  1.392e-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:  4.643e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 290.45
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.27 +/- 0.13
Photon Flux (Free Index): 9.96e-07 +/- 1.15e-07
Energy Flux (Free Index): 2.59e-04 +/- 2.98e-05

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/578269/cmap_HighResolution_481420801_481680001_4FGL_J2253.9+1609_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.97e-07', energy_flux2='2.59e-04', photon_flux_error='9.63e-08', dlogl='1.90e+00', energy_flux='2.88e-04', photon_flux2='9.96e-07', job_status='DONE', time_completed='2021-09-29 02:13:32.682393', photon_index_error2='0.13', photon_index2='2.27', ts='292.56', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='0.56', time_epoch_completed='1632906812.68', return_code='0', job_id='578269', GAL2='1.09', EG2='0.46', return_code2='0', energy_flux_error='3.09e-05', photon_flux_error2='1.15e-07', ts2='290.45', photon_index='2.02' WHERE bin_id='934' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:13:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 578269: <4FGL_J2253.9+1609_daily_bin934> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin934 343.496 16.1506 481420801 481680001 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 :                                   774.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             343.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

