/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 156 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin240
RA = 338.971, Dec = -36.4605
tmin = 301536001, tmax = 301795201
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='388114', job_status='RUN', time_executed='2021-09-28 16:13:23.488507', time_epoch_executed='1632870803.49' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388114/ft1_4FGL_J2235.8-3627_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388114/ft1_4FGL_J2235.8-3627_daily_bin240.fits outfile=/scratch/kocevski/388114/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin240.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=301536001.0 tmax=301795201.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 4.60
user 4.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/388114/ltcube_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.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/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits
.....................!
real 12.23
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/388114/ltcube_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits outfile=/scratch/kocevski/388114/expmap_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.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/388114/ltcube_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits
.....................!
real 191.15
user 186.25
sys 4.29

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits scfile=/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits outfile=/scratch/kocevski/388114/cmap_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.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.971 yref=-36.4605 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits scfile=/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits outfile=/scratch/kocevski/388114/cmap_HighResolution_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.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.971 yref=-36.4605 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388114/Model_4FGL_J2235.8-3627_daily_bin240.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/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits.....................!
real 42.39
user 41.02
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits', '/scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits', expMap='/scratch/kocevski/388114/expmap_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits', expCube='/scratch/kocevski/388114/ltcube_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/388114/Model_4FGL_J2235.8-3627_daily_bin240.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/388114/ft1_filtered_4FGL_J2235.8-3627_daily_bin240.fits
Spacecraft file(s): /scratch/kocevski/388114/ft2_4FGL_J2235.8-3627_daily_bin240.fits
Exposure map: /scratch/kocevski/388114/expmap_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits
Exposure cube: /scratch/kocevski/388114/ltcube_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/388114/Model_4FGL_J2235.8-3627_daily_bin240.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) = 5371.74538313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38690E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15500E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11473E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .83551       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4524       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13991E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2395       1.0000         .10000E-03   10000.    
    19 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5190       1.0000         .10000E-03   10000.    
    22 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1687       1.0000         .10000E-03   10000.    
    24 'norm      '    11.278       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.437       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5371.706     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3910 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10373E-03    11.036       -.38193E-05** at limit **
   2  Prefactor     .10000E-03    2.0847        .12643E-07** at limit **
   3  norm          .10000E-03    5.1565        .11842E-06** at limit **
   4  norm          .10000E-03    2.5832       -.26385E-06** at limit **
   5  norm          .83569        .37715       -.10246E-07   -.59087E-03
   6  Prefactor     8.6643        8.0519       -.70015E-07   -.11780E-03
   7  Prefactor     .10000E-03    3.0476        .19519E-06** at limit **
   8  norm          .10000E-03    7.4234        .10037E-07** at limit **
   9  Prefactor     .98127        36.895        .31365E-05   -.22908E-04
  10  Prefactor     .10000E-03    12.279        .46602E-06** at limit **
  11  Prefactor     .10000E-03    12.445        .11108E-05** at limit **
  12  norm          .10000E-03    1.5295        .34209E-06** at limit **
  13  Prefactor     .10000E-03    43.681       -.12254E-05** at limit **
  14  Prefactor     .10005E-03    9.6405       -.10176E-05** at limit **
  15  Prefactor     7.4540        7.3597       -.14733E-06   -.43656E-04
  16  norm          2.0707        3.5696       -.14561E-06   -.52844E-03
  17  Prefactor     .10003E-03    87.297        .12528E-04** at limit **
  18  Prefactor     9.2367        12.803       -.55469E-06   -.84658E-03
  19  norm          .10000E-03    .44764        .10782E-05** at limit **
  20  Prefactor     .10000E-03    27.583        .13762E-05** at limit **
  21  Prefactor     5.5277        18.885       -.80116E-06   -.41869E-03
  22  norm          .10000E-03    11.698       -.18600E-05** at limit **
  23  norm          3.1691        3.5862       -.11430E-06    .43434E-03
  24  norm          11.273        9.1950       -.18947E-06   -.12475E-04
  25  Prefactor     39.494        34.475        .21051E-05    .70608E-03
  26  Prefactor     .10000E-03    27.686        .13294E-05** at limit **
  27  norm          .10002E-03    6.8754       -.22213E-05** at limit **
  28  Normalizat    1.1247        .19902        .10774E-05   -.11963E-03
  29  Prefactor     .98569        .18652       -.15462E-05   -.19056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103726
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.000100001
  norm       = 0.835694
  Prefactor  = 8.66426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.981269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 7.45403
  norm       = 2.07071
  Prefactor  = 0.000100029
  Prefactor  = 9.23673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52768
  norm       = 0.0001
  norm       = 3.16905
  norm       = 11.2732
  Prefactor  = 39.4935
  Prefactor  = 0.0001
  norm       = 0.000100015
  Normalizat = 1.12474
  Prefactor  = 0.985689
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.706     FROM HESSE     STATUS=OK           571 CALLS     4481 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10373E-03    6.1836        .51658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0873        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.310        .30914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.300        .21797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .83569        .36639        .28475E-04   -1.5525    
   6  Prefactor     8.6643        8.0674        .13617E-03   -1.5119    
   7  Prefactor     .10000E-03    3.1286        .24944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.4257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98127        328.67        .81579E-02   -1.5510    
  10  Prefactor     .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7083        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    33.570        .36717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4540        7.3549        .14691E-03   -1.5162    
  16  norm          2.0707        3.5052        .16634E-03   -1.5420    
  17  Prefactor     .10003E-03    109.14        .51358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2367        13.503        .65925E-03   -1.5100    
  19  norm          .10000E-03    .55966        .78542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5277        18.372        .17102E-03   -1.5238    
  22  norm          .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1691        3.5787        .14302E-03   -1.5352    
  24  norm          11.273        9.1820        .59647E-03   -1.5036    
  25  Prefactor     39.494        36.399        .63826E-04   -1.4450    
  26  Prefactor     .10000E-03    27.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10002E-03    10.881        .27549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1247        .23499        .23988E-03   -.88961    
  29  Prefactor     .98569        .22306        .24506E-03   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67071e-08
Minuit parameter uncertainties:
  1  0.00960061
  2  2.41832e-06
  3  0.000521931
  4  0.000366763
  5  0.366395
  6  8.06837
  7  1.1553e-05
  8  5.61043e-07
  9  36.1172
  10  3.7751e-07
  11  4.78069e-06
  12  2.76298e-06
  13  3.39334e-06
  14  0.00251135
  15  7.35584
  16  3.50554
  17  0.00357739
  18  13.5073
  19  1.67459e-05
  20  7.24021e-06
  21  18.3907
  22  2.21563e-05
  23  3.57897
  24  9.18312
  25  36.4196
  26  4.03516e-06
  27  0.000808539
  28  0.235212
  29  0.223266
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.775e-07  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.857e-01  2.233e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.125e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/388114/likelihoodResults_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.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) = 5371.70649345
delta logL = -0.000387252992368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5371.70610649
delta logL = -3.00236933981e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2357       1.0000          .0000       10.000    
     3 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5371.706     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    300.63        .18142E-02** at limit **
   2  Index         2.2878        6.0836        .50000       -.36255E-05
   3  Normalizat    1.1247        .23830E-01    .23988E-03    .51659E-05
   4  Prefactor     .98569        .23077E-01    .24506E-03    .40824E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100506
  Index      = 2.28782
  Normalizat = 1.12474
  Prefactor  = 0.985691
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.706     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    1307.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2878        6.9911        .50000       -.57333    
   3  Normalizat    1.1247        .57608E-01    .95951E-05   -.88961    
   4  Prefactor     .98569        .55761E-01    .98025E-05   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46227e-08
Minuit parameter uncertainties:
  1  0.0526432
  2  2308.01
  3  0.0576111
  4  0.0557642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388114': 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) = 5371.70610616
delta logL = 3.49673427991e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.005e-04  5.264e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.288e+00  2.308e+03  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.857e-01  5.576e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.125e+00  5.761e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/388114/cmap_HighResolution_301536001_301795201_4FGL_J2235.8-3627_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-28 16:25:54.415864', job_id='388114', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632871554.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='240' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 388114: <4FGL_J2235.8-3627_daily_bin240> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin240> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:10:36 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:10:37 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:10:37 2021
Terminated at Tue Sep 28 16:25:54 2021
Results reported at Tue Sep 28 16:25:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin240 338.971 -36.4605 301536001 301795201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

