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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin630
RA = 338.971, Dec = -36.4605
tmin = 402624001, tmax = 402883201
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='389818', job_status='RUN', time_executed='2021-09-28 16:16:01.431383', time_epoch_executed='1632870961.43' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389818

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389818/ft1_4FGL_J2235.8-3627_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389818/ft1_4FGL_J2235.8-3627_daily_bin630.fits outfile=/scratch/kocevski/389818/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin630.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=402624001.0 tmax=402883201.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.61
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.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/389818/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin630.fits evtable="EVENTS" outfile="/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits" evtable="EVENTS" scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits sctable="SC_DATA" outfile=/scratch/kocevski/389818/ltcube_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.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/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits
.....................!
real 11.85
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/389818/ltcube_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits outfile=/scratch/kocevski/389818/expmap_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.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/389818/ltcube_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits
.....................!
real 191.68
user 185.84
sys 4.88

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

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits outfile=/scratch/kocevski/389818/cmap_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.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.971 yref=-36.4605 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits outfile=/scratch/kocevski/389818/cmap_HighResolution_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.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.971 yref=-36.4605 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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389818/Model_4FGL_J2235.8-3627_daily_bin630.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/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits.....................!
real 51.49
user 50.10
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits', '/scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits', expMap='/scratch/kocevski/389818/expmap_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits', expCube='/scratch/kocevski/389818/ltcube_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/389818/Model_4FGL_J2235.8-3627_daily_bin630.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/389818/ft1_filtered_4FGL_J2235.8-3627_daily_bin630.fits
Spacecraft file(s): /scratch/kocevski/389818/ft2_4FGL_J2235.8-3627_daily_bin630.fits
Exposure map: /scratch/kocevski/389818/expmap_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits
Exposure cube: /scratch/kocevski/389818/ltcube_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/389818/Model_4FGL_J2235.8-3627_daily_bin630.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) = 6652.07313387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84786       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9065       1.0000         .10000E-03   10000.    
     3 'norm      '    95.854       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8130       1.0000         .10000E-03   10000.    
     5 'norm      '    .44034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5154       1.0000         .10000E-03   10000.    
     8 'norm      '    41.295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0429       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47892       1.0000         .10000E-03   10000.    
    19 'norm      '    .62219       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4725       1.0000         .10000E-03   10000.    
    24 'norm      '    12.282       1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.886       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    49.543       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6652.046     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3705 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84661        9.0066        .91569E-05   -.20621E-04
   2  Prefactor     3.9083        5.6756       -.53646E-06   -.17180E-04
   3  norm          95.859        14.891       -.21841E-06    .17986E-04
   4  norm          4.8138        4.2443        .47530E-07    .17750E-04
   5  norm          .44036        .24403        .85979E-08   -.11498E-04
   6  Prefactor     .10000E-03    2.3454       -.16166E-06** at limit **
   7  Prefactor     3.5170        3.4831        .31657E-06    .43967E-04
   8  norm          41.265        30.345        .23851E-05   -.48956E-04
   9  Prefactor     13.940        17.259        .58297E-07    .53181E-05
  10  Prefactor     .10000E-03    10.701       -.17027E-06** at limit **
  11  Prefactor     .10000E-03    22.077       -.72411E-07** at limit **
  12  norm          .10000E-03    .97566        .13478E-05** at limit **
  13  Prefactor     .10000E-03    191.52        .26446E-04** at limit **
  14  Prefactor     27.371        13.417       -.45740E-07    .15852E-04
  15  Prefactor     6.0452        6.2114        .10474E-06    .43646E-04
  16  norm          .10000E-03    1.8812        .34664E-06** at limit **
  17  Prefactor     .10000E-03    5.4382        .66431E-07** at limit **
  18  Prefactor     .60369        5.6310       -.99862E-06   -.99653E-04
  19  norm          .61856        .60543       -.42250E-07   -.66299E-03
  20  Prefactor     .10000E-03    36.146       -.84222E-06** at limit **
  21  Prefactor     .10000E-03    4.1293       -.45848E-07** at limit **
  22  norm          .10000E-03    12.580       -.44457E-06** at limit **
  23  norm          1.4710        9.1423        .20049E-06    .45489E-05
  24  norm          12.283        7.9797        .22775E-07    .14516E-04
  25  Prefactor     35.894        50.201       -.39495E-06   -.13394E-04
  26  Prefactor     .10000E-03    14.012       -.28552E-08** at limit **
  27  norm          49.546        10.933        .39794E-07    .50266E-04
  28  Normalizat    1.0908        .18001       -.92683E-08   -.11650E-03
  29  Prefactor     .69283        .16681       -.22467E-06    .39770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84661
  Prefactor  = 3.90834
  norm       = 95.8593
  norm       = 4.81379
  norm       = 0.440364
  Prefactor  = 0.0001
  Prefactor  = 3.51697
  norm       = 41.2647
  Prefactor  = 13.9402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.3708
  Prefactor  = 6.04519
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.603686
  norm       = 0.618559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.47096
  norm       = 12.2835
  Prefactor  = 35.8939
  Prefactor  = 0.0001
  norm       = 49.546
  Normalizat = 1.09081
  Prefactor  = 0.692833
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.046     FROM HESSE     STATUS=OK           561 CALLS     4266 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84661        9.0753        .22786E-02   -1.5524    
   2  Prefactor     3.9083        5.6790        .20413E-03   -1.5313    
   3  norm          95.859        14.890        .41054E-04   -1.3747    
   4  norm          4.8138        4.2327        .14798E-03   -1.5269    
   5  norm          .44036        .24659        .28641E-04   -1.5575    
   6  Prefactor     .10000E-03    2.3572        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5170        3.4908        .71665E-03   -1.5333    
   8  norm          41.265        30.126        .62379E-04   -1.4422    
   9  Prefactor     13.940        17.261        .10729E-03   -1.4961    
  10  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .97901        .78361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    191.57        .42255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.371        13.476        .76561E-04   -1.4661    
  15  Prefactor     6.0452        6.2144        .16333E-03   -1.5216    
  16  norm          .10000E-03    1.8955        .10905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .60369        40.817        .30775E-02   -1.5553    
  19  norm          .61856        .65342        .51982E-04   -1.5551    
  20  Prefactor     .10000E-03    36.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1355        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4710        8.8253        .35406E-03   -1.5465    
  24  norm          12.283        7.9818        .11430E-03   -1.5007    
  25  Prefactor     35.894        50.297        .66899E-04   -1.4509    
  26  Prefactor     .10000E-03    14.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          49.546        10.800        .56973E-04   -1.4299    
  28  Normalizat    1.0908        .22283        .24316E-03   -.90047    
  29  Prefactor     .69283        .20453        .28607E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50361e-08
Minuit parameter uncertainties:
  1  5.54449
  2  5.67975
  3  14.8909
  4  4.23297
  5  0.24659
  6  7.51549e-06
  7  3.49102
  8  30.1372
  9  17.267
  10  1.20162e-05
  11  2.74782e-05
  12  3.23974e-06
  13  0.000969516
  14  13.4775
  15  6.21506
  16  1.36172e-06
  17  4.50752e-07
  18  9.93412
  19  0.653424
  20  0.000154601
  21  4.09036e-07
  22  4.3403e-05
  23  7.20735
  24  7.98246
  25  50.3568
  26  4.83166e-06
  27  10.8008
  28  0.223021
  29  0.204751
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.202e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.928e-01  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.091e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389818/likelihoodResults_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.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) = 6652.04648507
delta logL = -0.000442428276983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6652.04604268
delta logL = -3.26353983837e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10871E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1854       1.0000          .0000       10.000    
     3 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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.

 FCN=   6652.046     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      276 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4113        .97195E-01** at limit **
   2  Index         1.5912        5.8136        .50000       -.20992E-05
   3  Normalizat    1.0908        .24159E-02    .24316E-03    .45398E-04
   4  Prefactor     .69283        .23237E-02    .28606E-03    .39980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.59115
  Normalizat = 1.09082
  Prefactor  = 0.692831
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.046     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.25        .51526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5912        6.0050        .50000       -.75018    
   3  Normalizat    1.0908        .11664E-01    .97264E-05   -.90047    
   4  Prefactor     .69283        .11219E-01    .11443E-04   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4928e-08
Minuit parameter uncertainties:
  1  0.00131566
  2  366.019
  3  0.0116644
  4  0.0112194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389818': 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) = 6652.04603976
delta logL = 2.8798749554e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.316e-03  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.591e+00  3.660e+02  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.928e-01  1.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.091e+00  1.166e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/389818/cmap_HighResolution_402624001_402883201_4FGL_J2235.8-3627_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-28 16:30:07.906245', job_id='389818', GAL2='0.69', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632871807.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='630' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:30:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 389818: <4FGL_J2235.8-3627_daily_bin630> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin630> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:15:43 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:15:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:15:44 2021
Terminated at Tue Sep 28 16:30:08 2021
Results reported at Tue Sep 28 16:30:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin630 338.971 -36.4605 402624001 402883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

