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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1428
RA = 338.841, Dec = -48.6015
tmin = 609465601, tmax = 609724801
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='386375', job_status='RUN', time_executed='2021-09-28 16:06:20.943606', time_epoch_executed='1632870380.94' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386375/ft1_4FGL_J2235.3-4836_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386375/ft1_4FGL_J2235.3-4836_daily_bin1428.fits outfile=/scratch/kocevski/386375/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1428.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=609465601.0 tmax=609724801.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.86
user 2.65
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/386375/ltcube_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.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/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits
.....................!
real 15.35
user 14.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/386375/ltcube_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.fits outfile=/scratch/kocevski/386375/expmap_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.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/386375/ltcube_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.fits
.....................!
real 190.78
user 185.20
sys 5.14

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/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits scfile=/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits outfile=/scratch/kocevski/386375/cmap_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits scfile=/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits outfile=/scratch/kocevski/386375/cmap_HighResolution_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/386375/ft2_4FGL_J2235.3-4836_daily_bin1428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386375/Model_4FGL_J2235.3-4836_daily_bin1428.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/386375/ft1_filtered_4FGL_J2235.3-4836_daily_bin1428.fits.....................!
real 54.83
user 53.54
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26113E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1557       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3169       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7177       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-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.8092       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .56715       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4740       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.747       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .51290E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96494       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=   7772.382     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4030 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8520        .17148E-06** at limit **
   2  Prefactor     .10000E-03    7.0968       -.15967E-05** at limit **
   3  Prefactor     .10000E-03    1.7334        .77089E-08** at limit **
   4  norm          16.438        5.8231       -.50876E-07   -.13437E-04
   5  Prefactor     50.213        40.440        .66787E-06   -.73840E-06
   6  Prefactor     6.0196        8.5627       -.29883E-05   -.13493E-03
   7  Prefactor     6.1559        3.7596        .27157E-06   -.97329E-03
   8  Prefactor     .10000E-03    69.656        .42460E-05** at limit **
   9  norm          6.3164        5.4838        .11171E-06    .84556E-06
  10  Prefactor     1.7185        2.6994       -.16500E-07   -.11336E-03
  11  Prefactor     .10000E-03    11.265       -.69924E-05** at limit **
  12  Prefactor     10.763        5.8842        .50897E-06   -.26419E-05
  13  Prefactor     19.944        19.841       -.78700E-06    .38585E-05
  14  Prefactor     23.252        29.830       -.31986E-05   -.81031E-04
  15  Prefactor     .52787        8.8184        .54378E-06    .13063E-03
  16  Prefactor     .10000E-03    38.469       -.65939E-05** at limit **
  17  Prefactor     .10000E-03    2.9502       -.47789E-08** at limit **
  18  Prefactor     .10000E-03    8.6724       -.36085E-05** at limit **
  19  Prefactor     1.8093        3.9042        .10666E-05   -.14493E-02
  20  norm          .10000E-03    5.6018        .47601E-07** at limit **
  21  norm          .56781        5.2376       -.25916E-06   -.29320E-03
  22  norm          3.4741        3.5577       -.39380E-07    .27350E-04
  23  Prefactor     33.754        8.9688        .14692E-06    .68722E-04
  24  Prefactor     .10000E-03    7.6319        .35002E-05** at limit **
  25  Prefactor     .10004E-03    7.3553       -.17549E-07** at limit **
  26  norm          .10000E-03    .32735       -.95377E-07** at limit **
  27  Prefactor     .10000E-03    4.5564       -.86200E-07** at limit **
  28  Prefactor     .10000E-03    10.846        .87421E-05** at limit **
  29  Normalizat    1.0330        .17487        .75493E-06   -.63969E-04
  30  Prefactor     .96485        .15541       -.98495E-07    .50319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4384
  Prefactor  = 50.213
  Prefactor  = 6.01955
  Prefactor  = 6.15594
  Prefactor  = 0.000100001
  norm       = 6.31638
  Prefactor  = 1.71851
  Prefactor  = 0.0001
  Prefactor  = 10.7633
  Prefactor  = 19.9439
  Prefactor  = 23.2518
  Prefactor  = 0.527868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80932
  norm       = 0.0001
  norm       = 0.567814
  norm       = 3.47413
  Prefactor  = 33.7538
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03301
  Prefactor  = 0.964852
 **********
 **   18 **HESSE 
 **********

 FCN=   7772.382     FROM HESSE     STATUS=OK           598 CALLS     4628 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.159        .44022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7515        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.438        5.8096        .98783E-04   -1.4897    
   5  Prefactor     50.213        40.311        .56596E-04   -1.4290    
   6  Prefactor     6.0196        8.5352        .16361E-03   -1.5217    
   7  Prefactor     6.1559        3.8036        .63891E-03   -1.5212    
   8  Prefactor     .10000E-03    69.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3164        5.4845        .15971E-03   -1.5205    
  10  Prefactor     1.7185        2.6815        .17422E-03   -1.5446    
  11  Prefactor     .10000E-03    11.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.763        5.8889        .12214E-03   -1.5052    
  13  Prefactor     19.944        19.846        .89697E-04   -1.4814    
  14  Prefactor     23.252        29.779        .82833E-04   -1.4743    
  15  Prefactor     .52787        51.867        .43185E-02   -1.5563    
  16  Prefactor     .10000E-03    38.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9806        .14785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8093        10.406        .15532E-02   -1.5439    
  20  norm          .10000E-03    5.6180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .56781        5.0438        .38157E-03   -1.5557    
  22  norm          3.4741        3.5633        .16430E-03   -1.5335    
  23  Prefactor     33.754        8.4842        .68980E-04   -1.4545    
  24  Prefactor     .10000E-03    7.6294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    75.229        .43653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .59060        .96189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.7453        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0330        .20518        .25660E-03   -.91933    
  30  Prefactor     .96485        .18241        .24482E-03   -.93910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01429e-08
Minuit parameter uncertainties:
  1  0.000514655
  2  1.00993e-05
  3  2.101e-06
  4  5.80979
  5  40.3327
  6  8.53691
  7  3.80373
  8  0.000382119
  9  5.4849
  10  2.68171
  11  5.97913e-05
  12  5.88925
  13  19.8527
  14  29.7977
  15  10.4733
  16  8.48098e-05
  17  1.66585e-06
  18  2.5992e-05
  19  8.68016
  20  2.49083e-06
  21  3.38473
  22  3.56352
  23  8.48451
  24  2.32798e-05
  25  0.00327015
  26  1.52775e-07
  27  1.79508e-05
  28  6.55006e-05
  29  0.205333
  30  0.182531
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.076e+01  5.889e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.649e-01  1.825e-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.033e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.06e-05

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) = 7772.28260345
delta logL = 0.0994364915823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7772.2791806
delta logL = 0.102859343887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3110       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7600       1.0000          .0000       10.000    
     3 'Normalizat'    1.0173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97498       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=   7772.279     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      228 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3110        82.170        .32835E-02   -.30028E-03
   2  Index         2.7600        3.5433        .18198        .27421E-04
   3  Normalizat    1.0173        .72030E-01    .43782E-01   -.26846E-03
   4  Prefactor     .97497        .59148E-01    .45954E-01   -.34733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31099
  Index      = 2.76
  Normalizat = 1.01727
  Prefactor  = 0.974972
 **********
 **   18 **HESSE 
 **********

 FCN=   7772.279     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3110        6.5458        .13012E-03   -1.5098    
   2  Index         2.7600        .59981        .65328E-02   -.46453    
   3  Normalizat    1.0173        .19993        .25828E-03   -.92454    
   4  Prefactor     .97497        .18275        .24371E-03   -.93569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49182e-10
Minuit parameter uncertainties:
  1  6.54634
  2  0.60162
  3  0.200082
  4  0.182861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386375': 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) = 7772.27918059
delta logL = 0.102859347196

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  9.311e+00  6.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.760e+00  6.016e-01  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.750e-01  1.829e-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.017e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.05
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.76 +/- 0.60
Photon Flux (Free Index): 7.90e-08 +/- 4.53e-08
Energy Flux (Free Index): 1.82e-05 +/- 9.73e-06

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/386375/cmap_HighResolution_609465601_609724801_4FGL_J2235.3-4836_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='1.82e-05', photon_flux_error='3.70e-08', dlogl='1.03e-01', energy_flux='1.94e-05', photon_flux2='7.90e-08', job_status='DONE', time_completed='2021-09-28 16:20:53.037495', photon_index_error2='0.60', photon_index2='2.76', ts='5.82', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='9.73e-06', EG='1.03', time_epoch_completed='1632871253.04', return_code='0', job_id='386375', GAL2='0.97', EG2='1.02', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.53e-08', ts2='6.05', photon_index='2.51' WHERE bin_id='1428' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:20:53 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1428 338.841 -48.6015 609465601 609724801 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 :                                   869.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

