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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1381
RA = 343.496, Dec = 16.1506
tmin = 597283201, tmax = 597542401
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='580021', job_status='RUN', time_executed='2021-09-29 02:05:50.896026', time_epoch_executed='1632906350.9' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580021/ft1_4FGL_J2253.9+1609_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580021/ft1_4FGL_J2253.9+1609_daily_bin1381.fits outfile=/scratch/kocevski/580021/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1381.fits ra=343.496 dec=16.1506 rad=12.0 tmin=597283201.0 tmax=597542401.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.51
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.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/580021/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1381.fits evtable="EVENTS" outfile="/scratch/kocevski/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/580021/ltcube_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.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/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits
.....................!
real 11.95
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/580021/ltcube_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.fits outfile=/scratch/kocevski/580021/expmap_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.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/580021/ltcube_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.fits
.....................!
real 190.54
user 184.93
sys 5.27

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/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits outfile=/scratch/kocevski/580021/cmap_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits outfile=/scratch/kocevski/580021/cmap_HighResolution_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/580021/ft2_4FGL_J2253.9+1609_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580021/Model_4FGL_J2253.9+1609_daily_bin1381.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/580021/ft1_filtered_4FGL_J2253.9+1609_daily_bin1381.fits.....................!
real 87.02
user 85.62
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.146       1.0000         .10000E-03   10000.    
     2 'norm      '    10.974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .19441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.906       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42532E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17774E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.6297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5034       1.0000         .10000E-03   10000.    
    22 'norm      '    6.6978       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86748       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2009       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.

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

 FCN=   8120.264     FROM MIGRAD    STATUS=FAILED       945 CALLS     3122 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.144        24.746        .66659E-04    .38271E-04
   2  norm          10.974        6.1434        .12094E-03    .71630E-04
   3  Prefactor     .10000E-03    4.6496        .18142E-02** at limit **
   4  Prefactor     .10000E-03    19.210        .18142E-02** at limit **
   5  Prefactor     .19501        .14297        .28509E-04    .57941E-03
   6  Prefactor     .10000E-03    2.4003        .13627E-02** at limit **
   7  norm          .19605        4.1115        .17310E-02    .42187E-02
   8  Prefactor     .10000E-03    19.106        .18142E-02** at limit **
   9  Prefactor     21.901        13.907        .85579E-04   -.18997E-04
  10  Prefactor     .10011E-03    149.83        .74854E-02** at limit **
  11  Prefactor     .78199        .20058        .18992E-04    .10272E-01
  12  Prefactor     .10000E-03    23.051        .36285E-02** at limit **
  13  Prefactor     57.642        46.551        .52846E-04   -.44703E-04
  14  Prefactor     5.4420        8.7366        .86121E-03    .78199E-03
  15  Prefactor     .10000E-03    7.1698        .18142E-02** at limit **
  16  Prefactor     .10000E-03    10.030        .18142E-02** at limit **
  17  Prefactor     2.9402        7.7802        .11854E-02    .10965E-02
  18  Prefactor     .10000E-03    8.2768        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.3287        .18142E-02** at limit **
  20  norm          6.6312        9.6923        .77925E-03    .20136E-03
  21  Prefactor     3.5065        10.199        .10800E-02    .72906E-03
  22  norm          6.6985        8.2211        .15505E-03    .43995E-06
  23  Normalizat    .86732        .27702        .39262E-03    .26674E-03
  24  Prefactor     1.2008        .14888        .19305E-03    .51184E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8120.264     FROM SIMPLEX   STATUS=UNCHANGED   1150 CALLS     4272 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.144        24.746        .38376E-06   -1.4505    
   2  norm          10.974        6.1434        .39336E-06   -1.5045    
   3  Prefactor     .10000E-03    4.6496        .32165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.210        .33702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19501        .14297        .37305E-06   -1.5620    
   6  Prefactor     .10000E-03    2.4003        .25889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19605        4.1115        .37553E-06   -1.5619    
   8  Prefactor     .10000E-03    19.106        .64772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.901        13.907        .35375E-06   -1.4772    
  10  Prefactor     .10011E-03    149.83        .10405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78199        .20058        .37094E-06   -1.5531    
  12  Prefactor     .10000E-03    23.051        .52244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.642        46.551        .36072E-06   -1.4188    
  14  Prefactor     5.4420        8.7366        .38978E-06   -1.5241    
  15  Prefactor     .10000E-03    7.1698        .21736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.030        .32491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9402        7.7802        .36731E-06   -1.5365    
  18  Prefactor     .10000E-03    8.2768        .19818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3287        .22682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6312        9.6923        .36315E-06   -1.5193    
  21  Prefactor     3.5065        10.199        .36743E-06   -1.5333    
  22  norm          6.6985        8.2211        .36278E-06   -1.5190    
  23  Normalizat    .86732        .27702        .23320E-06   -.97618    
  24  Prefactor     1.2008        .14888        .20611E-06   -.86306    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8120.264     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     4658 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.143        24.745        .13332E-04    .34110E-06
   2  norm          10.974        6.1428        .48376E-05    .23501E-05
   3  Prefactor     .10000E-03    4.6498        .36285E-03** at limit **
   4  Prefactor     .10000E-03    19.220        .36285E-03** at limit **
   5  Prefactor     .19501        .14295        .11404E-05    .50066E-04
   6  Prefactor     .10000E-03    2.4004        .27253E-03** at limit **
   7  norm          .19605        4.0743        .34620E-03    .16816E-03
   8  Prefactor     .10000E-03    19.107        .36285E-03** at limit **
   9  Prefactor     21.901        13.830        .34232E-05    .26569E-05
  10  Prefactor     .10000E-03    154.11        .29941E-03** at limit **
  11  Prefactor     .78198        .20029        .37985E-05    .74345E-03
  12  Prefactor     .10000E-03    23.224        .72569E-03** at limit **
  13  Prefactor     57.642        46.545        .10569E-04    .15059E-05
  14  Prefactor     5.4419        8.7312        .34448E-04    .20461E-04
  15  Prefactor     .10000E-03    7.1739        .36285E-03** at limit **
  16  Prefactor     .10000E-03    10.031        .36285E-03** at limit **
  17  Prefactor     2.9399        7.7680        .47417E-04    .23976E-05
  18  Prefactor     .10000E-03    8.2794        .36285E-03** at limit **
  19  Prefactor     .10000E-03    5.3289        .36285E-03** at limit **
  20  norm          6.6314        9.6511        .31170E-04    .94830E-05
  21  Prefactor     3.5062        10.150        .43201E-04   -.78948E-06
  22  norm          6.6985        8.2210        .62019E-05    .10999E-05
  23  Normalizat    .86733        .27689        .15705E-04    .24468E-04
  24  Prefactor     1.2008        .14890        .38610E-04    .47701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1435
  norm       = 10.9736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.19501
  Prefactor  = 0.0001
  norm       = 0.196047
  Prefactor  = 0.0001
  Prefactor  = 21.9014
  Prefactor  = 0.000100001
  Prefactor  = 0.781982
  Prefactor  = 0.0001
  Prefactor  = 57.6418
  Prefactor  = 5.44185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.63136
  Prefactor  = 3.50615
  norm       = 6.69847
  Normalizat = 0.867328
  Prefactor  = 1.20084
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.264     FROM HESSE     STATUS=OK           375 CALLS     5033 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.143        24.748        .26664E-05   -1.4505    
   2  norm          10.974        6.1457        .96752E-06   -1.5045    
   3  Prefactor     .10000E-03    4.6498        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.220        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19501        .14295        .37240E-06   -1.5620    
   6  Prefactor     .10000E-03    2.4004        .54506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19605        4.0638        .69239E-04   -1.5619    
   8  Prefactor     .10000E-03    19.107        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.901        13.823        .68464E-06   -1.4772    
  10  Prefactor     .10000E-03    154.12        .59883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78198        .20028        .75969E-06   -1.5531    
  12  Prefactor     .10000E-03    23.231        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.642        46.540        .21139E-05   -1.4188    
  14  Prefactor     5.4419        8.7352        .13779E-05   -1.5241    
  15  Prefactor     .10000E-03    7.1740        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.031        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9399        7.7715        .18967E-05   -1.5365    
  18  Prefactor     .10000E-03    8.2795        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3289        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6314        9.6473        .12468E-05   -1.5193    
  21  Prefactor     3.5062        10.142        .17280E-05   -1.5333    
  22  norm          6.6985        8.2252        .12404E-05   -1.5190    
  23  Normalizat    .86733        .27723        .31410E-05   -.97618    
  24  Prefactor     1.2008        .14897        .77220E-05   -.86306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56116e-12
Minuit parameter uncertainties:
  1  24.7552
  2  6.14602
  3  3.33707e-07
  4  4.30459e-06
  5  0.142951
  6  4.57233e-08
  7  1.78484
  8  1.69928e-06
  9  13.8249
  10  0.000621445
  11  0.200285
  12  7.11153e-06
  13  46.5691
  14  8.73729
  15  8.45006e-07
  16  1.64441e-07
  17  7.77417
  18  5.11184e-07
  19  1.86728e-06
  20  9.64955
  21  10.1471
  22  8.22656
  23  0.27769
  24  0.149026
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.820e-01  2.003e-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.201e+00  1.490e-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.673e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.45
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.85e-07 +/- 7.30e-08
Energy Flux (Fixed Index): 9.16e-05 +/- 2.35e-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) = 8119.53511015
delta logL = 0.728696403044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8119.53494392
delta logL = 0.728862635339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90752       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3443       1.0000          .0000       10.000    
     3 'Normalizat'    .79490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2283       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=   8119.535     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90768        .21725        .43385E-02    .42383E-03
   2  Index1        2.3442        .25727        .12306       -.63198E-04
   3  Normalizat    .79468        .23566        .92073E-01    .36319E-04
   4  Prefactor     1.2284        .13262        .33993E-01   -.41911E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.907682
  Index1     = 2.3442
  Normalizat = 0.794683
  Prefactor  = 1.22843
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.535     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90768        .22495        .19230E-04   -1.5517    
   2  Index1        2.3442        .27561        .52889E-02   -.55997    
   3  Normalizat    .79468        .26685        .40787E-03   -1.0027    
   4  Prefactor     1.2284        .14973        .19107E-03   -.85461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3122e-13
Minuit parameter uncertainties:
  1  0.224947
  2  0.275809
  3  0.267289
  4  0.149784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580021': 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) = 8119.53494325
delta logL = 0.728863299435

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.077e-01  2.249e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.344e+00  2.758e-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.228e+00  1.498e-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:  7.947e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.07
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.34 +/- 0.28
Photon Flux (Free Index): 3.47e-07 +/- 9.33e-08
Energy Flux (Free Index): 8.57e-05 +/- 2.11e-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/580021/cmap_HighResolution_597283201_597542401_4FGL_J2253.9+1609_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.85e-07', energy_flux2='8.57e-05', photon_flux_error='7.30e-08', dlogl='7.29e-01', energy_flux='9.16e-05', photon_flux2='3.47e-07', job_status='DONE', time_completed='2021-09-29 02:19:46.341709', photon_index_error2='0.28', photon_index2='2.34', ts='36.45', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='0.87', time_epoch_completed='1632907186.34', return_code='0', job_id='580021', GAL2='1.23', EG2='0.79', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='9.33e-08', ts2='38.07', photon_index='2.02' WHERE bin_id='1381' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:19:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 580021: <4FGL_J2253.9+1609_daily_bin1381> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:36 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:05:36 2021
Terminated at Wed Sep 29 02:19:47 2021
Results reported at Wed Sep 29 02:19:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1381 343.496 16.1506 597283201 597542401 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 :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

