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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1247
RA = 338.971, Dec = -36.4605
tmin = 562550401, tmax = 562809601
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='393815', job_status='RUN', time_executed='2021-09-28 16:27:32.550996', time_epoch_executed='1632871652.55' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393815/ft1_4FGL_J2235.8-3627_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393815/ft1_4FGL_J2235.8-3627_daily_bin1247.fits outfile=/scratch/kocevski/393815/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1247.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=562550401.0 tmax=562809601.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.47
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/393815/ltcube_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.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/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits
.....................!
real 11.79
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/393815/ltcube_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.fits outfile=/scratch/kocevski/393815/expmap_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.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/393815/ltcube_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.fits
.....................!
real 190.51
user 185.09
sys 4.71

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/393815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1247.fits scfile=/scratch/kocevski/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits outfile=/scratch/kocevski/393815/cmap_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.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.57
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/393815/ft2_4FGL_J2235.8-3627_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393815/Model_4FGL_J2235.8-3627_daily_bin1247.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/393815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1247.fits.....................!
real 34.90
user 33.52
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53357E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4621       1.0000         .10000E-03   10000.    
     5 'norm      '    .92312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4296       1.0000         .10000E-03   10000.    
     8 'norm      '    13.476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45589E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.987       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.275       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0761       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .85023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.722       1.0000         .10000E-03   10000.    
    27 'norm      '    .17265E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4598       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .51498       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3764.212     FROM MIGRAD    STATUS=FAILED      1335 CALLS     4900 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86947        18.990        .34803E-02    .16231E-02
   2  Prefactor     .10000E-03    10.124        .18142E-02** at limit **
   3  norm          .10000E-03    15.060        .57114E-01** at limit **
   4  norm          3.4632        7.6324        .20878E-03   -.17583E-03
   5  norm          .92309        .52507        .28692E-04   -.14444E-02
   6  Prefactor     2.6752        5.1946        .18951E-03   -.45953E-04
   7  Prefactor     2.4300        4.0897        .15274E-03   -.96944E-04
   8  norm          13.473        23.058        .10911E-03    .36468E-06
   9  Prefactor     37.450        61.270        .65459E-04    .76713E-04
  10  Prefactor     40.997        30.105        .62603E-04    .80812E-05
  11  Prefactor     .10000E-03    12.162        .18142E-02** at limit **
  12  norm          4.8468        3.5561        .95742E-04   -.27845E-04
  13  Prefactor     .10000E-03    207.95        .21202E-02** at limit **
  14  Prefactor     .10000E-03    5.1415        .13566E-02** at limit **
  15  Prefactor     .10000E-03    2.8509        .10111E-02** at limit **
  16  norm          .10000E-03    2.9349        .10228E-02** at limit **
  17  Prefactor     .10000E-03    9.6031        .18142E-02** at limit **
  18  Prefactor     24.985        14.644        .80137E-04    .30714E-03
  19  norm          1.0243        .94730        .47211E-04    .11662E-02
  20  Prefactor     52.275        51.700        .55472E-04   -.55130E-05
  21  Prefactor     .10000E-03    6.8554        .15672E-02** at limit **
  22  norm          .10000E-03    8.1283        .17085E-02** at limit **
  23  norm          4.0928        6.3469        .17053E-03   -.97435E-04
  24  norm          .10000E-03    6.3746        .15074E-02** at limit **
  25  Prefactor     .10002E-03    63.279        .11136    ** at limit **
  26  Prefactor     19.704        48.872        .90188E-04    .42607E-04
  27  norm          .12174E-02    7.7155        .38138E-01** at limit **
  28  Normalizat    1.4599        .27709        .21215E-03   -.84614E-04
  29  Prefactor     .51505        .24789        .31838E-03   -.51133E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3764.212     FROM SIMPLEX   STATUS=UNCHANGED   1528 CALLS     6428 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86947        18.990        .34171E-05   -1.5521    
   2  Prefactor     .10000E-03    10.124        .53868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.060        .40470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4632        7.6324        .83227E-07   -1.5336    
   5  norm          .92309        .52507        .83941E-07   -1.5516    
   6  Prefactor     2.6752        5.1946        .83849E-07   -1.5381    
   7  Prefactor     2.4300        4.0897        .83580E-07   -1.5396    
   8  norm          13.473        23.058        .82215E-07   -1.4974    
   9  Prefactor     37.450        61.270        .80629E-07   -1.4483    
  10  Prefactor     40.997        30.105        .78357E-07   -1.4427    
  11  Prefactor     .10000E-03    12.162        .26016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8468        3.5561        .82610E-07   -1.5268    
  13  Prefactor     .10000E-03    207.95        .12972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1415        .34410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8509        .21237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9349        .15736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6031        .36271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.985        14.644        .84201E-07   -1.4708    
  19  norm          1.0243        .94730        .84814E-07   -1.5506    
  20  Prefactor     52.275        51.700        .89809E-07   -1.4261    
  21  Prefactor     .10000E-03    6.8554        .26903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.1283        .52447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0928        6.3469        .83504E-07   -1.5303    
  24  norm          .10000E-03    6.3746        .32951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    63.279        .12897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.704        48.872        .82105E-07   -1.4820    
  27  norm          .12174E-02    7.7155        .12925E-06   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4599        .27709        .43777E-07   -.78912    
  29  Prefactor     .51505        .24789        .60612E-07   -1.1129    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3764.212     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     6986 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86949        18.948        .69606E-03    .67128E-05
   2  Prefactor     .10000E-03    10.127        .36285E-03** at limit **
   3  norm          .10000E-03    13.633        .60931E-01** at limit **
   4  norm          3.4633        7.6286        .83512E-05    .15927E-04
   5  norm          .92310        .52488        .57383E-05    .32689E-04
   6  Prefactor     2.6752        5.1944        .75802E-05    .89987E-06
   7  Prefactor     2.4300        4.0891        .61098E-05    .93037E-06
   8  norm          13.473        23.056        .43644E-05    .52097E-07
   9  Prefactor     37.449        61.265        .13092E-04    .17368E-06
  10  Prefactor     40.997        30.105        .25041E-05    .45400E-06
  11  Prefactor     .10000E-03    12.163        .36285E-03** at limit **
  12  norm          4.8468        3.5558        .38297E-05    .59371E-06
  13  Prefactor     .10000E-03    208.02        .42405E-03** at limit **
  14  Prefactor     .10000E-03    5.1418        .27133E-03** at limit **
  15  Prefactor     .10000E-03    2.8509        .20223E-03** at limit **
  16  norm          .10000E-03    2.9351        .20456E-03** at limit **
  17  Prefactor     .10000E-03    9.6033        .36285E-03** at limit **
  18  Prefactor     24.985        14.645        .32055E-05   -.46106E-05
  19  norm          1.0243        .94747        .18884E-05   -.84283E-05
  20  Prefactor     52.275        51.698        .11094E-04    .40989E-06
  21  Prefactor     .10000E-03    6.8556        .31344E-03** at limit **
  22  norm          .10000E-03    8.1283        .34170E-03** at limit **
  23  norm          4.0928        6.3160        .68211E-05    .71668E-05
  24  norm          .10000E-03    6.3758        .30148E-03** at limit **
  25  Prefactor     .10001E-03    58.397        .11580    ** at limit **
  26  Prefactor     19.704        48.868        .36075E-05    .31514E-06
  27  norm          .12178E-02    6.6539        .41608E-01** at limit **
  28  Normalizat    1.4599        .27715        .42431E-04    .24168E-04
  29  Prefactor     .51505        .24802        .12735E-04    .14997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.869489
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 3.46325
  norm       = 0.923097
  Prefactor  = 2.67524
  Prefactor  = 2.43
  norm       = 13.4735
  Prefactor  = 37.4492
  Prefactor  = 40.9967
  Prefactor  = 0.0001
  norm       = 4.84685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9852
  norm       = 1.02429
  Prefactor  = 52.2751
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.0928
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 19.704
  norm       = 0.0012178
  Normalizat = 1.45989
  Prefactor  = 0.515046
 **********
 **   18 **HESSE 
 **********

 FCN=   3764.212     FROM HESSE     STATUS=OK           555 CALLS     7541 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86949        18.920        .27842E-04   -1.5521    
   2  Prefactor     .10000E-03    10.127        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.064        .59677E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4633        7.6298        .16702E-05   -1.5336    
   5  norm          .92310        .52487        .11477E-05   -1.5516    
   6  Prefactor     2.6752        5.1939        .15160E-05   -1.5381    
   7  Prefactor     2.4300        4.0883        .12220E-05   -1.5396    
   8  norm          13.473        23.057        .43644E-05   -1.4974    
   9  Prefactor     37.449        61.254        .26183E-05   -1.4483    
  10  Prefactor     40.997        30.086        .50082E-06   -1.4427    
  11  Prefactor     .10000E-03    12.163        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8468        3.5564        .76594E-06   -1.5268    
  13  Prefactor     .10000E-03    208.02        .84810E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1418        .54265E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8509        .40446E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9351        .40912E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6033        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.985        14.657        .64110E-06   -1.4708    
  19  norm          1.0243        .94785        .37768E-06   -1.5506    
  20  Prefactor     52.275        51.697        .22189E-05   -1.4261    
  21  Prefactor     .10000E-03    6.8556        .62687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.1283        .68340E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0928        6.3222        .13642E-05   -1.5303    
  24  norm          .10000E-03    6.3758        .60295E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    59.658        .11453       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.704        49.032        .72151E-06   -1.4820    
  27  norm          .12178E-02    6.8679        .40833E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4599        .27709        .84862E-05   -.78912    
  29  Prefactor     .51505        .24810        .25471E-05   -1.1129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5995e-12
Minuit parameter uncertainties:
  1  8.11442
  2  7.45408e-07
  3  0.000389841
  4  7.6319
  5  0.524877
  6  5.19479
  7  4.08872
  8  23.0718
  9  61.3569
  10  30.0974
  11  2.01342e-07
  12  3.55656
  13  2.56114e-06
  14  3.43446e-08
  15  2.61641e-09
  16  2.19839e-07
  17  1.03548e-06
  18  14.6588
  19  0.947866
  20  51.7418
  21  6.30065e-07
  22  1.77649e-08
  23  6.32318
  24  6.99921e-08
  25  0.00186509
  26  49.1325
  27  0.175256
  28  0.277378
  29  0.248623
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.100e+01  3.010e+01  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:  5.150e-01  2.486e-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.460e+00  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.79e-05

TS (Fixed Index): 2.98
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393815/likelihoodResults_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.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): 0
logL (Free Index) = 3764.21144094
delta logL = 9.74756326286e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3764.21139276
delta logL = 0.000145651820276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.669       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2404       1.0000          .0000       10.000    
     3 'Normalizat'    1.4593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51535       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=   3764.211     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      263 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.639        37.445        .62856E-04    .36083E-04
   2  Index         2.2394        .60171        .56800E-02    .20011E-03
   3  Normalizat    1.4593        .26133        .21218E-03    .83852E-05
   4  Prefactor     .51544        .24362        .31828E-03    .13430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6392
  Index      = 2.23942
  Normalizat = 1.45932
  Prefactor  = 0.515444
 **********
 **   18 **HESSE 
 **********

 FCN=   3764.211     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.639        36.476        .25142E-05   -1.4432    
   2  Index         2.2394        .58615        .11360E-02   -.58490    
   3  Normalizat    1.4593        .26141        .84873E-05   -.78928    
   4  Prefactor     .51544        .24370        .12731E-04   -1.1127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1203e-12
Minuit parameter uncertainties:
  1  36.4965
  2  0.588097
  3  0.261654
  4  0.244192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393815': 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): 0
logL (Free Index) = 3764.2113887
delta logL = 0.000149718646298

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.064e+01  3.650e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.239e+00  5.881e-01  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:  5.154e-01  2.442e-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.459e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.24 +/- 0.59
Photon Flux (Free Index): 5.77e-08 +/- 4.70e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.38e-05

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/393815/cmap_HighResolution_562550401_562809601_4FGL_J2235.8-3627_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='2.42e-05', photon_flux_error='4.21e-08', dlogl='1.50e-04', energy_flux='2.44e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-09-28 16:40:15.718230', photon_index_error2='0.59', photon_index2='2.24', ts='2.98', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='2.38e-05', EG='1.46', time_epoch_completed='1632872415.72', return_code='0', job_id='393815', GAL2='0.52', EG2='1.46', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.70e-08', ts2='2.95', photon_index='2.23' WHERE bin_id='1247' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:15 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1247 338.971 -36.4605 562550401 562809601 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 :                                   757.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

