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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1478
RA = 338.971, Dec = -36.4605
tmin = 622425601, tmax = 622684801
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='394897', job_status='RUN', time_executed='2021-09-28 16:31:33.090990', time_epoch_executed='1632871893.09' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394897

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394897/ft1_4FGL_J2235.8-3627_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394897/ft1_4FGL_J2235.8-3627_daily_bin1478.fits outfile=/scratch/kocevski/394897/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1478.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=622425601.0 tmax=622684801.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.26
user 4.03
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.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/394897/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.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.52
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/394897/ltcube_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.fits outfile=/scratch/kocevski/394897/expmap_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.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/394897/ltcube_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.fits
.....................!
real 190.31
user 185.45
sys 4.38

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/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.fits scfile=/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.fits outfile=/scratch/kocevski/394897/cmap_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.fits scfile=/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.fits outfile=/scratch/kocevski/394897/cmap_HighResolution_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/394897/ft2_4FGL_J2235.8-3627_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394897/Model_4FGL_J2235.8-3627_daily_bin1478.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/394897/ft1_filtered_4FGL_J2235.8-3627_daily_bin1478.fits.....................!
real 43.67
user 42.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2970       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .18119E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .56329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11685E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5790       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10478E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.886       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2895       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2446       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.3694       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3955       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63386       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=   5374.394     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3769 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4066        .41694E-08** at limit **
   2  Prefactor     2.2952        6.9507        .11546E-05    .82651E-05
   3  norm          .10000E-03    2.5214        .57872E-07** at limit **
   4  norm          .10008E-03    2.2574       -.11021E-05** at limit **
   5  norm          .56318        .28695       -.21243E-07    .18473E-02
   6  Prefactor     .10002E-03    3.8690        .11022E-05** at limit **
   7  Prefactor     3.5787        4.0716        .24560E-06    .10236E-03
   8  norm          4.0732        43.139        .12035E-05   -.11982E-03
   9  Prefactor     .10000E-03    16.019        .16650E-06** at limit **
  10  Prefactor     .10000E-03    9.2373       -.48426E-07** at limit **
  11  Prefactor     .10000E-03    25.235       -.30360E-07** at limit **
  12  norm          .10000E-03    2.6666        .54329E-05** at limit **
  13  Prefactor     47.147        69.837       -.53911E-05   -.18845E-03
  14  Prefactor     4.3123        13.304        .22506E-06   -.16174E-04
  15  Prefactor     .10000E-03    5.4894        .69129E-07** at limit **
  16  norm          .10000E-03    2.0198       -.23893E-07** at limit **
  17  Prefactor     .10000E-03    5.8810       -.12117E-06** at limit **
  18  Prefactor     38.891        16.808       -.12224E-06   -.33757E-03
  19  norm          1.2895        .88519        .14452E-06   -.12455E-03
  20  Prefactor     20.813        78.648       -.17313E-05   -.68452E-04
  21  Prefactor     .10000E-03    14.518       -.96351E-06** at limit **
  22  norm          .10000E-03    24.471        .91007E-07** at limit **
  23  norm          .10000E-03    6.4899        .59133E-07** at limit **
  24  norm          2.2421        7.5220        .97341E-06    .16595E-05
  25  Prefactor     .10000E-03    19.516       -.12853E-06** at limit **
  26  Prefactor     .10000E-03    18.119       -.93770E-07** at limit **
  27  norm          2.3699        3.8518        .71106E-07    .50903E-05
  28  Normalizat    1.3953        .20055        .72752E-06   -.17978E-03
  29  Prefactor     .63408        .17876       -.17015E-05   -.45833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.2952
  norm       = 0.0001
  norm       = 0.00010008
  norm       = 0.563183
  Prefactor  = 0.000100021
  Prefactor  = 3.5787
  norm       = 4.07318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.1474
  Prefactor  = 4.31231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.891
  norm       = 1.28947
  Prefactor  = 20.8134
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.24208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3699
  Normalizat = 1.39528
  Prefactor  = 0.634083
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.394     FROM HESSE     STATUS=OK           545 CALLS     4314 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4417        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2952        6.9275        .27080E-03   -1.5405    
   3  norm          .10000E-03    2.5300        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10008E-03    11.515        .20058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .56318        .28288        .26764E-04   -1.5558    
   6  Prefactor     .10002E-03    14.690        .27487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5787        4.0801        .14864E-03   -1.5330    
   8  norm          4.0732        42.757        .20044E-03   -1.5304    
   9  Prefactor     .10000E-03    16.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7301        .23083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.147        71.456        .58459E-04   -1.4334    
  14  Prefactor     4.3123        13.365        .19401E-03   -1.5293    
  15  Prefactor     .10000E-03    5.5712        .16769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0270        .10166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8818        .17359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.891        16.869        .64276E-04   -1.4460    
  19  norm          1.2895        .88232        .47951E-04   -1.5481    
  20  Prefactor     20.813        78.733        .87638E-04   -1.4795    
  21  Prefactor     .10000E-03    14.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    24.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.6697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2421        7.5020        .27430E-03   -1.5408    
  25  Prefactor     .10000E-03    19.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3699        3.8153        .17677E-03   -1.5400    
  28  Normalizat    1.3953        .24373        .21859E-03   -.80765    
  29  Prefactor     .63408        .21428        .28724E-03   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92488e-09
Minuit parameter uncertainties:
  1  6.53375e-06
  2  6.9299
  3  2.78953e-06
  4  0.00192415
  5  0.282886
  6  0.00110217
  7  4.08043
  8  26.4176
  9  2.97594e-05
  10  1.75165e-05
  11  3.30364e-05
  12  3.07478e-05
  13  71.5864
  14  13.3745
  15  1.82381e-06
  16  8.91381e-07
  17  3.93132e-06
  18  16.8708
  19  0.882332
  20  79.1297
  21  2.40916e-05
  22  5.69127e-06
  23  3.93949e-06
  24  7.50513
  25  5.5537e-05
  26  1.61546e-05
  27  3.81564
  28  0.243928
  29  0.214553
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.752e-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:  6.341e-01  2.146e-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.395e+00  2.439e-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: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394897/likelihoodResults_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.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) = 5374.39494932
delta logL = -0.000513721000061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5374.3944356
delta logL = -4.79303707834e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2265       1.0000          .0000       10.000    
     3 'Normalizat'    1.3953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63409       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=   5374.394     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    282.28        .18142E-02** at limit **
   2  Index         2.2018        5.6356        .50000        .19295E-05
   3  Normalizat    1.3953        .26972E-01    .21858E-03    .30582E-05
   4  Prefactor     .63408        .24981E-01    .28724E-03   -.55410E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100094
  Index      = 2.20185
  Normalizat = 1.39528
  Prefactor  = 0.634082
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    1105.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2018        7.2665        .50000       -.59394    
   3  Normalizat    1.3953        .63088E-01    .43717E-04   -.80765    
   4  Prefactor     .63408        .58406E-01    .11490E-04   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33696e-09
Minuit parameter uncertainties:
  1  0.020819
  2  2407.31
  3  0.0630916
  4  0.0584112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394897': 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) = 5374.39443559
delta logL = 1.00317265606e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.001e-04  2.082e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.202e+00  2.407e+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:  6.341e-01  5.841e-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.395e+00  6.309e-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/394897/cmap_HighResolution_622425601_622684801_4FGL_J2235.8-3627_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-28 16:43:47.262082', job_id='394897', GAL2='0.63', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632872627.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1478' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 394897: <4FGL_J2235.8-3627_daily_bin1478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1478 338.971 -36.4605 622425601 622684801 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 :                                   730.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

