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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1575
RA = 338.841, Dec = -48.6015
tmin = 647568001, tmax = 647827201
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='386607', job_status='RUN', time_executed='2021-09-28 16:08:28.780815', time_epoch_executed='1632870508.78' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386607/ft1_4FGL_J2235.3-4836_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386607/ft1_4FGL_J2235.3-4836_daily_bin1575.fits outfile=/scratch/kocevski/386607/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1575.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=647568001.0 tmax=647827201.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.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.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/386607/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1575.fits evtable="EVENTS" outfile="/scratch/kocevski/386607/ft1_filtered_4FGL_J2235.3-4836_daily_bin1575.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/386607/ft1_filtered_4FGL_J2235.3-4836_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/386607/ltcube_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.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/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits
.....................!
real 11.89
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386607/ft1_filtered_4FGL_J2235.3-4836_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/386607/ltcube_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.fits outfile=/scratch/kocevski/386607/expmap_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.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/386607/ltcube_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.fits
.....................!
real 192.75
user 187.33
sys 4.97

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/386607/ft1_filtered_4FGL_J2235.3-4836_daily_bin1575.fits scfile=/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits outfile=/scratch/kocevski/386607/cmap_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386607/ft1_filtered_4FGL_J2235.3-4836_daily_bin1575.fits scfile=/scratch/kocevski/386607/ft2_4FGL_J2235.3-4836_daily_bin1575.fits outfile=/scratch/kocevski/386607/cmap_HighResolution_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.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.59
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2493       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1345       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0904       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.310       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5598       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.610       1.0000         .10000E-03   10000.    
    20 'norm      '    10.904       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3439       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0808       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10775E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90512       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85766       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=   5664.609     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3875 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.061        13.454        .10334E-06   -.25150E-04
   2  Prefactor     .10000E-03    17.223        .11404E-06** at limit **
   3  Prefactor     4.2494        4.5060        .73811E-07   -.16923E-03
   4  norm          5.1346        5.2077        .18653E-06   -.36154E-04
   5  Prefactor     .10000E-03    12.663       -.11485E-06** at limit **
   6  Prefactor     2.0841        6.5248        .87747E-06   -.88993E-04
   7  Prefactor     5.7293        3.5771       -.21774E-06   -.46023E-03
   8  Prefactor     87.316        89.570       -.39190E-06    .17688E-04
   9  norm          .10000E-03    3.6955       -.21998E-07** at limit **
  10  Prefactor     .85383        3.5364        .14670E-05   -.11222E-03
  11  Prefactor     4.6249        32.733       -.31365E-05   -.12383E-03
  12  Prefactor     .10000E-03    1.8417       -.10981E-06** at limit **
  13  Prefactor     .10000E-03    7.5247       -.14786E-06** at limit **
  14  Prefactor     .10000E-03    27.666       -.23758E-05** at limit **
  15  Prefactor     6.5638        9.8168        .35735E-05   -.28709E-03
  16  Prefactor     .10000E-03    55.364       -.11714E-05** at limit **
  17  Prefactor     .10000E-03    2.0771       -.64940E-08** at limit **
  18  Prefactor     44.837        38.182       -.21514E-05   -.29150E-03
  19  Prefactor     27.614        19.422       -.64144E-08   -.67756E-04
  20  norm          10.903        9.5618        .51320E-07    .35220E-05
  21  norm          .10000E-03    1.8200        .26386E-07** at limit **
  22  norm          4.3439        4.7217        .16009E-08   -.39365E-04
  23  Prefactor     4.0801        4.8907        .42071E-06    .14349E-03
  24  Prefactor     .10000E-03    12.978        .25650E-06** at limit **
  25  Prefactor     .10000E-03    6.9703        .45455E-06** at limit **
  26  norm          .10000E-03    .40171        .22841E-06** at limit **
  27  Prefactor     .10000E-03    2.5561        .13163E-06** at limit **
  28  Prefactor     .10000E-03    36.565        .24276E-05** at limit **
  29  Normalizat    .90547        .17690       -.92894E-06   -.13806E-03
  30  Prefactor     .85735        .15797       -.21290E-06   -.14832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0613
  Prefactor  = 0.0001
  Prefactor  = 4.24943
  norm       = 5.13465
  Prefactor  = 0.0001
  Prefactor  = 2.08411
  Prefactor  = 5.72932
  Prefactor  = 87.316
  norm       = 0.0001
  Prefactor  = 0.853828
  Prefactor  = 4.62488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.56378
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 44.8369
  Prefactor  = 27.6138
  norm       = 10.9032
  norm       = 0.0001
  norm       = 4.34392
  Prefactor  = 4.08013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.905469
  Prefactor  = 0.857351
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.609     FROM HESSE     STATUS=OK           586 CALLS     4461 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.061        13.435        .11534E-03   -1.5013    
   2  Prefactor     .10000E-03    17.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2494        4.4971        .15525E-03   -1.5296    
   4  norm          5.1346        5.2047        .16610E-03   -1.5255    
   5  Prefactor     .10000E-03    12.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0841        6.4432        .28553E-03   -1.5419    
   7  Prefactor     5.7293        3.5876        .10763E-03   -1.5229    
   8  Prefactor     87.316        88.966        .42997E-04   -1.3836    
   9  norm          .10000E-03    3.7109        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85383        3.5916        .25855E-03   -1.5523    
  11  Prefactor     4.6249        33.555        .18670E-03   -1.5278    
  12  Prefactor     .10000E-03    1.8495        .99719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5638        9.9845        .78343E-03   -1.5196    
  16  Prefactor     .10000E-03    55.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0854        .10592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.837        39.080        .59862E-04   -1.4368    
  19  Prefactor     27.614        19.289        .76243E-04   -1.4657    
  20  norm          10.903        9.5621        .12133E-03   -1.5047    
  21  norm          .10000E-03    1.8205        .99157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3439        4.7212        .16633E-03   -1.5291    
  23  Prefactor     4.0801        4.8570        .17264E-03   -1.5304    
  24  Prefactor     .10000E-03    13.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.9817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .50676        .90511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.5956        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    37.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90547        .21118        .23283E-03   -.96268    
  30  Prefactor     .85735        .18927        .22449E-03   -.97648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73088e-10
Minuit parameter uncertainties:
  1  13.4383
  2  2.38418e-05
  3  4.49744
  4  5.20511
  5  2.10185e-05
  6  6.44535
  7  3.58777
  8  89.1018
  9  9.54183e-07
  10  3.50252
  11  24.9343
  12  7.29685e-08
  13  1.4458e-05
  14  0.000509992
  15  9.987
  16  0.00039768
  17  8.8386e-07
  18  39.1026
  19  19.293
  20  9.56346
  21  6.17917e-07
  22  4.72159
  23  4.85747
  24  4.15836e-05
  25  1.92741e-07
  26  6.30341e-06
  27  1.91491e-06
  28  0.000584563
  29  0.211372
  30  0.189413
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.574e-01  1.894e-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:  9.055e-01  2.114e-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: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386607/likelihoodResults_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.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) = 5664.6113275
delta logL = -0.00256698677185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5664.60876073
delta logL = -2.17474735109e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4995       1.0000          .0000       10.000    
     3 'Normalizat'    .90562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85723       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=   5664.609     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.424        .10024E-01** at limit **
   2  Index         2.1821        5.5280        .50000       -.32219E-07
   3  Normalizat    .90547        .10533E-01    .23283E-03   -.61719E-04
   4  Prefactor     .85735        .99642E-02    .22448E-03   -.56113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1821
  Normalizat = 0.905469
  Prefactor  = 0.857351
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.609     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    132.21        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1821        5.9914        .50000       -.59871    
   3  Normalizat    .90547        .35572E-01    .93132E-05   -.96268    
   4  Prefactor     .85735        .33650E-01    .89794E-05   -.97648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22483e-10
Minuit parameter uncertainties:
  1  3.84707e-05
  2  679.923
  3  0.0355733
  4  0.0336511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386607': 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) = 5664.6087584
delta logL = 2.11422229768e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.574e-01  3.365e-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:  9.055e-01  3.557e-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/386607/cmap_HighResolution_647568001_647827201_4FGL_J2235.3-4836_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-28 16:21:50.734366', job_id='386607', GAL2='0.86', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632871310.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1575' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:21:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 386607: <4FGL_J2235.3-4836_daily_bin1575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1575 338.841 -48.6015 647568001 647827201 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

