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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1524
RA = 338.841, Dec = -48.6015
tmin = 634348801, tmax = 634608001
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='386525', job_status='RUN', time_executed='2021-09-28 16:06:51.386617', time_epoch_executed='1632870411.39' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386525

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386525/ft1_4FGL_J2235.3-4836_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386525/ft1_4FGL_J2235.3-4836_daily_bin1524.fits outfile=/scratch/kocevski/386525/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1524.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=634348801.0 tmax=634608001.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.83
user 3.54
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386525/ft1_filtered_4FGL_J2235.3-4836_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/386525/ltcube_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.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/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits
.....................!
real 15.50
user 15.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386525/ft1_filtered_4FGL_J2235.3-4836_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/386525/ltcube_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.fits outfile=/scratch/kocevski/386525/expmap_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.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/386525/ltcube_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.fits
.....................!
real 191.40
user 186.50
sys 4.43

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/386525/ft1_filtered_4FGL_J2235.3-4836_daily_bin1524.fits scfile=/scratch/kocevski/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits outfile=/scratch/kocevski/386525/cmap_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.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.56
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386525/ft1_filtered_4FGL_J2235.3-4836_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/386525/ft2_4FGL_J2235.3-4836_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386525/Model_4FGL_J2235.3-4836_daily_bin1524.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/386525/ft1_filtered_4FGL_J2235.3-4836_daily_bin1524.fits....................!
real 27.39
user 26.10
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0260       1.0000         .10000E-03   10000.    
     4 'norm      '    17.126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18189E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70488E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.792       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .50099       1.0000         .10000E-03   10000.    
    14 'Prefactor '    120.33       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.890       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.920       1.0000         .10000E-03   10000.    
    26 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4365       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4756       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52749       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=   2509.620     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4041 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7591        .49655E-07** at limit **
   2  Prefactor     .10000E-03    54.053        .74017E-07** at limit **
   3  Prefactor     3.0239        5.9943        .23289E-06   -.62904E-04
   4  norm          17.125        10.325        .68783E-08   -.16431E-04
   5  Prefactor     .10000E-03    72.911        .18930E-05** at limit **
   6  Prefactor     .10000E-03    19.964        .98580E-05** at limit **
   7  Prefactor     .77976E-01    3.8499        .60196E-06   -.36091E-03
   8  Prefactor     19.041        304.34       -.95373E-05   -.11670E-04
   9  norm          .10000E-03    4.2752        .63052E-07** at limit **
  10  Prefactor     5.2027        5.1908        .25090E-07   -.14060E-04
  11  Prefactor     .10000E-03    27.108        .79530E-07** at limit **
  12  Prefactor     .10000E-03    5.2974        .30707E-08** at limit **
  13  Prefactor     .10478E-03    52.602        .39420E-06** at limit **
  14  Prefactor     120.35        86.974       -.56362E-06   -.71887E-04
  15  Prefactor     17.886        31.398        .17577E-08   -.15208E-04
  16  Prefactor     .10000E-03    86.209       -.24981E-06** at limit **
  17  Prefactor     .10000E-03    25.704       -.77691E-06** at limit **
  18  Prefactor     .10000E-03    101.00       -.84096E-06** at limit **
  19  Prefactor     .10000E-03    7.4785       -.83522E-07** at limit **
  20  norm          .10000E-03    6.2544       -.14932E-07** at limit **
  21  norm          .10000E-03    4.0356       -.12141E-07** at limit **
  22  norm          .10000E-03    3.1342       -.86644E-08** at limit **
  23  Prefactor     .10000E-03    4.2573       -.11511E-06** at limit **
  24  Prefactor     .10000E-03    30.192       -.12036E-06** at limit **
  25  Prefactor     14.917        14.550        .12896E-06    .79259E-04
  26  norm          .10000E-03    .97846       -.64486E-06** at limit **
  27  Prefactor     .10000E-03    6.3939       -.17239E-05** at limit **
  28  Prefactor     9.4392        37.186        .11944E-05    .32380E-04
  29  Normalizat    1.4767        .28417        .10908E-05   -.81680E-04
  30  Prefactor     .52688        .23768       -.16296E-05   -.27474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02387
  norm       = 17.1249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0779756
  Prefactor  = 19.0414
  norm       = 0.0001
  Prefactor  = 5.2027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104784
  Prefactor  = 120.355
  Prefactor  = 17.8859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.917
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43923
  Normalizat = 1.47668
  Prefactor  = 0.526877
 **********
 **   18 **HESSE 
 **********

 FCN=   2509.620     FROM HESSE     STATUS=OK           586 CALLS     4627 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7818        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0239        5.9678        .16442E-03   -1.5360    
   4  norm          17.125        10.325        .96781E-04   -1.4880    
   5  Prefactor     .10000E-03    72.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .77976E-01    49.411        .18510E-02   -1.5652    
   8  Prefactor     19.041        305.27        .92392E-04   -1.4835    
   9  norm          .10000E-03    4.2754        .10117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2027        5.1916        .11019E-03   -1.5252    
  11  Prefactor     .10000E-03    27.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3115        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10478E-03    70.542        .95186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     120.35        87.248        .36686E-04   -1.3509    
  15  Prefactor     17.886        31.281        .94692E-04   -1.4862    
  16  Prefactor     .10000E-03    86.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    101.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4807        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.2547        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0361        .98293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1344        .86622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2689        .10093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.917        14.562        .10369E-03   -1.4935    
  26  norm          .10000E-03    1.4776        .93220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.4594        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.4392        37.330        .13046E-03   -1.5093    
  29  Normalizat    1.4767        .33551        .20958E-03   -.78436    
  30  Prefactor     .52688        .27532        .29359E-03   -1.1076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41618e-09
Minuit parameter uncertainties:
  1  6.53628e-07
  2  3.35155e-05
  3  5.96897
  4  10.326
  5  0.00013448
  6  0.000151527
  7  3.92649
  8  153.419
  9  5.28054e-07
  10  5.19208
  11  5.30839e-05
  12  3.17514e-06
  13  0.0367831
  14  87.341
  15  31.3096
  16  0.000187649
  17  4.72708e-05
  18  4.32957e-05
  19  2.77508e-06
  20  3.48744e-07
  21  5.95277e-07
  22  1.09785e-07
  23  8.96393e-07
  24  1.33159e-05
  25  14.5657
  26  4.07363e-05
  27  9.50673e-06
  28  37.4224
  29  0.336018
  30  0.276024
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.175e-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:  5.269e-01  2.760e-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.477e+00  3.360e-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: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386525/likelihoodResults_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.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) = 2509.62128791
delta logL = -0.000884035948729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2509.62040384
delta logL = 3.37536221195e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4997       1.0000          .0000       10.000    
     3 'Normalizat'    1.4767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2509.620     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.649        .11315E-01** at limit **
   2  Index         2.0765        6.5289        .50000        .22154E-06
   3  Normalizat    1.4767        .26991E-01    .20958E-03   -.10713E-04
   4  Prefactor     .52688        .23849E-01    .29360E-03   -.41239E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.07655
  Normalizat = 1.47669
  Prefactor  = 0.526876
 **********
 **   18 **HESSE 
 **********

 FCN=   2509.620     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    925.40        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0765        8.9611        .50000       -.62450    
   3  Normalizat    1.4767        .11314        .83832E-05   -.78436    
   4  Prefactor     .52688        .99958E-01    .11744E-04   -1.1076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.89151e-08
Minuit parameter uncertainties:
  1  0.0043712
  2  1877
  3  0.113164
  4  0.0999909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386525': 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) = 2509.62040281
delta logL = 1.06497282104e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.371e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.077e+00  1.877e+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:  5.269e-01  9.999e-02  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.477e+00  1.132e-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/386525/cmap_HighResolution_634348801_634608001_4FGL_J2235.3-4836_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-28 16:16:11.222757', job_id='386525', GAL2='0.53', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632870971.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1524' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 386525: <4FGL_J2235.3-4836_daily_bin1524> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1524 338.841 -48.6015 634348801 634608001 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

