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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1607
RA = 358.931, Dec = -33.8607
tmin = 655862401, tmax = 656121601
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='505621', job_status='RUN', time_executed='2021-12-08 09:48:27.916011', time_epoch_executed='1638985707.92' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505621/ft1_4FGL_J2355.7-3351_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505621/ft1_4FGL_J2355.7-3351_daily_bin1607.fits outfile=/scratch/kocevski/505621/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1607.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=655862401.0 tmax=656121601.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.61
user 4.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.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/505621/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/505621/ltcube_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.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/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits
.....................!
real 14.11
user 13.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/505621/ltcube_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits outfile=/scratch/kocevski/505621/expmap_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.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/505621/ltcube_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits
.....................!
real 192.14
user 186.44
sys 4.33

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

Setting source of interest to:
4FGL J2355.7-3351 @ 358.931 -33.8607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits outfile=/scratch/kocevski/505621/cmap_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.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.931 yref=-33.8607 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits outfile=/scratch/kocevski/505621/cmap_HighResolution_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.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.931 yref=-33.8607 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505621/Model_4FGL_J2355.7-3351_daily_bin1607.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/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits....................!
real 36.42
user 35.13
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits', '/scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits', expMap='/scratch/kocevski/505621/expmap_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits', expCube='/scratch/kocevski/505621/ltcube_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505621/Model_4FGL_J2355.7-3351_daily_bin1607.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2355.7-3351'

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.680e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505621/ft1_filtered_4FGL_J2355.7-3351_daily_bin1607.fits
Spacecraft file(s): /scratch/kocevski/505621/ft2_4FGL_J2355.7-3351_daily_bin1607.fits
Exposure map: /scratch/kocevski/505621/expmap_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits
Exposure cube: /scratch/kocevski/505621/ltcube_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505621/Model_4FGL_J2355.7-3351_daily_bin1607.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) = 3833.97475375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.016       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.692       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48906E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10924E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3833.939     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     1921 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.127        .35778E-06** at limit **
   2  Prefactor     1.8574        5.1973       -.64198E-05   -.14913E-03
   3  Prefactor     6.1450        55.504        .83476E-05    .87864E-04
   4  Prefactor     6.0681        24.042       -.27720E-05    .17054E-04
   5  Prefactor     .10000E-03    21.099        .28082E-05** at limit **
   6  Prefactor     10.819        7.4812        .20937E-05   -.10321E-03
   7  Prefactor     .10000E-03    53.237        .10508E-04** at limit **
   8  Prefactor     10.019        11.055       -.44402E-06   -.22061E-04
   9  norm          .10000E-03    1.8985       -.11104E-06** at limit **
  10  norm          12.692        10.545       -.27850E-06    .19458E-04
  11  Prefactor     .10000E-03    255.24       -.52419E-04** at limit **
  12  Prefactor     .10000E-03    21.247       -.83084E-06** at limit **
  13  norm          .10000E-03    1.9411       -.44529E-06** at limit **
  14  Prefactor     .10000E-03    15.021       -.40642E-06** at limit **
  15  norm          .10000E-03    1.2769       -.20446E-06** at limit **
  16  Prefactor     .10001E-03    98.223        .33266E-05** at limit **
  17  Prefactor     .10000E-03    275.79       -.11466E-05** at limit **
  18  Prefactor     .10000E-03    12.437       -.16737E-05** at limit **
  19  Prefactor     .10000E-03    28.487        .13850E-05** at limit **
  20  Normalizat    1.3607        .22897       -.65208E-06    .54291E-03
  21  Prefactor     .79712        .24568        .81344E-05    .19398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.8574
  Prefactor  = 6.14497
  Prefactor  = 6.06815
  Prefactor  = 0.0001
  Prefactor  = 10.8188
  Prefactor  = 0.000100002
  Prefactor  = 10.0192
  norm       = 0.0001
  norm       = 12.6925
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36072
  Prefactor  = 0.797119
 **********
 **   18 **HESSE 
 **********

 FCN=   3833.939     FROM HESSE     STATUS=OK           313 CALLS     2234 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8574        5.2123        .20646E-03   -1.5435    
   3  Prefactor     6.1450        53.982        .16185E-03   -1.5212    
   4  Prefactor     6.0681        24.105        .16297E-03   -1.5215    
   5  Prefactor     .10000E-03    21.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.819        7.4149        .12183E-03   -1.5050    
   7  Prefactor     .10000E-03    52.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.019        11.075        .12661E-03   -1.5075    
   9  norm          .10000E-03    1.8992        .83321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.692        10.553        .11244E-03   -1.4995    
  11  Prefactor     .10000E-03    245.93        .50786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9545        .84197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2789        .68337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    98.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    279.37        .20703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3607        .27667        .21708E-03   -.81771    
  21  Prefactor     .79712        .28822        .29706E-03   -.99835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31674e-09
Minuit parameter uncertainties:
  1  9.17665e-05
  2  5.21353
  3  36.47
  4  24.144
  5  0.000124907
  6  7.41556
  7  0.000621235
  8  11.0777
  9  2.69478e-06
  10  10.5542
  11  0.00194341
  12  4.81851e-05
  13  9.97982e-06
  14  1.53358e-05
  15  4.38056e-06
  16  0.00221866
  17  0.00127409
  18  0.000115522
  19  0.00015041
  20  0.276973
  21  0.288768
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.155e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.971e-01  2.888e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.361e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505621/likelihoodResults_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3833.93966246
delta logL = -0.000373361141556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3833.93929096
delta logL = -1.85759336091e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5423       1.0000          .0000       10.000    
     3 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   3833.939     FROM MIGRAD    STATUS=FAILED        94 CALLS      255 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10491E-03    100.97        .36285E-02** at limit **
   2  Index         2.4347        6.2097        .50000        .17800E-04
   3  Normalizat    1.3607        .14049E-01    .21708E-03   -.35363E-03
   4  Prefactor     .79713        .15223E-01    .29706E-03   -.13862E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3833.939     FROM SIMPLEX   STATUS=PROGRESS     121 CALLS      376 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    100.97        .61792E-03** at limit **
   2  Index         2.4341        6.2097        .19508E-03    .17800E-04
   3  Normalizat    1.3607        .14049E-01    .16598E-05   -.35363E-03
   4  Prefactor     .79713        .15223E-01    .18857E-05   -.13862E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3833.939     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      431 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.53        .72569E-02** at limit **
   2  Index         2.1456        5.8649        .50000       -.57139E-07
   3  Normalizat    1.3607        .12905E-01    .43416E-04    .45851E-04
   4  Prefactor     .79713        .13984E-01    .11882E-04    .70418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14558
  Normalizat = 1.36071
  Prefactor  = 0.79713
 **********
 **   18 **HESSE 
 **********

 FCN=   3833.939     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    502.68        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1456        5.7486        .50000       -.60758    
   3  Normalizat    1.3607        .29163E-01    .86832E-05   -.81772    
   4  Prefactor     .79713        .31600E-01    .23765E-05   -.99834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32627e-12
Minuit parameter uncertainties:
  1  0.000276349
  2  566.09
  3  0.0291636
  4  0.0316003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505621': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3833.9392878
delta logL = 1.29547879624e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  2.763e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.146e+00  5.661e+02  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.971e-01  3.160e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.361e+00  2.916e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.931 -33.861

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/505621/cmap_HighResolution_655862401_656121601_4FGL_J2355.7-3351_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-12-08 09:56:54.738428', job_id='505621', GAL2='0.80', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1638986214.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1607' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:56:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 505621: <4FGL_J2355.7-3351_daily_bin1607> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1607> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:37 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:47:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:47:53 2021
Terminated at Wed Dec  8 09:56:55 2021
Results reported at Wed Dec  8 09:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1607 358.931 -33.8607 655862401 656121601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2355.7-3351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   505.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            678 sec.

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

