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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin590
RA = 338.799, Dec = -6.3955
tmin = 392256001, tmax = 392515201
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='375392', job_status='RUN', time_executed='2021-09-28 15:33:29.487609', time_epoch_executed='1632868409.49' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375392/ft1_4FGL_J2235.1-0623_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375392/ft1_4FGL_J2235.1-0623_daily_bin590.fits outfile=/scratch/kocevski/375392/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin590.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=392256001.0 tmax=392515201.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.32
user 3.09
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.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/375392/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin590.fits evtable="EVENTS" outfile="/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/375392/ltcube_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.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/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits
.....................!
real 13.68
user 13.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/375392/ltcube_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits outfile=/scratch/kocevski/375392/expmap_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.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/375392/ltcube_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits
.....................!
real 191.06
user 185.31
sys 5.39

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

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits outfile=/scratch/kocevski/375392/cmap_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.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=338.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits outfile=/scratch/kocevski/375392/cmap_HighResolution_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.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=338.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375392/Model_4FGL_J2235.1-0623_daily_bin590.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/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits.....................!
real 63.08
user 61.70
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits', '/scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits', expMap='/scratch/kocevski/375392/expmap_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits', expCube='/scratch/kocevski/375392/ltcube_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375392/Model_4FGL_J2235.1-0623_daily_bin590.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/375392/ft1_filtered_4FGL_J2235.1-0623_daily_bin590.fits
Spacecraft file(s): /scratch/kocevski/375392/ft2_4FGL_J2235.1-0623_daily_bin590.fits
Exposure map: /scratch/kocevski/375392/expmap_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits
Exposure cube: /scratch/kocevski/375392/ltcube_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375392/Model_4FGL_J2235.1-0623_daily_bin590.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) = 7205.65206245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24532E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7564       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10636E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8089       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.887       1.0000         .10000E-03   10000.    
    10 'norm      '    .11127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5752       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74955       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7205.593     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2096 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    4.3737        .12640E-05** at limit **
   2  Prefactor     .10000E-03    3.8669       -.11626E-07** at limit **
   3  Prefactor     3.7336        8.5396       -.59642E-06   -.16075E-03
   4  Prefactor     4.7553        8.2172       -.38927E-06   -.95990E-04
   5  Prefactor     .10000E-03    5.9381       -.28736E-06** at limit **
   6  Prefactor     .10000E-03    2.7684        .14791E-06** at limit **
   7  Prefactor     .10000E-03    30.476       -.68407E-05** at limit **
   8  Prefactor     2.8068        3.2089       -.21087E-06   -.49290E-03
   9  Prefactor     17.878        32.014       -.10016E-04   -.13145E-04
  10  norm          .10000E-03    1.7067        .45941E-07** at limit **
  11  Prefactor     .10000E-03    57.813       -.11259E-04** at limit **
  12  norm          .10000E-03    .24188        .89254E-07** at limit **
  13  Prefactor     .10000E-03    2.4953       -.82968E-08** at limit **
  14  norm          .10000E-03    .16541       -.11828E-08** at limit **
  15  Prefactor     .10000E-03    5.6342        .41759E-07** at limit **
  16  Prefactor     .10000E-03    2.8270       -.16966E-06** at limit **
  17  Prefactor     .10000E-03    2.2402        .90786E-08** at limit **
  18  norm          22.530        12.018       -.19365E-06   -.16833E-04
  19  Prefactor     .10000E-03    23.793        .24514E-05** at limit **
  20  Prefactor     4.5754        5.4798        .81083E-06   -.42173E-04
  21  Normalizat    .74967        .15418        .44637E-06   -.17599E-03
  22  Prefactor     .96414        .10299        .88167E-07   -.15155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100504
  Prefactor  = 0.0001
  Prefactor  = 3.73361
  Prefactor  = 4.75525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80677
  Prefactor  = 17.878
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5304
  Prefactor  = 0.0001
  Prefactor  = 4.57539
  Normalizat = 0.749673
  Prefactor  = 0.964141
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.593     FROM HESSE     STATUS=OK           350 CALLS     2446 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10050E-03    4.8065        .49918E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9123        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7336        8.5428        .20895E-03   -1.5321    
   4  Prefactor     4.7553        8.2039        .18449E-03   -1.5272    
   5  Prefactor     .10000E-03    19.310        .38973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7759        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8068        3.1964        .15443E-03   -1.5373    
   9  Prefactor     17.878        32.050        .94700E-04   -1.4862    
  10  norm          .10000E-03    2.9986        .21080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .35625        .80690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5047        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .16908        .33682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8403        .13938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2434        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.530        12.005        .84365E-04   -1.4758    
  19  Prefactor     .10000E-03    23.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5754        5.4688        .18819E-03   -1.5280    
  21  Normalizat    .74967        .17703        .27614E-03   -1.0196    
  22  Prefactor     .96414        .12151        .17201E-03   -.93935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.227e-09
Minuit parameter uncertainties:
  1  0.00311246
  2  3.5558e-07
  3  8.54555
  4  8.20586
  5  0.000124336
  6  3.82982e-07
  7  4.43566e-06
  8  3.19658
  9  32.0807
  10  4.22651e-06
  11  1.08051e-05
  12  5.38684e-06
  13  3.1314e-07
  14  7.84436e-08
  15  1.31282e-06
  16  7.80722e-07
  17  3.17172e-07
  18  12.0066
  19  3.71028e-05
  20  5.46939
  21  0.177162
  22  0.121543
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.081e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.641e-01  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.497e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375392/likelihoodResults_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.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) = 7205.59334838
delta logL = -8.25084825919e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7205.59326596
delta logL = -9.25920176087e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0955       1.0000          .0000       10.000    
     3 'Normalizat'    .74967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7205.593     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1049.0        .90712E-02** at limit **
   2  Index         2.1377        8.7890        .50000       -.74043E-05
   3  Normalizat    .74967        .17646E-01    .62425E-01   -.23405E-04
   4  Prefactor     .96414        .12408E-01    .45817E-01   -.48350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.13767
  Normalizat = 0.749673
  Prefactor  = 0.964141
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.593     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6654.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1377        5.0877        .50000       -.60951    
   3  Normalizat    .74967        .34786E-01    .27614E-03   -1.0196    
   4  Prefactor     .96414        .24490E-01    .17201E-03   -.93935    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.02146e-09
Minuit parameter uncertainties:
  1  0.00383371
  2  33.8136
  3  0.0347875
  4  0.0244904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375392': 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) = 7205.59326589
delta logL = -2.01962393476e-08

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.834e-03  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.138e+00  3.381e+01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.641e-01  2.449e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.497e-01  3.479e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

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/375392/cmap_HighResolution_392256001_392515201_4FGL_J2235.1-0623_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-28 15:44:11.158064', job_id='375392', GAL2='0.96', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632869051.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-2.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='590' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:44:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 375392: <4FGL_J2235.1-0623_daily_bin590> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin590> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:30:30 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:30:31 2021
Terminated at Tue Sep 28 15:44:11 2021
Results reported at Tue Sep 28 15:44:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin590 338.799 -6.3955 392256001 392515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

