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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1571
RA = 338.971, Dec = -36.4605
tmin = 646531201, tmax = 646790401
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='395045', job_status='RUN', time_executed='2021-09-28 16:32:52.879992', time_epoch_executed='1632871972.88' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395045/ft1_4FGL_J2235.8-3627_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395045/ft1_4FGL_J2235.8-3627_daily_bin1571.fits outfile=/scratch/kocevski/395045/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1571.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=646531201.0 tmax=646790401.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.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.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/395045/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1571.fits evtable="EVENTS" outfile="/scratch/kocevski/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.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.63
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/395045/ltcube_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.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/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits
.....................!
real 12.62
user 12.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/395045/ltcube_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.fits outfile=/scratch/kocevski/395045/expmap_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.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/395045/ltcube_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.fits
.....................!
real 190.12
user 185.19
sys 4.25

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/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits outfile=/scratch/kocevski/395045/cmap_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits outfile=/scratch/kocevski/395045/cmap_HighResolution_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/395045/ft2_4FGL_J2235.8-3627_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395045/Model_4FGL_J2235.8-3627_daily_bin1571.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/395045/ft1_filtered_4FGL_J2235.8-3627_daily_bin1571.fits.....................!
real 39.35
user 37.83
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .58219       1.0000         .10000E-03   10000.    
     5 'norm      '    .34066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5300       1.0000         .10000E-03   10000.    
    16 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.157       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.878       1.0000         .10000E-03   10000.    
    22 'norm      '    21.317       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .73034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0155       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=   4681.147     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3179 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6391        .69387E-08** at limit **
   2  Prefactor     .10000E-03    3.9332        .32691E-08** at limit **
   3  norm          .10000E-03    3.2909       -.18054E-08** at limit **
   4  norm          .60073        4.0062       -.18114E-06    .10330E-03
   5  norm          .34057        .34049       -.73063E-08    .15356E-03
   6  Prefactor     2.2605        5.0771        .38833E-06   -.29873E-04
   7  Prefactor     .10000E-03    3.3753        .58180E-07** at limit **
   8  norm          31.210        25.287       -.68915E-07   -.87694E-07
   9  Prefactor     .10000E-03    41.818        .55316E-06** at limit **
  10  Prefactor     .10000E-03    10.497        .98562E-08** at limit **
  11  Prefactor     .10000E-03    10.144        .13725E-07** at limit **
  12  norm          .10000E-03    1.1145       -.27016E-07** at limit **
  13  Prefactor     .10000E-03    62.571       -.72765E-07** at limit **
  14  Prefactor     36.241        18.421       -.10543E-06    .42300E-04
  15  Prefactor     4.5311        9.2331        .50721E-06    .36680E-04
  16  norm          .10000E-03    2.1737       -.13122E-06** at limit **
  17  Prefactor     .10000E-03    14.569       -.39055E-06** at limit **
  18  Prefactor     11.155        17.589        .38500E-05   -.42246E-04
  19  norm          1.0029        1.5489       -.67964E-06   -.82142E-04
  20  Prefactor     .10002E-03    153.77        .29247E-05** at limit **
  21  Prefactor     13.886        17.119       -.31001E-06    .53956E-05
  22  norm          21.317        18.577       -.29837E-08   -.49439E-07
  23  norm          .10000E-03    2.0986       -.34758E-08** at limit **
  24  norm          .10002E-03    7.9325       -.56688E-06** at limit **
  25  Prefactor     .10000E-03    48.702       -.68855E-06** at limit **
  26  Prefactor     .10002E-03    188.83       -.33861E-05** at limit **
  27  norm          .10000E-03    4.7787        .41139E-08** at limit **
  28  Normalizat    1.1012        .22310       -.73760E-06    .12117E-03
  29  Prefactor     1.0151        .20449        .21170E-06    .47714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.600725
  norm       = 0.340573
  Prefactor  = 2.26054
  Prefactor  = 0.0001
  norm       = 31.2105
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2406
  Prefactor  = 4.53111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.155
  norm       = 1.00286
  Prefactor  = 0.000100016
  Prefactor  = 13.8863
  norm       = 21.3171
  norm       = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.000100001
  Prefactor  = 0.000100021
  norm       = 0.0001
  Normalizat = 1.10117
  Prefactor  = 1.01507
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.147     FROM HESSE     STATUS=OK           549 CALLS     3728 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6501        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9520        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2955        .12121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .60073        16.663        .24741E-02   -1.5553    
   5  norm          .34057        .33686        .37003E-04   -1.5591    
   6  Prefactor     2.2605        5.0477        .22410E-03   -1.5407    
   7  Prefactor     .10000E-03    3.4311        .12266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.210        25.282        .71726E-04   -1.4590    
   9  Prefactor     .10000E-03    41.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1240        .70524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    62.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.241        18.488        .66573E-04   -1.4503    
  15  Prefactor     4.5311        9.2186        .18915E-03   -1.5282    
  16  norm          .10000E-03    2.1848        .98523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.155        17.683        .59971E-03   -1.5040    
  19  norm          1.0029        1.5039        .62213E-04   -1.5508    
  20  Prefactor     .10002E-03    155.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.886        16.888        .10752E-03   -1.4963    
  22  norm          21.317        18.577        .86753E-04   -1.4784    
  23  norm          .10000E-03    2.1031        .96798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10002E-03    35.847        .36010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    190.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.9800        .29195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1012        .26417        .25435E-03   -.89714    
  29  Prefactor     1.0151        .24556        .24939E-03   -.92229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56711e-10
Minuit parameter uncertainties:
  1  1.09016e-06
  2  3.43754e-07
  3  1.16187e-06
  4  6.32909
  5  0.336863
  6  5.04867
  7  2.84603e-06
  8  25.2907
  9  0.000320329
  10  1.90201e-06
  11  2.34224e-06
  12  1.3265e-06
  13  2.00835e-05
  14  18.4909
  15  9.22147
  16  9.72572e-06
  17  7.52931e-05
  18  17.6909
  19  1.50399
  20  0.00320018
  21  16.8936
  22  18.5818
  23  4.05248e-07
  24  0.00162366
  25  0.000459714
  26  0.00400159
  27  5.92898e-06
  28  0.264487
  29  0.245831
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.902e-06  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:  1.015e+00  2.458e-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.101e+00  2.645e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395045/likelihoodResults_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.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) = 4681.14705478
delta logL = -0.000452320135992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4681.14660245
delta logL = 7.2350303526e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2225       1.0000          .0000       10.000    
     3 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       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=   4681.147     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      237 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    132.69        .18142E-02** at limit **
   2  Index         2.2003        6.5135        .50000        .45266E-05
   3  Normalizat    1.1012        .19021E-01    .25435E-03   -.27418E-03
   4  Prefactor     1.0151        .18084E-01    .24939E-03   -.26141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100225
  Index      = 2.20029
  Normalizat = 1.10117
  Prefactor  = 1.01507
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.147     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    574.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2003        8.7186        .50000       -.59432    
   3  Normalizat    1.1012        .41976E-01    .50870E-04   -.89714    
   4  Prefactor     1.0151        .39908E-01    .49877E-04   -.92229    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92868e-09
Minuit parameter uncertainties:
  1  0.0229429
  2  1004.58
  3  0.0419775
  4  0.0399094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395045': 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) = 4681.14660243
delta logL = 2.41616362473e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.002e-04  2.294e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.200e+00  1.005e+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:  1.015e+00  3.991e-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.101e+00  4.198e-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/395045/cmap_HighResolution_646531201_646790401_4FGL_J2235.8-3627_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-28 16:43:29.954301', job_id='395045', GAL2='1.02', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632872609.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1571' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 395045: <4FGL_J2235.8-3627_daily_bin1571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1571 338.971 -36.4605 646531201 646790401 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

