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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1149
RA = 338.971, Dec = -36.4605
tmin = 537148801, tmax = 537408001
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='393657', job_status='RUN', time_executed='2021-09-28 16:25:58.391789', time_epoch_executed='1632871558.39' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393657/ft1_4FGL_J2235.8-3627_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393657/ft1_4FGL_J2235.8-3627_daily_bin1149.fits outfile=/scratch/kocevski/393657/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1149.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=537148801.0 tmax=537408001.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.58
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/393657/ltcube_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.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/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits
.....................!
real 15.08
user 14.55
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/393657/ltcube_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.fits outfile=/scratch/kocevski/393657/expmap_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.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/393657/ltcube_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.fits
.....................!
real 191.22
user 185.30
sys 5.52

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/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits scfile=/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits outfile=/scratch/kocevski/393657/cmap_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits scfile=/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits outfile=/scratch/kocevski/393657/cmap_HighResolution_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/393657/ft2_4FGL_J2235.8-3627_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393657/Model_4FGL_J2235.8-3627_daily_bin1149.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/393657/ft1_filtered_4FGL_J2235.8-3627_daily_bin1149.fits.....................!
real 40.54
user 39.10
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56617E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .15165E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0919       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
     8 'norm      '    17.213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.406       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.963       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10443E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5298       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4640       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6391       1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.485       1.0000         .10000E-03   10000.    
    25 'Prefactor '    66.279       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0348       1.0000         .10000E-03   10000.    
    27 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0040       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.803     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3741 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    68.225        .21672E-04** at limit **
   2  Prefactor     .10000E-03    16.952       -.20832E-06** at limit **
   3  norm          .10000E-03    30.012       -.19853E-06** at limit **
   4  norm          .10005E-03    7.7673        .40306E-05** at limit **
   5  norm          1.0918        .46055        .32518E-07    .22286E-02
   6  Prefactor     3.1430        8.6955       -.85516E-06   -.15558E-04
   7  Prefactor     10.419        6.3214       -.16762E-06   -.51068E-04
   8  norm          17.213        18.751       -.30479E-07    .17765E-04
   9  Prefactor     51.438        49.938        .66149E-06   -.11730E-03
  10  Prefactor     .10000E-03    17.620        .99063E-07** at limit **
  11  Prefactor     16.953        19.661       -.50230E-07   -.38367E-04
  12  norm          4.0127        3.5982       -.27417E-06    .10729E-03
  13  Prefactor     13.549        94.921        .11076E-05    .21455E-04
  14  Prefactor     .10000E-03    8.5858        .35405E-07** at limit **
  15  Prefactor     .10000E-03    3.3757       -.60977E-07** at limit **
  16  norm          .10000E-03    5.9771       -.69507E-06** at limit **
  17  Prefactor     .10000E-03    23.562       -.66263E-06** at limit **
  18  Prefactor     1.5432        58.190        .30449E-05    .72146E-04
  19  norm          5.4629        1.7647        .60377E-07    .12241E-02
  20  Prefactor     55.634        63.973       -.16673E-05    .11274E-03
  21  Prefactor     3.6269        22.062       -.28965E-05    .14755E-04
  22  norm          .10000E-03    7.4850        .66853E-07** at limit **
  23  norm          .10000E-03    3.3485        .10665E-05** at limit **
  24  norm          19.485        9.7034       -.37904E-07   -.86093E-04
  25  Prefactor     66.220        44.235       -.28741E-05   -.34198E-03
  26  Prefactor     3.0688        77.739       -.98550E-06   -.20250E-04
  27  norm          .10000E-03    5.0318        .56125E-05** at limit **
  28  Normalizat    1.0624        .25210       -.15589E-05    .32538E-03
  29  Prefactor     1.0033        .22947        .32205E-05   -.11436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100094
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100051
  norm       = 1.09183
  Prefactor  = 3.14295
  Prefactor  = 10.4188
  norm       = 17.2128
  Prefactor  = 51.4375
  Prefactor  = 0.0001
  Prefactor  = 16.9528
  norm       = 4.01267
  Prefactor  = 13.549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54318
  norm       = 5.46288
  Prefactor  = 55.6336
  Prefactor  = 3.62691
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.4846
  Prefactor  = 66.2204
  Prefactor  = 3.06879
  norm       = 0.000100001
  Normalizat = 1.06236
  Prefactor  = 1.00333
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.803     FROM HESSE     STATUS=OK           553 CALLS     4294 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    78.235        .38654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10005E-03    21.205        .30013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0918        .45251        .29029E-04   -1.5499    
   6  Prefactor     3.1430        8.7088        .22859E-03   -1.5353    
   7  Prefactor     10.419        6.3366        .12412E-03   -1.5062    
   8  norm          17.213        18.744        .96536E-04   -1.4878    
   9  Prefactor     51.438        49.779        .27968E-03   -1.4272    
  10  Prefactor     .10000E-03    17.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.953        19.652        .97245E-04   -1.4884    
  12  norm          4.0127        3.6933        .10038E-03   -1.5307    
  13  Prefactor     13.549        99.807        .10877E-03   -1.4972    
  14  Prefactor     .10000E-03    8.6632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3884        .12455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.466        .30632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5432        61.180        .34511E-03   -1.5460    
  19  norm          5.4629        1.7334        .35476E-04   -1.5240    
  20  Prefactor     55.634        63.687        .26879E-03   -1.4215    
  21  Prefactor     3.6269        22.535        .21177E-03   -1.5327    
  22  norm          .10000E-03    7.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3622        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.485        9.7014        .90736E-04   -1.4825    
  25  Prefactor     66.220        45.392        .49298E-04   -1.4079    
  26  Prefactor     3.0688        77.567        .23292E-03   -1.5358    
  27  norm          .10000E-03    5.2282        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0624        .29090        .27474E-03   -.90970    
  29  Prefactor     1.0033        .26305        .26610E-03   -.92619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14603e-09
Minuit parameter uncertainties:
  1  0.0054438
  2  1.25862e-05
  3  0.000146089
  4  0.00207915
  5  0.452514
  6  8.71233
  7  6.33697
  8  18.7506
  9  49.8195
  10  3.5788e-05
  11  19.6592
  12  3.69354
  13  73.7198
  14  5.46966e-06
  15  7.21818e-07
  16  2.90219e-05
  17  5.95528e-05
  18  19.4538
  19  1.7334
  20  63.7649
  21  18.0909
  22  7.92392e-07
  23  1.7622e-05
  24  9.70218
  25  45.4157
  26  30.9012
  27  0.000153539
  28  0.291335
  29  0.263389
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.579e-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:  1.003e+00  2.634e-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.062e+00  2.913e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393657/likelihoodResults_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.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.80338781
delta logL = -0.000269593486337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4818.80311882
delta logL = -5.98332917434e-07

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.7922       1.0000          .0000       10.000    
     3 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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=   4818.803     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    139.58        .18142E-02** at limit **
   2  Index         2.7349        8.5998        .50000        .86531E-05
   3  Normalizat    1.0624        .17063E-01    .27474E-03    .24208E-04
   4  Prefactor     1.0033        .16202E-01    .26611E-03    .14953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001012
  Index      = 2.73492
  Normalizat = 1.06235
  Prefactor  = 1.00334
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.803     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10120E-03    625.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7349        7.5943        .50000       -.47014    
   3  Normalizat    1.0624        .37819E-01    .10989E-04   -.90970    
   4  Prefactor     1.0033        .35908E-01    .10644E-04   -.92618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75663e-08
Minuit parameter uncertainties:
  1  0.0553638
  2  994.95
  3  0.0378204
  4  0.0359085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393657': 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.80311874
delta logL = -5.20681169291e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.012e-04  5.536e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.735e+00  9.950e+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:  1.003e+00  3.591e-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.062e+00  3.782e-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/393657/cmap_HighResolution_537148801_537408001_4FGL_J2235.8-3627_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-28 16:37:28.032986', job_id='393657', GAL2='1.00', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632872248.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-5.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1149' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 393657: <4FGL_J2235.8-3627_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1149 338.971 -36.4605 537148801 537408001 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

