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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1269
RA = 338.841, Dec = -48.6015
tmin = 568252801, tmax = 568512001
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='385025', job_status='RUN', time_executed='2021-09-28 16:04:25.813404', time_epoch_executed='1632870265.81' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385025/ft1_4FGL_J2235.3-4836_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385025/ft1_4FGL_J2235.3-4836_daily_bin1269.fits outfile=/scratch/kocevski/385025/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1269.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=568252801.0 tmax=568512001.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.63
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.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/385025/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/385025/ltcube_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.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/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/385025/ltcube_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits outfile=/scratch/kocevski/385025/expmap_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.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/385025/ltcube_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits
.....................!
real 190.45
user 185.04
sys 5.05

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/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits outfile=/scratch/kocevski/385025/cmap_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits outfile=/scratch/kocevski/385025/cmap_HighResolution_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.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/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385025/Model_4FGL_J2235.3-4836_daily_bin1269.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/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits....................!
real 15.35
user 13.98
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits', '/scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits', expMap='/scratch/kocevski/385025/expmap_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits', expCube='/scratch/kocevski/385025/ltcube_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385025/Model_4FGL_J2235.3-4836_daily_bin1269.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/385025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1269.fits
Spacecraft file(s): /scratch/kocevski/385025/ft2_4FGL_J2235.3-4836_daily_bin1269.fits
Exposure map: /scratch/kocevski/385025/expmap_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits
Exposure cube: /scratch/kocevski/385025/ltcube_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385025/Model_4FGL_J2235.3-4836_daily_bin1269.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 291.195171167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 285.254245958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4550       1.0000         .10000E-03   10000.    
     4 'norm      '    .37767E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6427       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    342.66       1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46569E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0799       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7894       1.0000         .10000E-03   10000.    
    21 'norm      '    120.12       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .71463E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .64276E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    86.871       1.0000         .10000E-03   10000.    
    26 'norm      '    .14772E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20958E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .53075E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0790       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   285.1726     FROM MIGRAD    STATUS=CONVERGED    290 CALLS      552 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    169.58        .96568E-02** at limit **
   2  Prefactor     6.3281        1.0032         .0000         .0000    
   3  Prefactor     .11228E-03    .19910       -.17776E-05** at limit **
   4  norm          .10000E-03    .23924       -.73433E-06** at limit **
   5  Prefactor     352.97        6.0733       -.10516E-04    .29243E-04
   6  Prefactor     .10000E-03    .20571       -.54469E-05** at limit **
   7  Prefactor     1.8750        1.0409         .0000         .0000    
   8  Prefactor     .24342E-01    .60604E-01    .16426E-05   -.18971E-02
   9  norm          .12636        .35510        .96928E-05    .23525E-02
  10  Prefactor     .10000E-03    .20571       -.11416E-04** at limit **
  11  Prefactor     349.64        1.0098       -.76453E-06   -.26021E-01
  12  Prefactor     77.301        1.0073       -.78320E-06    .21413E-01
  13  Prefactor     .10000E-03    .23278       -.97208E-06** at limit **
  14  Prefactor     .51170E-03    .86525E-01    .44866E-04** at limit **
  15  Prefactor     .10000E-03    .23570        .66313E-05** at limit **
  16  Prefactor     .11474E-03    .73316E-01   -.10335E-05** at limit **
  17  Prefactor     .10000E-03    .20571        .39643E-05** at limit **
  18  Prefactor     .12970E-03    .63613E-01    .71646E-05** at limit **
  19  Prefactor     .10001E-03    .33624       -.17209E-04** at limit **
  20  norm          7.3711        1.1325        .20579E-04    .26185E-03
  21  norm          120.11        .99995       -.43535E-07   -.26214E-01
  22  norm          .10000E-03    .20571        .25908E-06** at limit **
  23  Prefactor     .10000E-03    .21776       -.23941E-05** at limit **
  24  Prefactor     .10000E-03    .27633        .13375E-05** at limit **
  25  Prefactor     88.116        1.0071        .21058E-05   -.35507E-02
  26  norm          .10000E-03    .20571       -.43551E-06** at limit **
  27  Prefactor     .10000E-03    .20571        .39386E-05** at limit **
  28  Prefactor     .10000E-03    .21553       -.10400E-04** at limit **
  29  Normalizat    .10000E-01    .25505       -.58048E-05** at limit **
  30  Prefactor     1.0260        1.1380        .57257E-06    .12279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.32809
  Prefactor  = 0.000112276
  norm       = 0.0001
  Prefactor  = 352.972
  Prefactor  = 0.000100002
  Prefactor  = 1.87498
  Prefactor  = 0.0243424
  norm       = 0.126365
  Prefactor  = 0.000100002
  Prefactor  = 349.637
  Prefactor  = 77.3012
  Prefactor  = 0.0001
  Prefactor  = 0.0005117
  Prefactor  = 0.0001
  Prefactor  = 0.000114738
  Prefactor  = 0.0001
  Prefactor  = 0.000129699
  Prefactor  = 0.000100006
  norm       = 7.37108
  norm       = 120.105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.1161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.02601
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   285.1726     FROM HESSE     STATUS=FAILED        13 CALLS      565 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.58        .96568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     519.04        512.67         .0000       -1.5205    
   3  Prefactor     .11228E-03    .19910       -.17776E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .23924       -.73433E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     352.97        6.0733       -.10516E-04   -1.1928    
   6  Prefactor     .10000E-03    .20571       -.54469E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8750        1.0409         .0000       -1.5434    
   8  Prefactor     .24342E-01    .60604E-01    .16426E-05   -1.5739    
   9  norm          .12636        .35510        .96928E-05   -1.5637    
  10  Prefactor     .10000E-03    .20571       -.11416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     349.64        1.0098       -.76453E-06   -1.1946    
  12  Prefactor     77.301        1.0073       -.78320E-06   -1.3947    
  13  Prefactor     .10000E-03    .23278       -.97208E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .51170E-03    .86525E-01    .44866E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .23570        .66313E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11474E-03    .73316E-01   -.10335E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .39643E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12970E-03    .63613E-01    .71646E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    .33624       -.17209E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3711        1.1325        .20579E-04   -1.5165    
  21  norm          120.11        .99995       -.43535E-07   -1.3512    
  22  norm          .10000E-03    .20571        .25908E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .21776       -.23941E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .27633        .13375E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     88.116        1.0071        .21058E-05   -1.3828    
  26  norm          .10000E-03    .20571       -.43551E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20571        .39386E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .21553       -.10400E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25505       -.58048E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.0260        1.1380        .57257E-06   -.91867    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.4229e-09
Minuit parameter uncertainties:
  1  0.000419689
  2  1.00315
  3  0.00312669
  4  1.96321e-06
  5  6.07335
  6  4.32449e-05
  7  1.0409
  8  0.0606041
  9  0.355106
  10  3.71275e-05
  11  1.00977
  12  1.00729
  13  3.01572e-06
  14  0.0119369
  15  1.09523e-05
  16  0.00207895
  17  1.01618e-05
  18  0.00274897
  19  8.89341e-05
  20  1.13254
  21  0.999946
  22  6.1524e-07
  23  2.06711e-05
  24  2.07469e-06
  25  1.00709
  26  1.19886e-06
  27  2.50967e-07
  28  3.78976e-05
  29  4.30909e-07
  30  1.16657
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 285.172635071

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.026e+00  1.167e+00  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.000e-02  4.309e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.86e-07 +/- 6.33e-09
Energy Flux (Fixed Index): 1.40e-04 +/- 1.82e-06

TS (Fixed Index): 1.95
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 2.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385025/likelihoodResults_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.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): 0
logL (Free Index) = 284.867456647
delta logL = 0.305178423824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 284.866998511
delta logL = 0.305636559842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.709       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7085       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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=   284.8670     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      192 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.644        92.801       -.28654E-05   -.17398E-05
   2  Index         1.7054        .89203       -.32229E-04    .56287E-05
   3  Normalizat    .10000E-01    .48867       -.47683E-05** at limit **
   4  Prefactor     1.0328        .38501        .14456E-05    .35375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.6437
  Index      = 1.7054
  Normalizat = 0.01
  Prefactor  = 1.03279
 **********
 **   18 **HESSE 
 **********

 FCN=   284.8670     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.644        92.741        .23074E-03   -1.3966    
   2  Index         1.7054        .89045        .35351E-03   -.71938    
   3  Normalizat    .10000E-01    .53601        .68844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0328        .36111        .19564E-03   -.91644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92636e-11
Minuit parameter uncertainties:
  1  92.9188
  2  0.898985
  3  5.98116e-07
  4  0.36196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385025': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 284.866992113
delta logL = 0.305642958104

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.033e+00  3.620e-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.000e-02  5.981e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.71 +/- 0.90
Photon Flux (Free Index): 2.35e-07 +/- 3.38e-07
Energy Flux (Free Index): 3.76e-04 +/- 8.52e-04

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/385025/cmap_HighResolution_568252801_568512001_4FGL_J2235.3-4836_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-01', comment='SUCCESS', photon_flux='4.86e-07', energy_flux2='3.76e-04', photon_flux_error='6.33e-09', dlogl='3.06e-01', energy_flux='1.40e-04', photon_flux2='2.35e-07', job_status='DONE', time_completed='2021-09-28 16:09:53.076382', photon_index_error2='0.90', photon_index2='1.71', ts='1.95', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.40e-06', energy_flux_error2='8.52e-04', EG='0.01', time_epoch_completed='1632870593.08', return_code='101', job_id='385025', GAL2='1.03', EG2='0.01', return_code2='0', energy_flux_error='1.82e-06', photon_flux_error2='3.38e-07', ts2='2.54', photon_index='2.51' WHERE bin_id='1269' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:09:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 385025: <4FGL_J2235.3-4836_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1269 338.841 -48.6015 568252801 568512001 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 :                                   326.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             212.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

