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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1044
RA = 338.841, Dec = -48.6015
tmin = 509932801, tmax = 510192001
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='383693', job_status='RUN', time_executed='2021-09-28 15:59:08.068611', time_epoch_executed='1632869948.07' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383693/ft1_4FGL_J2235.3-4836_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383693/ft2_4FGL_J2235.3-4836_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383693/ft1_4FGL_J2235.3-4836_daily_bin1044.fits outfile=/scratch/kocevski/383693/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1044.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=509932801.0 tmax=510192001.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.50
user 3.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383693/ft2_4FGL_J2235.3-4836_daily_bin1044.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/383693/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/383693/ft1_filtered_4FGL_J2235.3-4836_daily_bin1044.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.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383693/ft1_filtered_4FGL_J2235.3-4836_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/383693/ft2_4FGL_J2235.3-4836_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/383693/ltcube_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.fits outfile=/scratch/kocevski/383693/expmap_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.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/383693/ltcube_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.fits
.....................!
real 190.08
user 185.32
sys 4.39

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/383693/ft1_filtered_4FGL_J2235.3-4836_daily_bin1044.fits scfile=/scratch/kocevski/383693/ft2_4FGL_J2235.3-4836_daily_bin1044.fits outfile=/scratch/kocevski/383693/cmap_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.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/383693/ft1_filtered_4FGL_J2235.3-4836_daily_bin1044.fits scfile=/scratch/kocevski/383693/ft2_4FGL_J2235.3-4836_daily_bin1044.fits outfile=/scratch/kocevski/383693/cmap_HighResolution_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4107       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0733       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.372       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43750E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.041       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    65.114       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10572       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.2770       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83346       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0212       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=   4948.306     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3973 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.466        13.754       -.76652E-06   -.11876E-03
   2  Prefactor     5.5294        17.744       -.52629E-06   -.19409E-04
   3  Prefactor     3.4097        5.0265        .58344E-06    .55754E-04
   4  norm          4.3423        5.3244        .40996E-06    .62775E-04
   5  Prefactor     .10000E-03    21.400        .17204E-05** at limit **
   6  Prefactor     .10000E-03    5.5903       -.74304E-07** at limit **
   7  Prefactor     3.0730        5.2459        .40107E-06    .94718E-04
   8  Prefactor     .10000E-03    198.93        .58004E-05** at limit **
   9  norm          1.5325        5.1525        .53998E-06   -.39763E-04
  10  Prefactor     .10000E-03    2.6663        .43637E-08** at limit **
  11  Prefactor     .10000E-03    17.107       -.14019E-06** at limit **
  12  Prefactor     5.3951        6.0201       -.45601E-07    .14952E-03
  13  Prefactor     17.372        25.881        .35225E-06    .32355E-04
  14  Prefactor     34.468        29.284        .19394E-05    .36209E-03
  15  Prefactor     .12214E-03    11.918       -.31431E-05** at limit **
  16  Prefactor     .10000E-03    52.986        .28837E-05** at limit **
  17  Prefactor     .10000E-03    3.8771       -.21338E-07** at limit **
  18  Prefactor     .10000E-03    53.058       -.34859E-05** at limit **
  19  Prefactor     22.044        14.620       -.67899E-06   -.20608E-04
  20  norm          .10000E-03    20.643       -.22680E-05** at limit **
  21  norm          .10000E-03    1.9014       -.15772E-07** at limit **
  22  norm          .10000E-03    3.8969        .79478E-07** at limit **
  23  Prefactor     .10000E-03    5.0379       -.45909E-07** at limit **
  24  Prefactor     65.107        46.052       -.85021E-07    .20952E-04
  25  Prefactor     .10505        8.9234       -.13800E-07   -.50154E-04
  26  norm          .10000E-03    .24130       -.30720E-07** at limit **
  27  Prefactor     5.2771        4.2354        .21719E-08    .28932E-04
  28  Prefactor     .10000E-03    18.553        .58873E-06** at limit **
  29  Normalizat    .83337        .20487        .23926E-05    .21942E-03
  30  Prefactor     1.0213        .18080       -.11457E-05    .35180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4656
  Prefactor  = 5.52942
  Prefactor  = 3.40973
  norm       = 4.34231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07304
  Prefactor  = 0.000100001
  norm       = 1.53246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39512
  Prefactor  = 17.372
  Prefactor  = 34.4675
  Prefactor  = 0.000122144
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.0442
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.1068
  Prefactor  = 0.10505
  norm       = 0.0001
  Prefactor  = 5.27708
  Prefactor  = 0.0001
  Normalizat = 0.833374
  Prefactor  = 1.02133
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.306     FROM HESSE     STATUS=OK           598 CALLS     4571 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.466        13.798        .82694E-04   -1.4739    
   2  Prefactor     5.5294        17.792        .17082E-03   -1.5238    
   3  Prefactor     3.4097        4.9934        .18015E-03   -1.5339    
   4  norm          4.3423        5.3115        .17311E-03   -1.5291    
   5  Prefactor     .10000E-03    21.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6323        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0730        5.2149        .19342E-03   -1.5357    
   8  Prefactor     .10000E-03    199.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5325        5.1203        .28477E-03   -1.5460    
  10  Prefactor     .10000E-03    2.7437        .22419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3951        6.0248        .16982E-03   -1.5243    
  13  Prefactor     17.372        25.915        .96094E-04   -1.4874    
  14  Prefactor     34.468        33.670        .68300E-04   -1.4533    
  15  Prefactor     .12214E-03    23.440        .58283E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9021        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.044        14.615        .85318E-04   -1.4769    
  20  norm          .10000E-03    20.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9017        .94729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.9039        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1300        .30701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     65.107        46.133        .49734E-04   -1.4092    
  25  Prefactor     .10505        14.651        .66137E-01   -1.5643    
  26  norm          .10000E-03    .24247        .33705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.2771        4.2358        .12546E-03   -1.5248    
  28  Prefactor     .10000E-03    18.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83337        .23483        .25763E-03   -.98842    
  30  Prefactor     1.0213        .20908        .21918E-03   -.92022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75571e-09
Minuit parameter uncertainties:
  1  13.8001
  2  17.8087
  3  4.99404
  4  5.31208
  5  9.79051e-05
  6  1.73831e-05
  7  5.21571
  8  0.000958348
  9  5.12179
  10  6.76199e-06
  11  1.55668e-05
  12  6.02546
  13  25.932
  14  33.6889
  15  0.0455836
  16  0.000341042
  17  6.37204e-06
  18  0.000346469
  19  14.6171
  20  0.000156437
  21  2.49871e-07
  22  6.2717e-07
  23  2.96816e-06
  24  46.1588
  25  2.48062
  26  1.24225e-09
  27  4.23603
  28  2.77082e-05
  29  0.23512
  30  0.209245
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.395e+00  6.025e+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:  1.021e+00  2.092e-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:  8.334e-01  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 9.74e-06 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/383693/likelihoodResults_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.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) = 4948.29548023
delta logL = 0.0108702047828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4948.29381762
delta logL = 0.0125328113936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1494       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7292       1.0000          .0000       10.000    
     3 'Normalizat'    .82186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0281       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=   4948.294     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1480        6.6418        .77422E-03   -.92377E-04
   2  Index         2.7289        1.4705        .10137E-01   -.97741E-05
   3  Normalizat    .82210        .22926        .25919E-03   -.36230E-04
   4  Prefactor     1.0280        .20673        .21856E-03   -.14966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.14797
  Index      = 2.72888
  Normalizat = 0.822098
  Prefactor  = 1.02796
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.294     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1480        6.1031        .30969E-04   -1.5254    
   2  Index         2.7289        1.3516        .40547E-03   -.47150    
   3  Normalizat    .82210        .22851        .10368E-04   -.99254    
   4  Prefactor     1.0280        .20631        .43713E-04   -.91803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14665e-11
Minuit parameter uncertainties:
  1  6.10387
  2  1.37325
  3  0.228776
  4  0.206469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383693': 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) = 4948.29381705
delta logL = 0.0125333826409

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.148e+00  6.104e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.729e+00  1.373e+00  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.028e+00  2.065e-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:  8.221e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.73 +/- 1.37
Photon Flux (Free Index): 4.20e-08 +/- 6.33e-08
Energy Flux (Free Index): 9.90e-06 +/- 1.02e-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/383693/cmap_HighResolution_509932801_510192001_4FGL_J2235.3-4836_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='9.90e-06', photon_flux_error='3.79e-08', dlogl='1.25e-02', energy_flux='9.74e-06', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-28 16:11:38.884050', photon_index_error2='1.37', photon_index2='2.73', ts='1.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.02e-05', EG='0.83', time_epoch_completed='1632870698.88', return_code='0', job_id='383693', GAL2='1.03', EG2='0.82', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='6.33e-08', ts2='1.43', photon_index='2.51' WHERE bin_id='1044' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 383693: <4FGL_J2235.3-4836_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1044> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:50 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:55:51 2021
Terminated at Tue Sep 28 16:11:39 2021
Results reported at Tue Sep 28 16:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1044 338.841 -48.6015 509932801 510192001 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 :                                   749.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            949 sec.

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

