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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1657
RA = 338.841, Dec = -48.6015
tmin = 668822401, tmax = 669081601
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='531875', job_status='RUN', time_executed='2022-03-16 01:21:48.454403', time_epoch_executed='1647418908.45' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531875/ft1_4FGL_J2235.3-4836_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531875/ft1_4FGL_J2235.3-4836_daily_bin1657.fits outfile=/scratch/kocevski/531875/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1657.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=668822401.0 tmax=669081601.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 5.55
user 5.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.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/531875/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/531875/ft1_filtered_4FGL_J2235.3-4836_daily_bin1657.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.55
user 0.34
sys 0.16
Number of photons that survived the gtmktime cut: 417

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531875/ft1_filtered_4FGL_J2235.3-4836_daily_bin1657.fits" evtable="EVENTS" scfile=/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits sctable="SC_DATA" outfile=/scratch/kocevski/531875/ltcube_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.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/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits
.....................!
real 13.11
user 12.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531875/ft1_filtered_4FGL_J2235.3-4836_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/531875/ltcube_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.fits outfile=/scratch/kocevski/531875/expmap_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.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/531875/ltcube_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.fits
.....................!
real 191.53
user 186.39
sys 4.55

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/531875/ft1_filtered_4FGL_J2235.3-4836_daily_bin1657.fits scfile=/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits outfile=/scratch/kocevski/531875/cmap_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531875/ft1_filtered_4FGL_J2235.3-4836_daily_bin1657.fits scfile=/scratch/kocevski/531875/ft2_4FGL_J2235.3-4836_daily_bin1657.fits outfile=/scratch/kocevski/531875/cmap_HighResolution_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30586E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.599       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0794       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.059       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      '    .10989E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4935       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .47603       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9539       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.416       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97837       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=   4554.071     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3964 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0692        .22960E-07** at limit **
   2  Prefactor     .10000E-03    21.092        .13190E-07** at limit **
   3  Prefactor     .10002E-03    2.1453        .12970E-06** at limit **
   4  norm          5.8981        4.9831        .77144E-07   -.20169E-04
   5  Prefactor     9.4032        51.112       -.18173E-05   -.11469E-04
   6  Prefactor     7.1223        9.2990        .28429E-05   -.35914E-03
   7  Prefactor     2.5439        4.2892        .26050E-06   -.75988E-04
   8  Prefactor     .10000E-03    54.077       -.89007E-07** at limit **
   9  norm          4.7615        6.4725        .25619E-07   -.18699E-04
  10  Prefactor     .10000E-03    1.4885        .73741E-07** at limit **
  11  Prefactor     .10000E-03    30.611       -.13162E-07** at limit **
  12  Prefactor     .10000E-03    2.8758        .33063E-06** at limit **
  13  Prefactor     19.059        34.467        .51191E-06    .21422E-05
  14  Prefactor     33.627        40.273       -.41883E-05   -.13812E-04
  15  Prefactor     2.0674        31.665        .83401E-05   -.40047E-04
  16  Prefactor     .10000E-03    47.475        .10622E-06** at limit **
  17  Prefactor     .10000E-03    7.5860        .28732E-07** at limit **
  18  Prefactor     .10000E-03    18.090        .32501E-06** at limit **
  19  Prefactor     22.094        24.629       -.20691E-05   -.15696E-03
  20  norm          .10000E-03    6.7307       -.10121E-06** at limit **
  21  norm          .10000E-03    2.7219       -.65921E-08** at limit **
  22  norm          .10000E-03    4.1968       -.26172E-05** at limit **
  23  Prefactor     8.4956        7.2324       -.28738E-06   -.87808E-04
  24  Prefactor     16.620        53.147       -.11156E-05   -.84221E-04
  25  Prefactor     .10000E-03    8.6762       -.17125E-06** at limit **
  26  norm          .47274        1.2137        .16261E-05    .76984E-03
  27  Prefactor     2.9589        7.7969       -.27092E-06   -.22550E-03
  28  Prefactor     36.423        36.951       -.62293E-06   -.41684E-04
  29  Normalizat    1.1852        .23185       -.30029E-06   -.20182E-03
  30  Prefactor     .97876        .19652       -.13192E-05   -.69645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 5.8981
  Prefactor  = 9.40319
  Prefactor  = 7.12233
  Prefactor  = 2.54391
  Prefactor  = 0.0001
  norm       = 4.76149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0588
  Prefactor  = 33.6272
  Prefactor  = 2.06736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0937
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.49561
  Prefactor  = 16.6197
  Prefactor  = 0.0001
  norm       = 0.472744
  Prefactor  = 2.95894
  Prefactor  = 36.4233
  Normalizat = 1.18523
  Prefactor  = 0.978763
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.071     FROM HESSE     STATUS=OK           592 CALLS     4556 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0709        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    4.8738        .34861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8981        4.9822        .13452E-03   -1.5222    
   5  Prefactor     9.4032        50.987        .13066E-03   -1.5095    
   6  Prefactor     7.1223        9.1283        .75154E-03   -1.5174    
   7  Prefactor     2.5439        4.2709        .17185E-03   -1.5389    
   8  Prefactor     .10000E-03    54.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7615        6.4666        .18438E-03   -1.5272    
  10  Prefactor     .10000E-03    1.4938        .80397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8869        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.059        34.593        .91748E-04   -1.4835    
  14  Prefactor     33.627        39.100        .69131E-04   -1.4548    
  15  Prefactor     2.0674        29.568        .28639E-03   -1.5420    
  16  Prefactor     .10000E-03    47.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.094        24.509        .85281E-04   -1.4768    
  20  norm          .10000E-03    6.7356        .17099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7226        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.0983        .13322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4956        7.2264        .13755E-03   -1.5125    
  24  Prefactor     16.620        53.145        .97900E-04   -1.4892    
  25  Prefactor     .10000E-03    8.6907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .47274        1.1522        .11308E-02   -1.5570    
  27  Prefactor     2.9589        7.7066        .23629E-03   -1.5364    
  28  Prefactor     36.423        36.846        .66413E-04   -1.4500    
  29  Normalizat    1.1852        .28161        .25108E-03   -.87061    
  30  Prefactor     .97876        .23600        .24463E-03   -.93441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35996e-10
Minuit parameter uncertainties:
  1  3.91402e-07
  2  5.77896e-05
  3  0.000663383
  4  4.98258
  5  43.8498
  6  9.13011
  7  4.27146
  8  5.00665e-05
  9  6.4676
  10  6.79356e-07
  11  4.70137e-05
  12  1.60481e-06
  13  34.6297
  14  39.1294
  15  15.6457
  16  0.000110003
  17  2.50327e-05
  18  4.87724e-05
  19  24.5206
  20  3.73296e-06
  21  3.87703e-06
  22  7.98497e-05
  23  7.22714
  24  53.2965
  25  5.04714e-06
  26  1.1523
  27  7.70918
  28  36.8694
  29  0.281974
  30  0.236252
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.605e-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:  9.788e-01  2.363e-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.185e+00  2.820e-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: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531875/likelihoodResults_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.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) = 4554.07219251
delta logL = -0.00164035266789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4554.07055215
delta logL = 1.68001861311e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4974       1.0000          .0000       10.000    
     3 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97879       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=   4554.071     FROM MIGRAD    STATUS=FAILED       103 CALLS      254 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.926        .11257E-01** at limit **
   2  Index         2.0558        5.6118        .50000       -.22968E-05
   3  Normalizat    1.1852        .16051E-01    .25108E-03    .10586E-03
   4  Prefactor     .97876        .14442E-01    .12231E-02    .11653E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4554.071     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      414 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.926        .27583E-03** at limit **
   2  Index         2.0558        5.6118        .13560E-04   -.22968E-05
   3  Normalizat    1.1852        .16051E-01    .12371E-06    .10586E-03
   4  Prefactor     .97876        .14442E-01    .48850E-07    .11653E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4554.071     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      445 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    252.00        .11986E-02** at limit **
   2  Index         2.0561        7.6001        .50000        .27080E-07
   3  Normalizat    1.1852        .52658E-01    .10043E-04    .10573E-03
   4  Prefactor     .97876        .47380E-01    .48926E-04    .11595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05615
  Normalizat = 1.18523
  Prefactor  = 0.978761
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.071     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      474 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    768.68        .23972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0561        8.8770        .50000       -.62954    
   3  Normalizat    1.1852        .18953        .20086E-05   -.87060    
   4  Prefactor     .97876        .17055        .97852E-05   -.93441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07437e-09
Minuit parameter uncertainties:
  1  0.000283048
  2  1513.6
  3  0.189639
  4  0.170646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531875': 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): 102
logL (Free Index) = 4554.07054989
delta logL = 2.27442069445e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.830e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.056e+00  1.514e+03  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.788e-01  1.706e-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.185e+00  1.896e-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/531875/cmap_HighResolution_668822401_669081601_4FGL_J2235.3-4836_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2022-03-16 01:34:02.115921', job_id='531875', GAL2='0.98', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1647419642.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1657' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:34:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 531875: <4FGL_J2235.3-4836_daily_bin1657> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:20:18 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:20:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:20:56 2022
Terminated at Wed Mar 16 01:34:02 2022
Results reported at Wed Mar 16 01:34:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1657 338.841 -48.6015 668822401 669081601 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 :                                   735.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            824 sec.

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

