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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1350
RA = 338.841, Dec = -48.6015
tmin = 589248001, tmax = 589507201
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='386248', job_status='RUN', time_executed='2021-09-28 16:05:47.526156', time_epoch_executed='1632870347.53' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386248/ft1_4FGL_J2235.3-4836_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386248/ft1_4FGL_J2235.3-4836_daily_bin1350.fits outfile=/scratch/kocevski/386248/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1350.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=589248001.0 tmax=589507201.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.11
user 2.90
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.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/386248/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.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/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/386248/ltcube_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.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/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits
.....................!
real 12.56
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/386248/ltcube_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.fits outfile=/scratch/kocevski/386248/expmap_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.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/386248/ltcube_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.fits
.....................!
real 190.69
user 185.41
sys 4.92

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/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits outfile=/scratch/kocevski/386248/cmap_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.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/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits outfile=/scratch/kocevski/386248/cmap_HighResolution_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/386248/ft2_4FGL_J2235.3-4836_daily_bin1350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386248/Model_4FGL_J2235.3-4836_daily_bin1350.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/386248/ft1_filtered_4FGL_J2235.3-4836_daily_bin1350.fits................!
real 14.73
user 13.43
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8723       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88269E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21181E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3330.8       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.649       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.763       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.685       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.028       1.0000         .10000E-03   10000.    
    20 'norm      '    1081.1       1.0000         .10000E-03   10000.    
    21 'norm      '    .10869E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.3968       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .18079       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=   192.4616     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4615 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.775        48.484       -.81545E-06   -.25640E-04
   2  Prefactor     12.632        59.124       -.17907E-05   -.87507E-06
   3  Prefactor     6.1015        16.374       -.92781E-06    .21399E-05
   4  norm          .10000E-03    25.958       -.80998E-07** at limit **
   5  Prefactor     .10000E-03    644.26       -.35436E-05** at limit **
   6  Prefactor     .10000E-03    139.56       -.11541E-05** at limit **
   7  Prefactor     .10000E-03    32.457        .19006E-06** at limit **
   8  Prefactor     .10000E-03    2025.3       -.16611E-05** at limit **
   9  norm          3301.9        6592.5       -.10010E-04   -.30106E-06
  10  Prefactor    10000.0        7683.4       -.75041E-05** at limit **
  11  Prefactor    10000.0        7341.5       -.63117E-04** at limit **
  12  Prefactor    10000.0        6403.7        .32353E-05** at limit **
  13  Prefactor    10000.0        5012.3        .59038E-04** at limit **
  14  Prefactor    10000.0        7849.3       -.19566E-04** at limit **
  15  Prefactor    10000.0        1182.0        .12876E-04** at limit **
  16  Prefactor    10000.0        6823.0       -.89106E-04** at limit **
  17  Prefactor    10000.0        9599.5        .28319E-04** at limit **
  18  Prefactor    10000.0        9716.1        .40226E-04** at limit **
  19  Prefactor     12.952        1849.7       -.14989E-04    .20884E-05
  20  norm          1080.9        1012.3       -.61384E-05   -.17157E-05
  21  norm          .10000E-03    196.30       -.25650E-05** at limit **
  22  norm          .10000E-03    132.72       -.96930E-06** at limit **
  23  Prefactor     .10000E-03    71.846       -.59495E-07** at limit **
  24  Prefactor     .10000E-03    1117.4        .70577E-05** at limit **
  25  Prefactor     .10000E-03    105.00        .20316E-05** at limit **
  26  norm          7.3857        11.167        .88235E-06    .35378E-04
  27  Prefactor     .10000E-03    6.5258        .93461E-07** at limit **
  28  Prefactor     .10000E-03    50.393        .14056E-07** at limit **
  29  Normalizat    .10000E-01    .16184        .46001E-05** at limit **
  30  Prefactor     .16875        .31674        .15217E-04   -.15171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.7746
  Prefactor  = 12.6324
  Prefactor  = 6.10153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 3301.88
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 12.9523
  norm       = 1080.9
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 7.3857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.168751
 **********
 **   18 **HESSE 
 **********

 FCN=   192.4616     FROM HESSE     STATUS=OK           574 CALLS     5189 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.775        48.349        .55931E-04   -1.4268    
   2  Prefactor     12.632        59.694        .11249E-03   -1.4997    
   3  Prefactor     6.1015        16.119        .80672E-04   -1.5214    
   4  norm          .10000E-03    26.249        .69517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    659.49        .20842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    146.10        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.865        .77849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2035.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3301.9        6594.0        .42435E-04   -.34652    
  10  Prefactor    10000.0        7664.7        .20809E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7647.7        .43043E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        6406.3        .21235E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5010.4        .43951E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        7873.2        .19744E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        2075.3        .21288E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        7064.0        .22495E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9605.1        .18415E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        9710.9        .18926E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.952        1985.0        .81718E-03   -1.4988    
  20  norm          1080.9        1018.7        .64408E-04   -.90079    
  21  norm          .10000E-03    211.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    139.17        .16042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    73.781        .11673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1115.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    107.74        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.3857        11.278        .43346E-04   -1.5164    
  27  Prefactor     .10000E-03    6.5381        .34711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    51.395        .97388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .16685        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .16875        .31793        .26688E-03   -1.3103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37874e-10
Minuit parameter uncertainties:
  1  48.3861
  2  55.0106
  3  16.1308
  4  1.42889e-07
  5  0.00100183
  6  0.000196552
  7  4.32596e-06
  8  0.00638555
  9  4752.25
  10  0.00619747
  11  0.45447
  12  0.00027402
  13  0.0962286
  14  0.00143832
  15  0.0422383
  16  0.0744084
  17  0.0605076
  18  0.108625
  19  332.626
  20  1037.91
  21  0.000804812
  22  0.000197489
  23  2.50614e-05
  24  0.00460016
  25  0.000273715
  26  11.2815
  27  9.81925e-07
  28  8.50911e-06
  29  1.1692e-06
  30  0.321255
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e+04  2.740e-04  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.688e-01  3.213e-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.000e-02  1.169e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.29e-05 +/- 1.72e-12
Energy Flux (Fixed Index): 1.80e-02 +/- 4.94e-10
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 3.59
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.78e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386248/likelihoodResults_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.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): 0
logL (Free Index) = 147.259729471
delta logL = 45.2018573299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 147.247031504
delta logL = 45.2145552966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   147.2470     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       45 TOTAL
                     EDM=   .29E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .65305E-01    .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   147.2470     FROM HESSE     STATUS=OK             5 CALLS       50 TOTAL
                     EDM=   .29E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .65299E-01    .96030E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85805e-16
Minuit parameter uncertainties:
  1  2.21251e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386248': 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): 0
logL (Free Index) = 147.247031504
delta logL = 45.2145552966

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
352        Index:  1.000e+01  2.213e-09  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.687e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 94.02
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.63e+00 +/- 3.15e-08
Energy Flux (Free Index): 9.64e+02 +/- 3.51e-06

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/386248/cmap_HighResolution_589248001_589507201_4FGL_J2235.3-4836_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.78e+04', comment='SUCCESS', photon_flux='6.29e-05', energy_flux2='9.64e+02', photon_flux_error='1.72e-12', dlogl='4.52e+01', energy_flux='1.80e-02', photon_flux2='8.63e+00', job_status='DONE', time_completed='2021-09-28 16:11:31.313510', photon_index_error2='0.00', photon_index2='10.00', ts='3.59', fit_tolerance='1e-08', GAL='0.17', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.51e-06', EG='0.01', time_epoch_completed='1632870691.31', return_code='0', job_id='386248', GAL2='0.17', EG2='0.01', return_code2='0', energy_flux_error='4.94e-10', photon_flux_error2='3.15e-08', ts2='94.02', photon_index='2.51' WHERE bin_id='1350' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 386248: <4FGL_J2235.3-4836_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1350 338.841 -48.6015 589248001 589507201 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 :                                   342.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   371 sec.
    Turnaround time :                            373 sec.

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

