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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1363
RA = 338.841, Dec = -48.6015
tmin = 592617601, tmax = 592876801
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='386269', job_status='RUN', time_executed='2021-09-28 16:06:30.617517', time_epoch_executed='1632870390.62' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386269/ft1_4FGL_J2235.3-4836_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386269/ft1_4FGL_J2235.3-4836_daily_bin1363.fits outfile=/scratch/kocevski/386269/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1363.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=592617601.0 tmax=592876801.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.49
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386269/ft1_filtered_4FGL_J2235.3-4836_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/386269/ltcube_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.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/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits
.....................!
real 11.99
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386269/ft1_filtered_4FGL_J2235.3-4836_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/386269/ltcube_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.fits outfile=/scratch/kocevski/386269/expmap_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.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/386269/ltcube_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.fits
.....................!
real 190.16
user 185.10
sys 4.52

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/386269/ft1_filtered_4FGL_J2235.3-4836_daily_bin1363.fits scfile=/scratch/kocevski/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits outfile=/scratch/kocevski/386269/cmap_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.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.52
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386269/ft1_filtered_4FGL_J2235.3-4836_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/386269/ft2_4FGL_J2235.3-4836_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386269/Model_4FGL_J2235.3-4836_daily_bin1363.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/386269/ft1_filtered_4FGL_J2235.3-4836_daily_bin1363.fits.....................!
real 42.43
user 40.51
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6064       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5250       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9720       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      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5928       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3805       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3091       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4903       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97666       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81961       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=   5450.821     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3293 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1698        12.097        .99744E-07   -.21242E-03
   2  Prefactor     .10000E-03    13.035        .20176E-05** at limit **
   3  Prefactor     8.6041        5.0257        .11285E-06   -.68028E-03
   4  norm          .10000E-03    2.2632        .15520E-08** at limit **
   5  Prefactor     .10000E-03    91.872       -.19565E-05** at limit **
   6  Prefactor     .10000E-03    5.8302       -.39375E-05** at limit **
   7  Prefactor     1.6391        3.1266       -.99277E-08   -.72629E-04
   8  Prefactor     .10000E-03    30.702        .44484E-05** at limit **
   9  norm          .10000E-03    2.6423       -.34553E-08** at limit **
  10  Prefactor     .10000E-03    4.3937       -.49065E-06** at limit **
  11  Prefactor     .10000E-03    13.080        .20924E-05** at limit **
  12  Prefactor     3.5051        3.9556       -.41350E-06   -.29986E-04
  13  Prefactor     .10000E-03    17.897        .20430E-05** at limit **
  14  Prefactor     .10000E-03    6.8943        .22985E-05** at limit **
  15  Prefactor     .10000E-03    4.1183        .11085E-06** at limit **
  16  Prefactor     .10000E-03    29.601       -.90152E-06** at limit **
  17  Prefactor     1.5255        4.2122       -.14259E-05   -.18863E-03
  18  Prefactor     .10000E-03    10.861       -.33302E-05** at limit **
  19  Prefactor     3.9732        10.966        .46769E-06   -.54862E-03
  20  norm          .10000E-03    5.3318        .27769E-05** at limit **
  21  norm          .10000E-03    1.6894       -.26024E-07** at limit **
  22  norm          .10000E-03    2.4285        .49989E-08** at limit **
  23  Prefactor     .10000E-03    1.7245       -.59099E-07** at limit **
  24  Prefactor     9.5925        33.489       -.51623E-06   -.16884E-05
  25  Prefactor     4.3788        8.8922        .25232E-06   -.65792E-03
  26  norm          1.3094        .98936       -.68422E-07    .45825E-04
  27  Prefactor     3.4908        3.8119        .34389E-06   -.16631E-02
  28  Prefactor     .10000E-03    20.205       -.59669E-05** at limit **
  29  Normalizat    .97663        .16603        .23150E-06    .10162E-03
  30  Prefactor     .81955        .15330       -.97134E-07    .95900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16975
  Prefactor  = 0.0001
  Prefactor  = 8.60409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52554
  Prefactor  = 0.0001
  Prefactor  = 3.9732
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59251
  Prefactor  = 4.37881
  norm       = 1.30938
  Prefactor  = 3.49076
  Prefactor  = 0.0001
  Normalizat = 0.976626
  Prefactor  = 0.819549
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.821     FROM HESSE     STATUS=OK           582 CALLS     3875 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1698        12.211        .66157E-03   -1.5102    
   2  Prefactor     .10000E-03    13.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6041        5.1351        .61340E-03   -1.5121    
   4  norm          .10000E-03    2.2791        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    92.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8803        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6391        3.1146        .17234E-03   -1.5452    
   8  Prefactor     .10000E-03    30.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6500        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5735        .30149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5051        3.9580        .15027E-03   -1.5334    
  13  Prefactor     .10000E-03    18.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1389        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5255        4.2000        .24562E-03   -1.5461    
  18  Prefactor     .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9732        12.329        .10119E-02   -1.5309    
  20  norm          .10000E-03    5.3837        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6897        .93715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4344        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7275        .94619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.5925        33.636        .12939E-03   -1.5088    
  25  Prefactor     4.3788        9.5907        .96218E-03   -1.5289    
  26  norm          1.3094        1.0061        .60242E-04   -1.5479    
  27  Prefactor     3.4908        4.7786        .89208E-03   -1.5334    
  28  Prefactor     .10000E-03    20.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97663        .20239        .22050E-03   -.93818    
  30  Prefactor     .81955        .18339        .22340E-03   -.99012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21781e-09
Minuit parameter uncertainties:
  1  12.2147
  2  2.4606e-05
  3  5.13535
  4  5.6194e-07
  5  1.18865e-05
  6  2.7497e-05
  7  3.11493
  8  0.00010428
  9  2.16958e-08
  10  6.17085e-06
  11  3.14664e-05
  12  3.95827
  13  2.69328e-05
  14  2.4759e-05
  15  3.6048e-07
  16  1.99467e-05
  17  4.20079
  18  4.20748e-05
  19  12.3372
  20  1.69127e-05
  21  9.79037e-08
  22  5.63701e-07
  23  2.39458e-07
  24  33.7024
  25  9.59409
  26  1.00609
  27  4.77912
  28  0.000103426
  29  0.202545
  30  0.183529
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.505e+00  3.958e+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.195e-01  1.835e-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.766e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 6.33e-06 +/- 7.14e-06

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

Saving results to:
/scratch/kocevski/386269/likelihoodResults_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.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) = 5450.52340454
delta logL = 0.297215208268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.51634841
delta logL = 0.304271340514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9698       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8966       1.0000          .0000       10.000    
     3 'Normalizat'    .98944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81136       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=   5450.516     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9710        5.5158        .50610E-02    .37718E-04
   2  Index         1.8966        .68046        .26420       -.29496E-04
   3  Normalizat    .98941        .16169        .46035E-01    .92286E-05
   4  Prefactor     .81140        .15185        .43865E-01    .10665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97099
  Index      = 1.89661
  Normalizat = 0.98941
  Prefactor  = 0.811402
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.516     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9710        4.5317        .15592E-03   -1.5309    
   2  Index         1.8966        .71093        .98174E-02   -.66961    
   3  Normalizat    .98941        .19215        .21918E-03   -.93386    
   4  Prefactor     .81140        .18031        .22433E-03   -.99309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71757e-10
Minuit parameter uncertainties:
  1  4.53209
  2  0.714885
  3  0.192286
  4  0.180444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386269': 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) = 5450.51634835
delta logL = 0.304271403348

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.971e+00  4.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.897e+00  7.149e-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.114e-01  1.804e-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.894e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.90 +/- 0.71
Photon Flux (Free Index): 1.38e-08 +/- 1.90e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.96e-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/386269/cmap_HighResolution_592617601_592876801_4FGL_J2235.3-4836_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='1.25e-05', photon_flux_error='2.49e-08', dlogl='3.04e-01', energy_flux='6.33e-06', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-09-28 16:18:51.450130', photon_index_error2='0.71', photon_index2='1.90', ts='1.49', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='1.96e-05', EG='0.98', time_epoch_completed='1632871131.45', return_code='0', job_id='386269', GAL2='0.81', EG2='0.99', return_code2='0', energy_flux_error='7.14e-06', photon_flux_error2='1.90e-08', ts2='2.10', photon_index='2.51' WHERE bin_id='1363' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:18:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 386269: <4FGL_J2235.3-4836_daily_bin1363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1363 338.841 -48.6015 592617601 592876801 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            814 sec.

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

