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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1211
RA = 338.971, Dec = -36.4605
tmin = 553219201, tmax = 553478401
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='393758', job_status='RUN', time_executed='2021-09-28 16:28:07.670479', time_epoch_executed='1632871687.67' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393758/ft1_4FGL_J2235.8-3627_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393758/ft1_4FGL_J2235.8-3627_daily_bin1211.fits outfile=/scratch/kocevski/393758/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1211.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.77
user 2.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/393758/ltcube_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.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/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits
.....................!
real 12.40
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/393758/ltcube_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.fits outfile=/scratch/kocevski/393758/expmap_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.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/393758/ltcube_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.fits
.....................!
real 191.37
user 185.74
sys 5.26

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/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits scfile=/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits outfile=/scratch/kocevski/393758/cmap_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits scfile=/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits outfile=/scratch/kocevski/393758/cmap_HighResolution_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/393758/ft2_4FGL_J2235.8-3627_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393758/Model_4FGL_J2235.8-3627_daily_bin1211.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/393758/ft1_filtered_4FGL_J2235.8-3627_daily_bin1211.fits.....................!
real 32.56
user 31.05
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.585       1.0000         .10000E-03   10000.    
     3 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7612       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2711       1.0000         .10000E-03   10000.    
     8 'norm      '    19.816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.467       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6561       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.092       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1466       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82067E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4841       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.139       1.0000         .10000E-03   10000.    
    22 'norm      '    26.605       1.0000         .10000E-03   10000.    
    23 'norm      '    .10303E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3837       1.0000         .10000E-03   10000.    
    25 'Prefactor '    46.958       1.0000         .10000E-03   10000.    
    26 'Prefactor '    115.96       1.0000         .10000E-03   10000.    
    27 'norm      '    .86985       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76335       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=   3395.589     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3775 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.366        28.360       -.72557E-06    .32855E-05
   2  Prefactor     13.588        20.521        .52350E-06    .63609E-05
   3  norm          .10000E-03    25.621       -.35832E-05** at limit **
   4  norm          4.7578        12.372        .60320E-05   -.27164E-03
   5  norm          .10000E-03    .23415       -.21281E-06** at limit **
   6  Prefactor     .10000E-03    27.384       -.44101E-05** at limit **
   7  Prefactor     6.2672        6.8701        .56841E-06   -.23012E-04
   8  norm          19.812        20.151       -.45391E-08   -.34373E-04
   9  Prefactor     .10000E-03    36.543        .54363E-05** at limit **
  10  Prefactor     .10000E-03    9.4869       -.19997E-06** at limit **
  11  Prefactor     58.443        41.346       -.37190E-05   -.13173E-03
  12  norm          1.6558        2.1520        .99594E-07   -.22966E-03
  13  Prefactor     .10000E-03    23.167        .40305E-05** at limit **
  14  Prefactor     11.075        16.853        .10550E-05   -.13041E-03
  15  Prefactor     9.1457        9.7380        .43571E-06   -.23705E-05
  16  norm          .10000E-03    2.3016        .65025E-07** at limit **
  17  Prefactor     .10000E-03    8.5576        .13063E-06** at limit **
  18  Prefactor     .10055E-03    19.909        .37351E-05** at limit **
  19  norm          2.4812        1.2125       -.46002E-08   -.49292E-02
  20  Prefactor     .10000E-03    74.539       -.14629E-05** at limit **
  21  Prefactor     13.118        18.323        .73221E-06   -.51753E-03
  22  norm          26.608        26.598        .31066E-06    .15696E-04
  23  norm          .10000E-03    4.0162       -.82519E-06** at limit **
  24  norm          2.3872        7.9123        .41675E-06    .18864E-04
  25  Prefactor     47.011        59.178       -.99123E-05    .29625E-03
  26  Prefactor     115.89        71.813       -.12419E-04   -.30329E-03
  27  norm          .86287        10.559        .38175E-05    .55918E-03
  28  Normalizat    1.1495        .26955        .51455E-06   -.31748E-03
  29  Prefactor     .76241        .24250       -.44943E-05   -.23850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3662
  Prefactor  = 13.5883
  norm       = 0.0001
  norm       = 4.75784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26715
  norm       = 19.8125
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 58.4431
  norm       = 1.65582
  Prefactor  = 0.0001
  Prefactor  = 11.0754
  Prefactor  = 9.14566
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100553
  norm       = 2.48115
  Prefactor  = 0.0001
  Prefactor  = 13.1177
  norm       = 26.6077
  norm       = 0.0001
  norm       = 2.38716
  Prefactor  = 47.0105
  Prefactor  = 115.889
  norm       = 0.862867
  Normalizat = 1.14951
  Prefactor  = 0.762408
 **********
 **   18 **HESSE 
 **********

 FCN=   3395.589     FROM HESSE     STATUS=OK           551 CALLS     4326 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.366        28.318        .10955E-03   -1.4977    
   2  Prefactor     13.588        20.496        .10867E-03   -1.4971    
   3  norm          .10000E-03    25.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7578        12.411        .92197E-03   -1.5272    
   5  norm          .10000E-03    .23830        .54749E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2672        6.9058        .14845E-03   -1.5207    
   8  norm          19.812        20.153        .89975E-04   -1.4817    
   9  Prefactor     .10000E-03    36.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4889        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.443        41.599        .52468E-04   -1.4178    
  12  norm          1.6558        2.1337        .94796E-04   -1.5451    
  13  Prefactor     .10000E-03    23.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.075        16.963        .12030E-03   -1.5042    
  15  Prefactor     9.1457        9.7362        .13252E-03   -1.5103    
  16  norm          .10000E-03    2.3085        .86265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5611        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10055E-03    71.496        .40809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4812        1.1102        .35526E-04   -1.5393    
  20  Prefactor     .10000E-03    75.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.118        18.068        .11050E-03   -1.4983    
  22  norm          26.608        26.602        .77667E-04   -1.4676    
  23  norm          .10000E-03    4.0406        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3872        7.8775        .26531E-03   -1.5399    
  25  Prefactor     47.011        60.766        .58513E-04   -1.4336    
  26  Prefactor     115.89        73.242        .18681E-03   -1.3551    
  27  norm          .86287        16.992        .24986E-02   -1.5522    
  28  Normalizat    1.1495        .32697        .24803E-03   -.88178    
  29  Prefactor     .76241        .28926        .28529E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07778e-08
Minuit parameter uncertainties:
  1  28.3463
  2  20.5063
  3  0.000202219
  4  12.4179
  5  4.55437e-06
  6  3.01394e-05
  7  6.90666
  8  20.1599
  9  0.000390702
  10  1.31789e-05
  11  41.6193
  12  2.13384
  13  0.000181685
  14  16.97
  15  9.73787
  16  8.58167e-06
  17  1.58791e-05
  18  0.0125925
  19  1.11017
  20  4.17353e-05
  21  18.0756
  22  26.6137
  23  3.24804e-05
  24  7.88094
  25  60.8462
  26  73.299
  27  7.66019
  28  0.327547
  29  0.289832
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.318e-05  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.624e-01  2.898e-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.150e+00  3.275e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393758/likelihoodResults_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.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) = 3395.58915853
delta logL = -0.000489768146508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3395.58866875
delta logL = 1.33750290843e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2209       1.0000          .0000       10.000    
     3 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76241       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=   3395.589     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      263 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.429        .17582E-01** at limit **
   2  Index         1.8782        6.6651        .50000       -.12699E-07
   3  Normalizat    1.1495        .14662E-01    .24803E-03   -.69442E-05
   4  Prefactor     .76240        .14083E-01    .28529E-03   -.51008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87823
  Normalizat = 1.14951
  Prefactor  = 0.762402
 **********
 **   18 **HESSE 
 **********

 FCN=   3395.589     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1048.5        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8782        6.1933        .50000       -.67430    
   3  Normalizat    1.1495        .74245E-01    .99211E-05   -.88178    
   4  Prefactor     .76240        .71308E-01    .11412E-04   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.98097e-10
Minuit parameter uncertainties:
  1  0.000170356
  2  2733.03
  3  0.0742516
  4  0.0713166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393758': 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) = 3395.58866841
delta logL = 3.45569787896e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.704e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.878e+00  2.733e+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:  7.624e-01  7.132e-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.150e+00  7.425e-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/393758/cmap_HighResolution_553219201_553478401_4FGL_J2235.8-3627_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-28 16:37:56.509190', job_id='393758', GAL2='0.76', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632872276.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1211' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 393758: <4FGL_J2235.8-3627_daily_bin1211> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1211> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:50 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:25:51 2021
Terminated at Tue Sep 28 16:37:57 2021
Results reported at Tue Sep 28 16:37:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1211 338.971 -36.4605 553219201 553478401 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 :                                   577.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

