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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1533
RA = 338.841, Dec = -48.6015
tmin = 636681601, tmax = 636940801
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='386540', job_status='RUN', time_executed='2021-09-28 16:06:15.621067', time_epoch_executed='1632870375.62' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386540

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386540/ft1_4FGL_J2235.3-4836_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386540/ft1_4FGL_J2235.3-4836_daily_bin1533.fits outfile=/scratch/kocevski/386540/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1533.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=636681601.0 tmax=636940801.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 5.17
user 4.92
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/386540/ltcube_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.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/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits
.....................!
real 11.82
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/386540/ltcube_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits outfile=/scratch/kocevski/386540/expmap_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.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/386540/ltcube_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits
.....................!
real 191.56
user 185.76
sys 5.46

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/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits scfile=/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits outfile=/scratch/kocevski/386540/cmap_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits scfile=/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits outfile=/scratch/kocevski/386540/cmap_HighResolution_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386540/Model_4FGL_J2235.3-4836_daily_bin1533.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/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits.....................!
real 42.30
user 40.95
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits', '/scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits', expMap='/scratch/kocevski/386540/expmap_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits', expCube='/scratch/kocevski/386540/ltcube_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386540/Model_4FGL_J2235.3-4836_daily_bin1533.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/386540/ft1_filtered_4FGL_J2235.3-4836_daily_bin1533.fits
Spacecraft file(s): /scratch/kocevski/386540/ft2_4FGL_J2235.3-4836_daily_bin1533.fits
Exposure map: /scratch/kocevski/386540/expmap_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits
Exposure cube: /scratch/kocevski/386540/ltcube_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386540/Model_4FGL_J2235.3-4836_daily_bin1533.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) = 5348.59106712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4116       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29466E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .50770E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4130       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    150.27       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66432E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4049       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.124       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .95478       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3418       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=   5348.547     FROM MIGRAD    STATUS=CONVERGED   1413 CALLS     5216 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4117        13.963        .14732E-03   -.20219E-04
   2  Prefactor     .10000E-03    23.678        .18142E-02** at limit **
   3  Prefactor     .34438E-01    4.2659        .37657E-01    .85394E-03
   4  norm          .10013E-03    32.508        .25668E-02** at limit **
   5  Prefactor     8.4209        29.873        .13821E-03   -.10364E-04
   6  Prefactor     .10000E-03    19.991        .36285E-03** at limit **
   7  Prefactor     2.4640        4.3799        .19287E-03    .11017E-03
   8  Prefactor     150.23        132.45        .16439E-03    .12725E-04
   9  norm          2.5935        6.9443        .25333E-03    .44428E-04
  10  Prefactor     .10000E-03    5.5656        .33095E-03** at limit **
  11  Prefactor     22.366        40.430        .84649E-04    .34785E-04
  12  Prefactor     .10000E-03    15.206        .32143E-02** at limit **
  13  Prefactor     .10000E-03    11.917        .18142E-02** at limit **
  14  Prefactor     5.3691        47.897        .17392E-03    .42816E-04
  15  Prefactor     .10000E-03    11.175        .18142E-02** at limit **
  16  Prefactor     .79764E-03    91.660        .22784    ** at limit **
  17  Prefactor     .10000E-03    5.7200        .17029E-02** at limit **
  18  Prefactor     4.3885        93.990        .19189E-03    .34659E-04
  19  Prefactor     22.109        21.609        .85156E-04    .18971E-03
  20  norm          .10000E-03    4.7368        .15544E-02** at limit **
  21  norm          .95052        17.966        .52019E-03    .71224E-04
  22  norm          .10000E-03    2.5044        .11303E-02** at limit **
  23  Prefactor     .10000E-03    4.6288        .15263E-02** at limit **
  24  Prefactor     .10000E-03    75.026        .18142E-02** at limit **
  25  Prefactor     .10000E-03    4.3615        .14911E-02** at limit **
  26  norm          .10000E-03    1.5315        .12537E-02** at limit **
  27  Prefactor     .10000E-03    1.4353        .85530E-03** at limit **
  28  Prefactor     .10000E-03    28.650        .18142E-02** at limit **
  29  Normalizat    1.0770        .26661        .27651E-03    .17014E-03
  30  Prefactor     1.3418        .24218        .23448E-03    .27854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.41165
  Prefactor  = 0.0001
  Prefactor  = 0.0344377
  norm       = 0.00010013
  Prefactor  = 8.42093
  Prefactor  = 0.0001
  Prefactor  = 2.46403
  Prefactor  = 150.226
  norm       = 2.59351
  Prefactor  = 0.0001
  Prefactor  = 22.3657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.36913
  Prefactor  = 0.0001
  Prefactor  = 0.000797642
  Prefactor  = 0.0001
  Prefactor  = 4.38853
  Prefactor  = 22.1094
  norm       = 0.0001
  norm       = 0.950523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07697
  Prefactor  = 1.34182
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.547     FROM HESSE     STATUS=OK           576 CALLS     5792 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4117        13.963        .58928E-05   -1.5163    
   2  Prefactor     .10000E-03    23.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34438E-01    3.6649        .41973E-01   -1.5671    
   4  norm          .10013E-03    33.120        .51337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4209        29.876        .55284E-05   -1.5128    
   6  Prefactor     .10000E-03    19.992        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4640        4.3792        .77148E-05   -1.5394    
   8  Prefactor     150.23        132.45        .65757E-05   -1.3250    
   9  norm          2.5935        6.9440        .10133E-04   -1.5386    
  10  Prefactor     .10000E-03    5.5658        .66190E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.366        40.445        .33860E-05   -1.4762    
  12  Prefactor     .10000E-03    15.315        .64286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3691        47.881        .69567E-05   -1.5244    
  15  Prefactor     .10000E-03    11.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .79764E-03    92.570        .22580       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7212        .34058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3885        93.945        .76755E-05   -1.5289    
  19  Prefactor     22.109        21.599        .34063E-05   -1.4767    
  20  norm          .10000E-03    4.7368        .31088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .95052        17.934        .20808E-04   -1.5513    
  22  norm          .10000E-03    2.5044        .22605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6297        .30526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3616        .29822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.5357        .25075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.4354        .17106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0770        .26681        .11060E-04   -.90495    
  30  Prefactor     1.3418        .24220        .46895E-04   -.82072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31572e-09
Minuit parameter uncertainties:
  1  13.9694
  2  7.8912e-05
  3  0.709539
  4  0.00415418
  5  29.9293
  6  4.28836e-05
  7  4.37978
  8  132.716
  9  6.9462
  10  1.81614e-05
  11  40.4951
  12  2.05086e-05
  13  2.04751e-05
  14  32.1014
  15  6.13634e-05
  16  0.509041
  17  7.48177e-06
  18  40.6817
  19  21.6068
  20  1.26884e-06
  21  8.26005
  22  1.15187e-06
  23  5.49458e-05
  24  0.000223121
  25  3.1194e-06
  26  4.81227e-05
  27  2.3014e-06
  28  9.09337e-05
  29  0.267141
  30  0.242404
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.051e-05  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:  1.342e+00  2.424e-01  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:  1.077e+00  2.671e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386540/likelihoodResults_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.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) = 5348.54693502
delta logL = -0.000311957221129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5348.54662311
delta logL = -5.09862729814e-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.5130       1.0000          .0000       10.000    
     3 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3418       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.

 FCN=   5348.547     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      236 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .66437        .56480E-01** at limit **
   2  Index         2.5149        5.0984        .50000       -.11612E-05
   3  Normalizat    1.0770        .19354E-02    .62513E-01    .48673E-04
   4  Prefactor     1.3418        .18129E-02    .53034E-01    .30069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5149
  Normalizat = 1.07697
  Prefactor  = 1.34182
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.547     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      271 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    197.88        .32119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5149        6.5320        .50000       -.52016    
   3  Normalizat    1.0770        .19559E-01    .27651E-03   -.90495    
   4  Prefactor     1.3418        .18335E-01    .23448E-03   -.82072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.68753e-08
Minuit parameter uncertainties:
  1  0.000575282
  2  542.456
  3  0.0195591
  4  0.018335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386540': 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) = 5348.54662306
delta logL = 1.14323484013e-09

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.753e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.515e+00  5.425e+02  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:  1.342e+00  1.833e-02  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:  1.077e+00  1.956e-02  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/386540/cmap_HighResolution_636681601_636940801_4FGL_J2235.3-4836_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 16:21:05.066304', job_id='386540', GAL2='1.34', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632871265.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1533' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:21:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 386540: <4FGL_J2235.3-4836_daily_bin1533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1533 338.841 -48.6015 636681601 636940801 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 :                                   883.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

