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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1217
RA = 338.841, Dec = -48.6015
tmin = 554774401, tmax = 555033601
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='384949', job_status='RUN', time_executed='2021-09-28 16:03:03.304175', time_epoch_executed='1632870183.3' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384949/ft1_4FGL_J2235.3-4836_daily_bin1217.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384949/ft1_4FGL_J2235.3-4836_daily_bin1217.fits outfile=/scratch/kocevski/384949/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1217.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=554774401.0 tmax=555033601.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.73
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.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/384949/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1217.fits evtable="EVENTS" outfile="/scratch/kocevski/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits" evtable="EVENTS" scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits sctable="SC_DATA" outfile=/scratch/kocevski/384949/ltcube_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.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/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits
.....................!
real 11.94
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits sctable="SC_DATA" expcube=/scratch/kocevski/384949/ltcube_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.fits outfile=/scratch/kocevski/384949/expmap_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.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/384949/ltcube_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.fits
.....................!
real 190.46
user 185.18
sys 4.95

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/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits outfile=/scratch/kocevski/384949/cmap_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits outfile=/scratch/kocevski/384949/cmap_HighResolution_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.841 yref=-48.6015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/384949/ft2_4FGL_J2235.3-4836_daily_bin1217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384949/Model_4FGL_J2235.3-4836_daily_bin1217.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/384949/ft1_filtered_4FGL_J2235.3-4836_daily_bin1217.fits.....................!
real 27.73
user 26.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3382       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    123.81       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.692       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.4220       1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.367       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.588       1.0000         .10000E-03   10000.    
    26 'norm      '    2.1286       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.730       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .59519       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1654       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=   2744.147     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3888 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.183       -.19124E-06** at limit **
   2  Prefactor     .10000E-03    13.467       -.32379E-07** at limit **
   3  Prefactor     2.3383        5.6508        .61005E-06   -.30605E-04
   4  norm          4.0521        5.5642        .42311E-07   -.86893E-05
   5  Prefactor     22.385        62.595        .19221E-06   -.27671E-04
   6  Prefactor     .10000E-03    22.444       -.11101E-05** at limit **
   7  Prefactor     5.7592        6.8595        .56234E-06    .18306E-04
   8  Prefactor     123.81        182.28        .80070E-06   -.11751E-04
   9  norm          .10000E-03    4.5533       -.63974E-08** at limit **
  10  Prefactor     5.5686        8.0731        .58460E-05   -.99250E-04
  11  Prefactor     .10000E-03    65.879        .93149E-07** at limit **
  12  Prefactor     .10000E-03    2.8645       -.11583E-06** at limit **
  13  Prefactor     42.546        43.065        .16502E-06   -.27509E-04
  14  Prefactor     39.696        39.009        .43310E-06    .20539E-04
  15  Prefactor     19.557        17.859        .24742E-06    .44870E-06
  16  Prefactor     .10000E-03    75.185       -.55538E-06** at limit **
  17  Prefactor     21.410        15.781       -.50700E-06   -.25186E-04
  18  Prefactor     .10000E-03    33.875       -.20430E-06** at limit **
  19  Prefactor     .10000E-03    10.848        .78074E-07** at limit **
  20  norm          .10000E-03    8.6252        .18424E-06** at limit **
  21  norm          9.4221        9.2938       -.85096E-06    .28470E-04
  22  norm          .10000E-03    4.0235        .43022E-06** at limit **
  23  Prefactor     .10000E-03    4.9658        .56808E-07** at limit **
  24  Prefactor     57.461        85.761        .60805E-05    .27674E-03
  25  Prefactor     13.589        25.550        .99931E-06    .10935E-05
  26  norm          2.1287        1.9525        .12908E-06   -.80709E-05
  27  Prefactor     20.734        13.798        .49971E-06   -.12260E-04
  28  Prefactor     .10000E-03    72.399       -.25281E-07** at limit **
  29  Normalizat    .59479        .31746       -.11121E-04    .49724E-04
  30  Prefactor     1.1657        .25751        .40375E-05   -.12884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33831
  norm       = 4.05214
  Prefactor  = 22.3853
  Prefactor  = 0.0001
  Prefactor  = 5.75921
  Prefactor  = 123.806
  norm       = 0.0001
  Prefactor  = 5.5686
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 42.5456
  Prefactor  = 39.6964
  Prefactor  = 19.5566
  Prefactor  = 0.000100001
  Prefactor  = 21.41
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.42213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.4612
  Prefactor  = 13.5888
  norm       = 2.12866
  Prefactor  = 20.7337
  Prefactor  = 0.0001
  Normalizat = 0.594791
  Prefactor  = 1.16571
 **********
 **   18 **HESSE 
 **********

 FCN=   2744.147     FROM HESSE     STATUS=OK           582 CALLS     4470 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.233        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3383        5.6273        .18430E-03   -1.5402    
   4  norm          4.0521        5.5604        .14045E-03   -1.5305    
   5  Prefactor     22.385        62.586        .84647E-04   -1.4761    
   6  Prefactor     .10000E-03    22.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7592        6.8494        .13807E-03   -1.5228    
   8  Prefactor     123.81        181.59        .36173E-04   -1.3478    
   9  norm          .10000E-03    4.5542        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5686        8.1158        .82251E-03   -1.5236    
  11  Prefactor     .10000E-03    65.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8683        .86590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.546        43.091        .61458E-04   -1.4402    
  14  Prefactor     39.696        39.015        .63622E-04   -1.4447    
  15  Prefactor     19.557        17.853        .90569E-04   -1.4823    
  16  Prefactor     .10000E-03    75.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.410        15.784        .86565E-04   -1.4782    
  18  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.861        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.6270        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.4221        9.3065        .65280E-03   -1.5094    
  22  norm          .10000E-03    4.0224        .10261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9678        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     57.461        86.693        .26483E-03   -1.4190    
  25  Prefactor     13.589        25.526        .10866E-03   -1.4971    
  26  norm          2.1287        1.9461        .64939E-04   -1.5416    
  27  Prefactor     20.734        13.784        .87970E-04   -1.4797    
  28  Prefactor     .10000E-03    72.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .59479        .34427        .32271E-03   -1.0821    
  30  Prefactor     1.1657        .28466        .21579E-03   -.87393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1408e-09
Minuit parameter uncertainties:
  1  2.95267e-05
  2  8.80175e-06
  3  5.62858
  4  5.56114
  5  62.7706
  6  4.5891e-05
  7  6.85032
  8  182.421
  9  6.0226e-07
  10  8.11738
  11  0.000400465
  12  5.96202e-06
  13  43.1221
  14  39.0401
  15  17.8578
  16  0.000477105
  17  15.787
  18  8.71629e-05
  19  3.94329e-05
  20  5.22784e-07
  21  9.30792
  22  2.73119e-06
  23  1.35447e-06
  24  86.8843
  25  25.5469
  26  1.94613
  27  13.7859
  28  9.68773e-05
  29  0.345518
  30  0.285039
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.962e-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:  1.166e+00  2.850e-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:  5.948e-01  3.455e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384949/likelihoodResults_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.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) = 2744.14880004
delta logL = -0.00153424705695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2744.14726571
delta logL = 8.08609001979e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4971       1.0000          .0000       10.000    
     3 'Normalizat'    .59474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1657       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=   2744.147     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      250 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.281        .87368E-02** at limit **
   2  Index         2.0100        5.6219        .50000        .17084E-06
   3  Normalizat    .59479        .19522E-01    .32273E-03   -.15984E-03
   4  Prefactor     1.1657        .17900E-01    .21578E-03   -.23202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00999
  Normalizat = 0.594786
  Prefactor  = 1.16571
 **********
 **   18 **HESSE 
 **********

 FCN=   2744.147     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    238.69        .94391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0100        5.7530        .50000       -.64101    
   3  Normalizat    .59479        .60422E-01    .12909E-04   -1.0821    
   4  Prefactor     1.1657        .55405E-01    .43157E-04   -.87393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33384e-10
Minuit parameter uncertainties:
  1  0.000139829
  2  890.102
  3  0.0604289
  4  0.0554079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384949': 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) = 2744.14726304
delta logL = 2.75010552286e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.398e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.010e+00  8.901e+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:  1.166e+00  5.541e-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:  5.948e-01  6.043e-02  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/384949/cmap_HighResolution_554774401_555033601_4FGL_J2235.3-4836_daily_bin1217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-28 16:12:09.080975', job_id='384949', GAL2='1.17', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632870729.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1217' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 384949: <4FGL_J2235.3-4836_daily_bin1217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1217 338.841 -48.6015 554774401 555033601 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 :                                   544.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

