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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1359
RA = 338.971, Dec = -36.4605
tmin = 591580801, tmax = 591840001
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='394709', job_status='RUN', time_executed='2021-09-28 16:30:35.853739', time_epoch_executed='1632871835.85' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394709/ft1_4FGL_J2235.8-3627_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394709/ft1_4FGL_J2235.8-3627_daily_bin1359.fits outfile=/scratch/kocevski/394709/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1359.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=591580801.0 tmax=591840001.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.79
user 3.59
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.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/394709/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1359.fits evtable="EVENTS" outfile="/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/394709/ltcube_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.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/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits
.....................!
real 12.38
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/394709/ltcube_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits outfile=/scratch/kocevski/394709/expmap_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.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/394709/ltcube_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits
.....................!
real 190.30
user 185.14
sys 4.71

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/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits outfile=/scratch/kocevski/394709/cmap_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits outfile=/scratch/kocevski/394709/cmap_HighResolution_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394709/Model_4FGL_J2235.8-3627_daily_bin1359.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/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits.....................!
real 40.27
user 38.85
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits', '/scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits', expMap='/scratch/kocevski/394709/expmap_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits', expCube='/scratch/kocevski/394709/ltcube_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394709/Model_4FGL_J2235.8-3627_daily_bin1359.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/394709/ft1_filtered_4FGL_J2235.8-3627_daily_bin1359.fits
Spacecraft file(s): /scratch/kocevski/394709/ft2_4FGL_J2235.8-3627_daily_bin1359.fits
Exposure map: /scratch/kocevski/394709/expmap_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits
Exposure cube: /scratch/kocevski/394709/ltcube_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394709/Model_4FGL_J2235.8-3627_daily_bin1359.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) = 4818.72073937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.732       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.604       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6895       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15813E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6882       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13761E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .93198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.843       1.0000         .10000E-03   10000.    
    22 'norm      '    .67364E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3299       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.8851       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1614       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72602       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=   4818.603     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3176 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.735        12.362       -.12362E-06   -.50044E-05
   2  Prefactor     23.603        13.717        .33697E-07   -.37537E-05
   3  norm          5.6894        6.6741        .22151E-05   -.61399E-03
   4  norm          .10000E-03    1.5075       -.21443E-07** at limit **
   5  norm          1.0813        .40750       -.53964E-08   -.24695E-04
   6  Prefactor     .10000E-03    4.8639        .29164E-08** at limit **
   7  Prefactor     .10000E-03    2.8448        .13690E-07** at limit **
   8  norm          .10000E-03    13.827        .18742E-05** at limit **
   9  Prefactor     .10000E-03    13.533       -.16165E-05** at limit **
  10  Prefactor     .10000E-03    28.785        .27463E-05** at limit **
  11  Prefactor     .10000E-03    7.2102       -.12740E-06** at limit **
  12  norm          .10000E-03    1.2152        .35952E-08** at limit **
  13  Prefactor     .10000E-03    34.858       -.37826E-06** at limit **
  14  Prefactor     19.057        13.374        .60127E-07    .38574E-05
  15  Prefactor     3.6886        4.2784        .30764E-07   -.12650E-04
  16  norm          .10000E-03    2.0693        .38594E-08** at limit **
  17  Prefactor     .10000E-03    7.7410        .10179E-06** at limit **
  18  Prefactor     .10000E-03    20.941       -.99420E-06** at limit **
  19  norm          .93188        .78509        .19558E-08    .10151E-03
  20  Prefactor     .10000E-03    50.193        .29525E-05** at limit **
  21  Prefactor     17.836        15.997       -.42049E-07    .37371E-04
  22  norm          .10002E-03    15.455        .88954E-06** at limit **
  23  norm          .10000E-03    3.4687       -.95716E-07** at limit **
  24  norm          .10000E-03    6.4320        .49529E-07** at limit **
  25  Prefactor     1.4798        493.35        .19359E-05    .34917E-06
  26  Prefactor     .10001E-03    39.574       -.42202E-05** at limit **
  27  norm          5.8675        7.2157       -.29572E-08   -.22454E-03
  28  Normalizat    1.1611        .20472       -.15084E-06   -.40860E-04
  29  Prefactor     .72627        .18862       -.13441E-06   -.47887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7355
  Prefactor  = 23.6033
  norm       = 5.68935
  norm       = 0.0001
  norm       = 1.08127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0573
  Prefactor  = 3.68861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.931882
  Prefactor  = 0.000100004
  Prefactor  = 17.8362
  norm       = 0.000100023
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.47976
  Prefactor  = 0.000100008
  norm       = 5.86748
  Normalizat = 1.1611
  Prefactor  = 0.726266
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.603     FROM HESSE     STATUS=OK           549 CALLS     3725 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.735        12.362        .85920E-04   -1.4775    
   2  Prefactor     23.603        13.723        .82448E-04   -1.4736    
   3  norm          5.6894        7.0128        .84201E-03   -1.5231    
   4  norm          .10000E-03    1.5119        .83225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0813        .40883        .26396E-04   -1.5500    
   6  Prefactor     .10000E-03    4.8951        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9131        .22841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2239        .74721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.057        13.413        .91758E-04   -1.4835    
  15  Prefactor     3.6886        4.2746        .15040E-03   -1.5324    
  16  norm          .10000E-03    2.0742        .97479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .93188        .77151        .51192E-04   -1.5515    
  20  Prefactor     .10000E-03    51.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.836        15.935        .94816E-04   -1.4863    
  22  norm          .10002E-03    68.295        .52761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4835        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.5571        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4798        414.97        .38085E-03   -1.5465    
  26  Prefactor     .10001E-03    41.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.8675        6.5258        .14543E-03   -1.5223    
  28  Normalizat    1.1611        .24433        .23207E-03   -.87814    
  29  Prefactor     .72627        .22568        .26750E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22346e-09
Minuit parameter uncertainties:
  1  12.3633
  2  13.7248
  3  7.01377
  4  1.03381e-06
  5  0.40883
  6  7.61569e-08
  7  1.86199e-06
  8  0.000295891
  9  0.000251987
  10  0.000545108
  11  1.46741e-05
  12  1.32326e-07
  13  9.11873e-05
  14  13.4153
  15  4.27491
  16  7.79654e-07
  17  1.36914e-05
  18  0.000161253
  19  0.771516
  20  0.000872153
  21  15.9387
  22  0.00250282
  23  8.13367e-07
  24  6.49205e-06
  25  49.9115
  26  0.00112959
  27  6.52659
  28  0.244567
  29  0.225964
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.451e-04  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:  7.263e-01  2.260e-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.161e+00  2.446e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394709/likelihoodResults_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.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) = 4818.60341201
delta logL = -0.000158269152962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4818.60325353
delta logL = 2.14330611925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5892       1.0000          .0000       10.000    
     3 'Normalizat'    1.1611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72627       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.

 FCN=   4818.603     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .35717        .90712E-01** at limit **
   2  Index         2.5879        5.1785        .50000        .36189E-06
   3  Normalizat    1.1611        .10013E-02    .52489E-01    .17982E-04
   4  Prefactor     .72627        .93903E-03    .42750E-01    .23122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58792
  Normalizat = 1.1611
  Prefactor  = 0.726266
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.603     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      285 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    89.808        .39491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5879        5.3048        .50000       -.50341    
   3  Normalizat    1.1611        .78981E-02    .23207E-03   -.87814    
   4  Prefactor     .72627        .74068E-02    .26749E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37509e-10
Minuit parameter uncertainties:
  1  0.000190651
  2  219.559
  3  0.0078981
  4  0.00740683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394709': 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) = 4818.60325352
delta logL = 2.25292751566e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.907e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.588e+00  2.196e+02  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:  7.263e-01  7.407e-03  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.161e+00  7.898e-03  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/394709/cmap_HighResolution_591580801_591840001_4FGL_J2235.8-3627_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-28 16:41:16.204570', job_id='394709', GAL2='0.73', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632872476.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1359' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 394709: <4FGL_J2235.8-3627_daily_bin1359> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1359> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:17 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:18 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:30:18 2021
Terminated at Tue Sep 28 16:41:17 2021
Results reported at Tue Sep 28 16:41:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1359 338.971 -36.4605 591580801 591840001 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

