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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1472
RA = 338.841, Dec = -48.6015
tmin = 620870401, tmax = 621129601
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='386445', job_status='RUN', time_executed='2021-09-28 16:07:31.297082', time_epoch_executed='1632870451.3' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386445

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386445/ft1_4FGL_J2235.3-4836_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386445/ft1_4FGL_J2235.3-4836_daily_bin1472.fits outfile=/scratch/kocevski/386445/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1472.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=620870401.0 tmax=621129601.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.19
user 3.00
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.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/386445/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.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.66
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/386445/ltcube_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.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/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits
.....................!
real 12.17
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/386445/ltcube_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits outfile=/scratch/kocevski/386445/expmap_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.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/386445/ltcube_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits
.....................!
real 190.47
user 185.27
sys 4.78

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 J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits outfile=/scratch/kocevski/386445/cmap_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.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.841 yref=-48.6015 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits outfile=/scratch/kocevski/386445/cmap_HighResolution_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.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.841 yref=-48.6015 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386445/Model_4FGL_J2235.3-4836_daily_bin1472.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/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits.....................................!
real 16.26
user 14.86
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits', '/scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits', expMap='/scratch/kocevski/386445/expmap_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits', expCube='/scratch/kocevski/386445/ltcube_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386445/Model_4FGL_J2235.3-4836_daily_bin1472.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386445/ft1_filtered_4FGL_J2235.3-4836_daily_bin1472.fits
Spacecraft file(s): /scratch/kocevski/386445/ft2_4FGL_J2235.3-4836_daily_bin1472.fits
Exposure map: /scratch/kocevski/386445/expmap_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits
Exposure cube: /scratch/kocevski/386445/ltcube_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386445/Model_4FGL_J2235.3-4836_daily_bin1472.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) = 413.234721593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    30.043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39995E-03   1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .28057       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75548       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .60855E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   410.4407     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     5265 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.006        .29933E-05** at limit **
   2  Prefactor     .10000E-03    24.370       -.23687E-05** at limit **
   3  Prefactor     .10000E-03    4.5131        .26757E-06** at limit **
   4  norm          30.051        21.982        .28077E-05    .11573E-04
   5  Prefactor     .10000E-03    148.86       -.81933E-04** at limit **
   6  Prefactor     32.494        39.381       -.34789E-06    .14437E-04
   7  Prefactor     5.8110        12.103        .89225E-06   -.13197E-04
   8  Prefactor     .10000E-03    244.42        .16058E-03** at limit **
   9  norm          .10000E-03    12.402       -.23840E-08** at limit **
  10  Prefactor     .10000E-03    18.670       -.22913E-06** at limit **
  11  Prefactor     .10000E-03    422.90       -.10975E-03** at limit **
  12  Prefactor     .10000E-03    24.443       -.23296E-05** at limit **
  13  Prefactor     .10000E-03    458.25       -.17858E-03** at limit **
  14  Prefactor     .10000E-03    71.378        .46465E-05** at limit **
  15  Prefactor     .10000E-03    24.668        .60406E-06** at limit **
  16  Prefactor     .10000E-03    320.39        .82625E-04** at limit **
  17  Prefactor     .10000E-03    484.54       -.22858E-03** at limit **
  18  Prefactor     .10000E-03    272.04        .14603E-03** at limit **
  19  Prefactor     .10000E-03    1415.3       -.16620E-03** at limit **
  20  norm          10000.        9923.1        .53373E-03** at limit **
  21  norm          .10000E-03    6842.3       -.16506E-02** at limit **
  22  norm         10000.0        5312.6        .32931E-02** at limit **
  23  Prefactor    10000.0        6680.3        .19151E-03** at limit **
  24  Prefactor    10000.0        5376.4        .18747E-02** at limit **
  25  Prefactor    10000.0        8163.5        .17970E-02** at limit **
  26  norm          10000.        494.15       -.11083E-05** at limit **
  27  Prefactor    10000.0        8761.8        .19238E-02** at limit **
  28  Prefactor     .10000E-03    8237.5       -.10559E-01** at limit **
  29  Normalizat    .75547        .37530       -.19337E-05    .48895E-04
  30  Prefactor     .21605E-11    .46197       -.34607E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.051
  Prefactor  = 0.0001
  Prefactor  = 32.494
  Prefactor  = 5.81097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Normalizat = 0.755472
  Prefactor  = 2.16049e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   410.4407     FROM HESSE     STATUS=OK           562 CALLS     5827 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.054        .96992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.385        .97762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5207        .42041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.051        22.043        .73098E-04   -1.4611    
   5  Prefactor     .10000E-03    148.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.494        39.550        .70299E-04   -1.4567    
   7  Prefactor     5.8110        12.116        .91059E-04   -1.5226    
   8  Prefactor     .10000E-03    244.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.402        .69732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.670        .85564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    422.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.446        .97912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    458.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.378        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.669        .98364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    320.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    484.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    272.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1415.3        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10000.        9923.1        .20846E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6842.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        5312.6        .18320E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        6680.7        .21455E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        5376.4        .18261E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        8163.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10000.        494.14        .21197E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        8761.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8238.0        .20679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .75547        .33539        .21090E-03   -1.0174    
  30  Prefactor     .21605E-11    .54437        .72173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41074e-11
Minuit parameter uncertainties:
  1  5.96145e-05
  2  5.69838e-06
  3  2.76706e-06
  4  22.0491
  5  6.03318e-05
  6  39.5817
  7  12.1211
  8  6.9321e-06
  9  1.28119e-07
  10  4.38687e-07
  11  3.79299e-06
  12  8.53541e-07
  13  5.73816e-06
  14  1.09104e-06
  15  8.53127e-07
  16  2.11723e-06
  17  3.72521e-06
  18  2.3029e-06
  19  1.47693e-05
  20  7.20368e-05
  21  4.82388e-05
  22  0.00103759
  23  0.000426804
  24  0.00937084
  25  0.00045147
  26  2.37488e-05
  27  0.0315173
  28  0.00840462
  29  0.336306
  30  2.18906e-06
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  8.535e-07  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  2.160e-12  2.189e-06  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  7.555e-01  3.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386445/likelihoodResults_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.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) = 410.440865352
delta logL = -0.000190130488818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 410.440678037
delta logL = -2.81564092575e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3125       1.0000          .0000       10.000    
     3 'Normalizat'    .75549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12310E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   410.4407     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      303 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    345.75        .73137E-02** at limit **
   2  Index         2.0831        8.9505        .50000        .68114E-07
   3  Normalizat    .75547        .45331E-01    .21090E-03    .21978E-04
   4  Prefactor     .32863E-12    .14549E-01    .72171E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08313
  Normalizat = 0.755471
  Prefactor  = 3.28626e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   410.4407     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      332 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1994.9        .10337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0831        6.6887        .50000       -.62288    
   3  Normalizat    .75547        .12060        .42180E-04   -1.0174    
   4  Prefactor     .32863E-12    .10294        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77064e-09
Minuit parameter uncertainties:
  1  0.00121609
  2  3200.12
  3  0.120645
  4  3.6841e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386445': 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) = 410.440675012
delta logL = 2.09821166663e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.216e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.083e+00  3.200e+03  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  3.286e-13  3.684e-07  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  7.555e-01  1.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/386445/cmap_HighResolution_620870401_621129601_4FGL_J2235.3-4836_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-02', job_status='DONE', photon_flux_upper_limit='8.36e-07', time_completed='2021-09-28 16:13:49.325484', job_id='386445', GAL2='0.00', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632870829.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1472' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:13:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 386445: <4FGL_J2235.3-4836_daily_bin1472> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1472> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:35 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:37 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:05:37 2021
Terminated at Tue Sep 28 16:13:50 2021
Results reported at Tue Sep 28 16:13:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1472 338.841 -48.6015 620870401 621129601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   368.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   492 sec.
    Turnaround time :                            495 sec.

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

