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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1569
RA = 358.322, Dec = 31.5927
tmin = 646012801, tmax = 646272001
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='178563', job_status='RUN', time_executed='2021-09-30 08:11:55.733295', time_epoch_executed='1633014715.73' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178563/ft1_4FGL_J2353.2+3135_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178563/ft1_4FGL_J2353.2+3135_daily_bin1569.fits outfile=/scratch/kocevski/178563/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1569.fits ra=358.322 dec=31.5927 rad=12.0 tmin=646012801.0 tmax=646272001.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 4.63
user 4.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.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/178563/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1569.fits evtable="EVENTS" outfile="/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/178563/ltcube_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.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/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/178563/ltcube_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits outfile=/scratch/kocevski/178563/expmap_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.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/178563/ltcube_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits
.....................!
real 190.86
user 185.49
sys 5.05

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

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits outfile=/scratch/kocevski/178563/cmap_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.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=358.322 yref=31.5927 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits outfile=/scratch/kocevski/178563/cmap_HighResolution_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.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=358.322 yref=31.5927 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178563/Model_4FGL_J2353.2+3135_daily_bin1569.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/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits.....................!
real 84.92
user 83.63
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits', '/scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits', expMap='/scratch/kocevski/178563/expmap_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits', expCube='/scratch/kocevski/178563/ltcube_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178563/Model_4FGL_J2353.2+3135_daily_bin1569.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2353.2+3135'

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.403e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/178563/ft1_filtered_4FGL_J2353.2+3135_daily_bin1569.fits
Spacecraft file(s): /scratch/kocevski/178563/ft2_4FGL_J2353.2+3135_daily_bin1569.fits
Exposure map: /scratch/kocevski/178563/expmap_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits
Exposure cube: /scratch/kocevski/178563/ltcube_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178563/Model_4FGL_J2353.2+3135_daily_bin1569.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) = 8093.47124047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84946E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26064E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60866       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85713       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8093.435     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2420 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6037       -.33240E-07** at limit **
   2  norm          .10000E-03    4.7720       -.69991E-08** at limit **
   3  Prefactor     .10000E-03    1.4194       -.11616E-06** at limit **
   4  Prefactor     .10011E-03    7.3967       -.66227E-06** at limit **
   5  Prefactor     .10016E-03    4.5342        .24844E-05** at limit **
   6  Prefactor     .10000E-03    27.879       -.46432E-05** at limit **
   7  Prefactor     .10000E-03    15.439       -.35276E-05** at limit **
   8  norm          .10000E-03    1.0365       -.81467E-07** at limit **
   9  Prefactor     18.429        17.261        .25188E-05    .11326E-04
  10  norm          2.7115        1.5126       -.11669E-06    .13540E-03
  11  Prefactor     .10000E-03    9.2821        .78889E-06** at limit **
  12  Prefactor     .10000E-03    7.3964       -.44692E-06** at limit **
  13  Prefactor     .10000E-03    5.9264       -.18817E-06** at limit **
  14  norm          .10000E-03    2.4900       -.38224E-07** at limit **
  15  Prefactor     .63936        6.7515       -.28827E-05    .89872E-03
  16  norm          2.2135        1.9689       -.10983E-06   -.20740E-03
  17  Prefactor     .10000E-03    6.1275        .50863E-06** at limit **
  18  Prefactor     9.8634        29.758       -.23369E-04   -.23403E-04
  19  Prefactor     47.641        39.134       -.61239E-05   -.60124E-05
  20  Prefactor     .10000E-03    1.8248        .13122E-06** at limit **
  21  Normalizat    .85738        .17845        .31953E-05   -.11756E-04
  22  Prefactor     1.0296        .97899E-01   -.16366E-06    .27794E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 0.000100163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4286
  norm       = 2.71147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.63936
  norm       = 2.21353
  Prefactor  = 0.0001
  Prefactor  = 9.86344
  Prefactor  = 47.6406
  Prefactor  = 0.0001
  Normalizat = 0.857375
  Prefactor  = 1.02962
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.435     FROM HESSE     STATUS=OK           350 CALLS     2770 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6992        .28221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4224        .10467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    9.7860        .76387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10016E-03    20.206        .35544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9885        .17833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.429        17.267        .93293E-04   -1.4849    
  10  norm          2.7115        1.5060        .78201E-04   -1.5379    
  11  Prefactor     .10000E-03    9.3141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5379        .13826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .63936        58.042        .42196E-02   -1.5548    
  16  norm          2.2135        1.9682        .11537E-03   -1.5410    
  17  Prefactor     .10000E-03    6.1377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8634        30.060        .12755E-03   -1.5080    
  19  Prefactor     47.641        39.179        .58096E-04   -1.4326    
  20  Prefactor     .10000E-03    1.8284        .11863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85738        .20473        .31558E-03   -.97974    
  22  Prefactor     1.0296        .11421        .16688E-03   -.91749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84628e-08
Minuit parameter uncertainties:
  1  1.60791e-05
  2  1.12927e-05
  3  8.68382e-07
  4  0.00207545
  5  0.0036285
  6  3.31764e-05
  7  1.71544e-05
  8  1.98145e-05
  9  17.2717
  10  1.50604
  11  1.05682e-05
  12  1.1253e-05
  13  1.83458e-06
  14  1.90035e-05
  15  12.1949
  16  1.96824
  17  1.02218e-05
  18  30.1066
  19  39.1999
  20  1.20961e-05
  21  0.204917
  22  0.114239
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  9.863e+00  3.011e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.030e+00  1.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.574e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178563/likelihoodResults_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8092.95350821
delta logL = 0.481972332173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8092.91515769
delta logL = 0.520322852278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3505       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0579       1.0000          .0000       10.000    
     3 'Normalizat'    .80681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+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=   8092.915     FROM MIGRAD    STATUS=FAILED        84 CALLS      286 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3517        209.90        .17830E-03    .16705E-02
   2  Index         4.0586        6.9426        .78431E-02    .38552E-03
   3  Normalizat    .80683        .19185        .32445E-03    .67095E-03
   4  Prefactor     1.0458        .10889        .16569E-03    .94342E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8092.915     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      373 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3517        209.90        .27117E-03    .16705E-02
   2  Index         4.0586        6.9426        .12279E-02    .38552E-03
   3  Normalizat    .80683        .19185        .15228E-03    .67095E-03
   4  Prefactor     1.0458        .10889        .89437E-04    .94342E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8092.915     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      406 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3519        11.623        .71321E-05    .79382E-04
   2  Index         4.0586        1.5206        .31372E-03    .13770E-04
   3  Normalizat    .80683        .20271        .64889E-04    .85849E-05
   4  Prefactor     1.0458        .11362        .33139E-04   -.22642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35186
  Index      = 4.05858
  Normalizat = 0.806827
  Prefactor  = 1.04581
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.915     FROM HESSE     STATUS=OK            23 CALLS      429 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3519        11.380        .14264E-05   -1.5291    
   2  Index         4.0586        1.4893        .12549E-04   -.18941    
   3  Normalizat    .80683        .20266        .25956E-05   -.99816    
   4  Prefactor     1.0458        .11360        .66277E-05   -.91218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83967e-12
Minuit parameter uncertainties:
  1  11.3852
  2  1.51314
  3  0.202854
  4  0.113624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178563': 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) = 8092.91515636
delta logL = 0.520324187543

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.352e+00  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  4.059e+00  1.513e+00  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.046e+00  1.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.068e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 358.322 31.593
Photon Index (Free Index): 4.06 +/- 1.51
Photon Flux (Free Index): 4.97e-08 +/- 5.17e-08
Energy Flux (Free Index): 7.37e-06 +/- 7.64e-06

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/178563/cmap_HighResolution_646012801_646272001_4FGL_J2353.2+3135_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', comment='SUCCESS', energy_flux2='7.37e-06', dlogl='5.20e-01', photon_flux2='4.97e-08', job_status='DONE', time_completed='2021-09-30 08:24:04.346100', photon_index_error2='1.51', photon_index2='4.06', ts='0.12', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.59e-08', energy_flux_error2='7.64e-06', EG='0.86', time_epoch_completed='1633015444.35', return_code='0', job_id='178563', GAL2='1.05', EG2='0.81', return_code2='0', photon_flux_error2='5.17e-08', ts2='1.25', photon_index='2.63' WHERE bin_id='1569' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:24:04 PDT 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 176203: <4FGL_J2353.2+3135_daily_bin1569> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1569> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:05:29 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:05:30 2021
Terminated at Thu Sep 30 08:21:09 2021
Results reported at Thu Sep 30 08:21:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1569 358.322 31.5927 646012801 646272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 178563: <4FGL_J2353.2+3135_daily_bin1569> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1569> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:11:40 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:11:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:11:42 2021
Terminated at Thu Sep 30 08:24:05 2021
Results reported at Thu Sep 30 08:24:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1569 358.322 31.5927 646012801 646272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            745 sec.

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

