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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1538
RA = 338.841, Dec = -48.6015
tmin = 637977601, tmax = 638236801
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='386548', job_status='RUN', time_executed='2021-09-28 16:07:07.753033', time_epoch_executed='1632870427.75' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1538'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386548

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386548/ft1_4FGL_J2235.3-4836_daily_bin1538.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386548/ft1_4FGL_J2235.3-4836_daily_bin1538.fits outfile=/scratch/kocevski/386548/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1538.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=637977601.0 tmax=638236801.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.67
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits" evtable="EVENTS" scfile=/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits sctable="SC_DATA" outfile=/scratch/kocevski/386548/ltcube_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.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/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits
.....................!
real 11.98
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits evtable="EVENTS" scfile=/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits sctable="SC_DATA" expcube=/scratch/kocevski/386548/ltcube_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.fits outfile=/scratch/kocevski/386548/expmap_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.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/386548/ltcube_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.fits
.....................!
real 190.74
user 185.22
sys 5.09

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/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits scfile=/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits outfile=/scratch/kocevski/386548/cmap_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits scfile=/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits outfile=/scratch/kocevski/386548/cmap_HighResolution_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.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.61
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits evtable="EVENTS" scfile=/scratch/kocevski/386548/ft2_4FGL_J2235.3-4836_daily_bin1538.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386548/Model_4FGL_J2235.3-4836_daily_bin1538.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/386548/ft1_filtered_4FGL_J2235.3-4836_daily_bin1538.fits.....................!
real 41.83
user 40.22
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.2067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19982       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9069       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.666       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15929       1.0000         .10000E-03   10000.    
    26 'norm      '    .82428       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9921       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94828       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5321.106     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     3278 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4521        .18892E-05** at limit **
   2  Prefactor     15.026        4.1018        .26747E-06   -.34600E-03
   3  Prefactor     .10000E-03    1.1007       -.42786E-07** at limit **
   4  norm          5.2058        4.2204       -.12147E-05   -.14360E-02
   5  Prefactor     22.457        3.4119       -.16573E-05    .48521E-02
   6  Prefactor     28.708        3.2165       -.15757E-05    .22902E-02
   7  Prefactor     5.7506        3.9711        .62466E-06   -.61664E-04
   8  Prefactor     .10339E-03    23.577       -.12455E-04** at limit **
   9  norm          2.7094        1.0481       -.20107E-06   -.17255E-03
  10  Prefactor     .10000E-03    1.6327       -.11981E-06** at limit **
  11  Prefactor     .10153E-03    43.019        .13978E-04** at limit **
  12  Prefactor     6.0260        4.4334       -.62886E-05   -.81299E-02
  13  Prefactor     .10001E-03    11.893        .49031E-05** at limit **
  14  Prefactor     .10000E-03    12.133        .85204E-06** at limit **
  15  Prefactor     .10000E-03    4.3708        .35020E-06** at limit **
  16  Prefactor     .10032E-03    40.140       -.45765E-05** at limit **
  17  Prefactor     .10000E-03    1.6632        .74958E-06** at limit **
  18  Prefactor     12.509        3.5264        .30787E-05   -.48352E-02
  19  Prefactor     .26900E-03    928.24        .90348E-05** at limit **
  20  norm          .10000E-03    5.1686       -.15263E-05** at limit **
  21  norm          1.9150        4.4995       -.44359E-05   -.18557E-03
  22  norm          .10000E-03    2.4906       -.43294E-06** at limit **
  23  Prefactor     .10000E-03    6.6491        .20400E-06** at limit **
  24  Prefactor     16.659        1.3084       -.33307E-06    .81732E-03
  25  Prefactor     .72402E-03    625.26        .10272E-05** at limit **
  26  norm          .82718        1.0482       -.72817E-06    .90288E-04
  27  Prefactor     8.9946        2.4393        .26753E-05    .53701E-02
  28  Prefactor     .10002E-03    12.086       -.13123E-04** at limit **
  29  Normalizat    .94930        .21176       -.42112E-05   -.38458E-05
  30  Prefactor     .91435        .19550        .47159E-05    .16675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0256
  Prefactor  = 0.0001
  norm       = 5.20584
  Prefactor  = 22.4566
  Prefactor  = 28.7082
  Prefactor  = 5.75061
  Prefactor  = 0.000103392
  norm       = 2.70937
  Prefactor  = 0.0001
  Prefactor  = 0.000101526
  Prefactor  = 6.02598
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100321
  Prefactor  = 0.0001
  Prefactor  = 12.5095
  Prefactor  = 0.000269004
  norm       = 0.0001
  norm       = 1.91505
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6593
  Prefactor  = 0.000724021
  norm       = 0.827184
  Prefactor  = 8.99457
  Prefactor  = 0.000100016
  Normalizat = 0.949295
  Prefactor  = 0.91435
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.106     FROM HESSE     STATUS=OK           650 CALLS     3928 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.026        36.061        .25788E-02   -1.4933    
   3  Prefactor     .10000E-03    1.0986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2058        4.2345        .44042E-02   -1.5252    
   5  Prefactor     22.457        54.018        .21118E-02   -1.4760    
   6  Prefactor     28.708        13.231        .18690E-02   -1.4636    
   7  Prefactor     5.7506        4.0402        .41865E-02   -1.5228    
   8  Prefactor     .10339E-03    53.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7094        6.9275        .61864E-02   -1.5379    
  10  Prefactor     .10000E-03    1.6168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10153E-03    60.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0260        6.0489        .40874E-02   -1.5217    
  13  Prefactor     .10001E-03    20.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10032E-03    43.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.509        25.530        .28286E-02   -1.5000    
  19  Prefactor     .26900E-03    12.419        .99768E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.1785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9150        4.5821        .75274E-02   -1.5431    
  22  norm          .10000E-03    2.4903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.659        29.994        .24527E-02   -1.4891    
  25  Prefactor     .72402E-03    10.819        .97902E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .82718        1.2211        .18860E-01   -1.5526    
  27  Prefactor     8.9946        6.1954        .33415E-02   -1.5108    
  28  Prefactor     .10002E-03    20.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94930        .19062        .45516E-01   -.94749    
  30  Prefactor     .91435        .16907        .45194E-01   -.95641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53353e-07
Minuit parameter uncertainties:
  1  3.83548e-06
  2  36.1134
  3  3.90557e-07
  4  4.23477
  5  54.136
  6  13.2327
  7  4.04039
  8  0.0270517
  9  6.92953
  10  2.28511e-08
  11  0.0192642
  12  6.04953
  13  0.00104734
  14  4.46783e-06
  15  8.0826e-06
  16  0.00747147
  17  3.17764e-06
  18  25.5524
  19  0.0916465
  20  1.56882e-05
  21  4.58295
  22  1.45178e-07
  23  3.31009e-05
  24  30.0213
  25  0.164361
  26  1.22118
  27  6.19579
  28  0.00115627
  29  0.190752
  30  0.169165
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.026e+00  6.050e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.144e-01  1.692e-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:  9.493e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.09e-05

TS (Fixed Index): 1.56
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386548/likelihoodResults_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.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) = 5321.09838969
delta logL = 0.00748750785442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5321.09654456
delta logL = 0.00933263574825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3871       1.0000          .0000       10.000    
     3 'Normalizat'    .95404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91114       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=   5321.097     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3762        6.8083        .15895E-03    .40225E-03
   2  Index         2.3871        .89428        .10010E-01    .79334E-04
   3  Normalizat    .95404        .21369        .24324E-03   -.94646E-04
   4  Prefactor     .91114        .19599        .22971E-03   -.11616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37617
  Index      = 2.38712
  Normalizat = 0.954039
  Prefactor  = 0.911139
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.097     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3762        6.6982        .63580E-05   -1.5203    
   2  Index         2.3871        .87946        .40041E-03   -.54987    
   3  Normalizat    .95404        .21383        .97295E-05   -.94586    
   4  Prefactor     .91114        .19610        .91884E-05   -.95753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00818e-10
Minuit parameter uncertainties:
  1  6.69901
  2  0.885819
  3  0.214018
  4  0.196255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386548': 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) = 5321.09654456
delta logL = 0.00933263695879

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.376e+00  6.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.387e+00  8.858e-01  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:  9.111e-01  1.963e-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:  9.540e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.39 +/- 0.89
Photon Flux (Free Index): 3.49e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.32e-05

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/386548/cmap_HighResolution_637977601_638236801_4FGL_J2235.3-4836_daily_bin1538.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.16e-05', photon_flux_error='3.80e-08', dlogl='9.33e-03', energy_flux='1.09e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-09-28 16:19:38.316045', photon_index_error2='0.89', photon_index2='2.39', ts='1.56', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.32e-05', EG='0.95', time_epoch_completed='1632871178.32', return_code='0', job_id='386548', GAL2='0.91', EG2='0.95', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.22e-08', ts2='1.57', photon_index='2.51' WHERE bin_id='1538' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:19:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 386548: <4FGL_J2235.3-4836_daily_bin1538> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1538> 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) <bullet0263>, 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:19:39 2021
Results reported at Tue Sep 28 16:19:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1538 338.841 -48.6015 637977601 638236801 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 :                                   732.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

