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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1149
RA = 338.841, Dec = -48.6015
tmin = 537148801, tmax = 537408001
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='384846', job_status='RUN', time_executed='2021-09-28 16:01:36.783779', time_epoch_executed='1632870096.78' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384846/ft1_4FGL_J2235.3-4836_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384846/ft1_4FGL_J2235.3-4836_daily_bin1149.fits outfile=/scratch/kocevski/384846/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1149.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=537148801.0 tmax=537408001.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/384846/ltcube_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.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/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits
.....................!
real 12.12
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/384846/ltcube_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.fits outfile=/scratch/kocevski/384846/expmap_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.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/384846/ltcube_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.fits
.....................!
real 195.44
user 189.56
sys 5.40

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/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits scfile=/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits outfile=/scratch/kocevski/384846/cmap_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits scfile=/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits outfile=/scratch/kocevski/384846/cmap_HighResolution_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.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/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/384846/ft2_4FGL_J2235.3-4836_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384846/Model_4FGL_J2235.3-4836_daily_bin1149.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/384846/ft1_filtered_4FGL_J2235.3-4836_daily_bin1149.fits.....................!
real 41.67
user 40.33
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2358       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4765       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9831       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2209       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      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.755       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.386       1.0000         .10000E-03   10000.    
    26 'norm      '    .29371       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4034       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86558       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=   5319.949     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3854 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.219        16.500       -.19433E-06   -.95578E-05
   2  Prefactor     1.4423        76.262       -.30412E-06   -.21951E-04
   3  Prefactor     6.2356        5.1459        .14817E-05   -.33832E-03
   4  norm          5.4765        5.7018        .36146E-07   -.13976E-04
   5  Prefactor     .10000E-03    15.061       -.10723E-05** at limit **
   6  Prefactor     .10000E-03    2.8886       -.16691E-06** at limit **
   7  Prefactor     4.8800        3.6059       -.99450E-07   -.98666E-04
   8  Prefactor     .10000E-03    36.897        .25989E-05** at limit **
   9  norm          4.1993        4.2242       -.70747E-07    .19891E-04
  10  Prefactor     7.9823        5.9196        .68463E-07   -.46919E-04
  11  Prefactor     46.899        46.821        .16790E-07   -.29600E-05
  12  Prefactor     .10000E-03    2.8015        .34662E-07** at limit **
  13  Prefactor     15.225        18.848        .54192E-07   -.49494E-05
  14  Prefactor     .10000E-03    22.857       -.28276E-05** at limit **
  15  Prefactor     12.471        13.504       -.31231E-06    .46002E-04
  16  Prefactor     .10000E-03    76.223       -.15177E-05** at limit **
  17  Prefactor     .10000E-03    2.9386        .25115E-06** at limit **
  18  Prefactor     .10000E-03    16.540        .14797E-05** at limit **
  19  Prefactor     1.2265        82.563        .25646E-05   -.19249E-04
  20  norm          .10000E-03    3.8457       -.11733E-07** at limit **
  21  norm          .10000E-03    3.0268       -.15502E-06** at limit **
  22  norm          .10000E-03    3.4150       -.66194E-07** at limit **
  23  Prefactor     .10000E-03    6.0344       -.18956E-06** at limit **
  24  Prefactor     50.744        50.307       -.11161E-05   -.60987E-04
  25  Prefactor     10.400        15.579       -.31695E-06   -.39029E-04
  26  norm          .29253        1.0048        .10156E-06   -.23814E-03
  27  Prefactor     .10000E-03    4.4801        .39046E-08** at limit **
  28  Prefactor     .10000E-03    18.528        .11269E-05** at limit **
  29  Normalizat    1.4035        .22300        .16081E-06   -.46834E-04
  30  Prefactor     .86546        .19192       -.97322E-06    .98298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2189
  Prefactor  = 1.44235
  Prefactor  = 6.23562
  norm       = 5.4765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88001
  Prefactor  = 0.000100001
  norm       = 4.19932
  Prefactor  = 7.98226
  Prefactor  = 46.8994
  Prefactor  = 0.0001
  Prefactor  = 15.2251
  Prefactor  = 0.000100001
  Prefactor  = 12.4713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22652
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7439
  Prefactor  = 10.3999
  norm       = 0.292532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.4035
  Prefactor  = 0.865464
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.949     FROM HESSE     STATUS=OK           586 CALLS     4440 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.219        16.500        .81396E-04   -1.4723    
   2  Prefactor     1.4423        78.267        .34847E-03   -1.5468    
   3  Prefactor     6.2356        5.2714        .73615E-03   -1.5208    
   4  norm          5.4765        5.7015        .17170E-03   -1.5240    
   5  Prefactor     .10000E-03    15.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8981        .12112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8800        3.6072        .11505E-03   -1.5266    
   8  Prefactor     .10000E-03    37.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1993        4.2312        .14682E-03   -1.5298    
  10  Prefactor     7.9823        5.9468        .14191E-03   -1.5143    
  11  Prefactor     46.899        46.816        .58549E-04   -1.4337    
  12  Prefactor     .10000E-03    2.8189        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.225        18.846        .10265E-03   -1.4927    
  14  Prefactor     .10000E-03    23.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.471        13.524        .11341E-03   -1.5002    
  16  Prefactor     .10000E-03    76.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9532        .12223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2265        75.053        .40816E-03   -1.5486    
  20  norm          .10000E-03    3.8461        .13970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0330        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4226        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0449        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.744        50.847        .56292E-04   -1.4282    
  25  Prefactor     10.400        15.286        .12433E-03   -1.5063    
  26  norm          .29253        .97947        .11370E-02   -1.5600    
  27  Prefactor     .10000E-03    4.5503        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4035        .26540        .24374E-03   -.80527    
  30  Prefactor     .86546        .22645        .27116E-03   -.97359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78888e-09
Minuit parameter uncertainties:
  1  16.5029
  2  21.2784
  3  5.27183
  4  5.70206
  5  0.000106075
  6  7.57714e-06
  7  3.60738
  8  0.000396698
  9  4.23148
  10  5.94724
  11  46.853
  12  1.84204e-06
  13  18.8537
  14  0.000314868
  15  13.5275
  16  0.000298689
  17  1.05644e-05
  18  0.000150173
  19  19.2134
  20  2.84016e-08
  21  6.09629e-06
  22  4.91565e-06
  23  8.43208e-06
  24  50.8902
  25  15.2915
  26  0.979524
  27  2.48149e-06
  28  0.000119352
  29  0.265658
  30  0.226699
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.842e-06  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.655e-01  2.267e-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.404e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384846/likelihoodResults_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.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): 102
logL (Free Index) = 5319.95070877
delta logL = -0.00167949978095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5319.94902926
delta logL = 1.43118086271e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4989       1.0000          .0000       10.000    
     3 'Normalizat'    1.4035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86549       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5319.949     FROM MIGRAD    STATUS=FAILED       101 CALLS      252 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.740        .11990E-01** at limit **
   2  Index         2.1372        8.4962        .50000       -.24684E-05
   3  Normalizat    1.4035        .13454E-01    .24374E-03    .81635E-04
   4  Prefactor     .86546        .12160E-01    .27116E-03    .80667E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5319.949     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      424 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.740        .28008E-03** at limit **
   2  Index         2.1372        8.4962        .10982E-04   -.24684E-05
   3  Normalizat    1.4035        .13454E-01    .66151E-07    .81635E-04
   4  Prefactor     .86546        .12160E-01    .63911E-07    .80667E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5319.949     FROM MIGRAD    STATUS=FAILED        73 CALLS      497 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    674.47        .25049E-03** at limit **
   2  Index         2.1373        5.8327        .50000       -.24528E-05
   3  Normalizat    1.4035        .14546        .97494E-05    .81160E-04
   4  Prefactor     .86546        .13143        .21693E-05    .80709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1373
  Normalizat = 1.40351
  Prefactor  = 0.865464
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.949     FROM HESSE     STATUS=OK            27 CALLS      524 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3362        .50098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1373        6.3360        .50000       -.60960    
   3  Normalizat    1.4035        .24187        .19499E-05   -.80527    
   4  Prefactor     .86546        .21782        .43385E-06   -.97359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72979e-09
Minuit parameter uncertainties:
  1  1.7008e-05
  2  100.686
  3  0.242066
  4  0.218039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384846': 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): 1
logL (Free Index) = 5319.94902755
delta logL = 1.7192796804e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.701e-05  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.137e+00  1.007e+02  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.655e-01  2.180e-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.404e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/384846/cmap_HighResolution_537148801_537408001_4FGL_J2235.3-4836_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-28 16:14:46.842327', job_id='384846', GAL2='0.87', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632870886.84', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1149' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 384846: <4FGL_J2235.3-4836_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1149 338.841 -48.6015 537148801 537408001 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 :                                   787.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

