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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1195
RA = 338.841, Dec = -48.6015
tmin = 549072001, tmax = 549331201
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='384915', job_status='RUN', time_executed='2021-09-28 16:00:55.002824', time_epoch_executed='1632870055.0' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384915/ft1_4FGL_J2235.3-4836_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384915/ft1_4FGL_J2235.3-4836_daily_bin1195.fits outfile=/scratch/kocevski/384915/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1195.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=549072001.0 tmax=549331201.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 2.90
user 2.72
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/384915/ltcube_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.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/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits
.....................!
real 12.31
user 11.92
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/384915/ltcube_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.fits outfile=/scratch/kocevski/384915/expmap_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.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/384915/ltcube_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.fits
.....................!
real 190.57
user 185.25
sys 5.00

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/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits scfile=/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits outfile=/scratch/kocevski/384915/cmap_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.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.57
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits scfile=/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits outfile=/scratch/kocevski/384915/cmap_HighResolution_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/384915/ft2_4FGL_J2235.3-4836_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384915/Model_4FGL_J2235.3-4836_daily_bin1195.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/384915/ft1_filtered_4FGL_J2235.3-4836_daily_bin1195.fits.....................!
real 54.42
user 53.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6745       1.0000         .10000E-03   10000.    
     4 'norm      '    9.3195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87232E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.752       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21804E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.045       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.161       1.0000         .10000E-03   10000.    
    26 'norm      '    .22494E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1542       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82872       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=   7743.894     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     3334 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6007        1.0264        .58208E-08    .93788E-04
   2  Prefactor     .10000E-03    12.488        .87804E-05** at limit **
   3  Prefactor     1.6734        4.1421       -.14518E-05    .22414E-03
   4  norm          9.3196        1.0837        .62476E-06    .25453E-02
   5  Prefactor     11.333        3.5888       -.40918E-05    .33603E-03
   6  Prefactor     12.088        2.6792       -.37402E-05   -.43921E-02
   7  Prefactor     8.8121        4.0884       -.39774E-05   -.60128E-03
   8  Prefactor     .10002E-03    123.18        .11071E-03** at limit **
   9  norm          3.7013        1.6533       -.77294E-06    .18432E-02
  10  Prefactor     5.9329        3.3976       -.65202E-06   -.26857E-03
  11  Prefactor     .10000E-03    11.747       -.99843E-05** at limit **
  12  Prefactor     4.2169        4.0080        .16296E-07    .12942E-03
  13  Prefactor     .10000E-03    3.8470        .12712E-05** at limit **
  14  Prefactor     .10000E-03    7.4161       -.20550E-05** at limit **
  15  Prefactor     .10000E-03    1.8592        .33069E-06** at limit **
  16  Prefactor     .10000E-03    95.132       -.58650E-04** at limit **
  17  Prefactor     .10000E-03    9.7127        .25063E-05** at limit **
  18  Prefactor     .10010E-03    432.84       -.61669E-04** at limit **
  19  Prefactor     .10000E-03    5.2705       -.49905E-06** at limit **
  20  norm          10.748        1.2769        .49484E-06   -.59189E-03
  21  norm          .10000E-03    1.3183       -.89899E-06** at limit **
  22  norm          .10000E-03    4.1641       -.81307E-06** at limit **
  23  Prefactor     .10000E-03    6.4586        .10963E-05** at limit **
  24  Prefactor     12.042        1.2403       -.10641E-05   -.22390E-03
  25  Prefactor     22.178        13.212       -.89681E-05    .90900E-03
  26  norm          .21760E-01    2.8570        .25974E-05   -.67367E-05
  27  Prefactor     .10000E-03    1.7575       -.21127E-06** at limit **
  28  Prefactor     .10000E-03    19.770       -.27554E-05** at limit **
  29  Normalizat    1.1544        .19212        .51868E-05   -.76129E-05
  30  Prefactor     .82857        .17447        .39982E-06    .50028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60072
  Prefactor  = 0.0001
  Prefactor  = 1.67339
  norm       = 9.3196
  Prefactor  = 11.3334
  Prefactor  = 12.0877
  Prefactor  = 8.81215
  Prefactor  = 0.000100019
  norm       = 3.70125
  Prefactor  = 5.93286
  Prefactor  = 0.0001
  Prefactor  = 4.21688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 0.0001
  norm       = 10.7482
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0421
  Prefactor  = 22.1784
  norm       = 0.0217597
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.15439
  Prefactor  = 0.828573
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.894     FROM HESSE     STATUS=OK           668 CALLS     4002 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6007        6.9919        .46912E-02   -1.5279    
   2  Prefactor     .10000E-03    12.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6734        4.2380        .81421E-02   -1.5449    
   4  norm          9.3196        4.3882        .32820E-02   -1.5097    
   5  Prefactor     11.333        36.458        .29803E-02   -1.5035    
   6  Prefactor     12.088        10.504        .28789E-02   -1.5012    
   7  Prefactor     8.8121        4.3738        .33756E-02   -1.5114    
   8  Prefactor     .10002E-03    125.43        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7013        4.7780        .52481E-02   -1.5323    
  10  Prefactor     5.9329        3.3987        .41216E-02   -1.5221    
  11  Prefactor     .10000E-03    11.773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2169        4.0341        .49055E-02   -1.5297    
  13  Prefactor     .10000E-03    3.8438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4632        .58021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10010E-03    20.198        .13772       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.748        9.0718        .30547E-02   -1.5052    
  21  norm          .10000E-03    1.3177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.0472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.042        18.181        .28856E-02   -1.5014    
  25  Prefactor     22.178        13.569        .21271E-02   -1.4766    
  26  norm          .21760E-01    .34308        .26670E-01   -1.5679    
  27  Prefactor     .10000E-03    1.7362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1544        .16154        .52496E-01   -.88024    
  30  Prefactor     .82857        .14718        .44090E-01   -.98684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00548e-08
Minuit parameter uncertainties:
  1  6.99317
  2  9.98605e-05
  3  4.2388
  4  4.38838
  5  36.5295
  6  10.5055
  7  4.37399
  8  0.00306311
  9  4.77848
  10  3.39882
  11  0.000103051
  12  4.03433
  13  1.46496e-05
  14  1.10401e-05
  15  4.71722e-07
  16  0.00124193
  17  3.73648e-05
  18  0.00282258
  19  2.43536e-05
  20  9.07299
  21  1.72509e-06
  22  1.61868e-05
  23  3.1701e-05
  24  18.1897
  25  13.5704
  26  0.172407
  27  1.11406e-06
  28  0.000294105
  29  0.161606
  30  0.147254
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.217e+00  4.034e+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:  8.286e-01  1.473e-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.154e+00  1.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 7.61e-06 +/- 7.28e-06

TS (Fixed Index): 2.10
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384915/likelihoodResults_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.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) = 7743.43500536
delta logL = 0.45859179806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7743.42357366
delta logL = 0.470023491937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9011       1.0000          .0000       10.000    
     3 'Normalizat'    1.1691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81886       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=   7743.424     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8091        5.7458        .45849E-02    .92959E-04
   2  Index         1.8993        .55749        .26391       -.45538E-04
   3  Normalizat    1.1690        .15509        .52206E-01    .10859E-04
   4  Prefactor     .81906        .14474        .43962E-01    .13060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.80907
  Index      = 1.89934
  Normalizat = 1.16902
  Prefactor  = 0.819062
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.424     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8091        4.6846        .17335E-03   -1.5269    
   2  Index         1.8993        .57441        .94399E-02   -.66891    
   3  Normalizat    1.1690        .18438        .23082E-03   -.87566    
   4  Prefactor     .81906        .17183        .25150E-03   -.99029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46024e-12
Minuit parameter uncertainties:
  1  4.68499
  2  0.576487
  3  0.18448
  4  0.171947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384915': 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) = 7743.42356785
delta logL = 0.470029307889

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.809e+00  4.685e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.899e+00  5.765e-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:  8.191e-01  1.719e-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.169e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.90 +/- 0.58
Photon Flux (Free Index): 1.67e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384915/cmap_HighResolution_549072001_549331201_4FGL_J2235.3-4836_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='1.50e-05', photon_flux_error='2.54e-08', dlogl='4.70e-01', energy_flux='7.61e-06', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-28 16:16:26.144594', photon_index_error2='0.58', photon_index2='1.90', ts='2.10', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='1.91e-05', EG='1.15', time_epoch_completed='1632870986.14', return_code='0', job_id='384915', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='1.96e-08', ts2='3.03', photon_index='2.51' WHERE bin_id='1195' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 384915: <4FGL_J2235.3-4836_daily_bin1195> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1195> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:23 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:25 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:00:25 2021
Terminated at Tue Sep 28 16:16:26 2021
Results reported at Tue Sep 28 16:16:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1195 338.841 -48.6015 549072001 549331201 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 :                                   929.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

