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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1589
RA = 338.971, Dec = -36.4605
tmin = 651196801, tmax = 651456001
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='395074', job_status='RUN', time_executed='2021-09-28 16:31:13.341264', time_epoch_executed='1632871873.34' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395074/ft1_4FGL_J2235.8-3627_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395074/ft1_4FGL_J2235.8-3627_daily_bin1589.fits outfile=/scratch/kocevski/395074/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1589.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=651196801.0 tmax=651456001.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.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.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/395074/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/395074/ltcube_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.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/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits
.....................!
real 11.78
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/395074/ltcube_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.fits outfile=/scratch/kocevski/395074/expmap_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.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/395074/ltcube_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.fits
.....................!
real 190.44
user 185.31
sys 4.81

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/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits outfile=/scratch/kocevski/395074/cmap_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits outfile=/scratch/kocevski/395074/cmap_HighResolution_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/395074/ft2_4FGL_J2235.8-3627_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395074/Model_4FGL_J2235.8-3627_daily_bin1589.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/395074/ft1_filtered_4FGL_J2235.8-3627_daily_bin1589.fits......................!
real 37.26
user 36.01
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54231E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26926E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.657       1.0000         .10000E-03   10000.    
     4 'norm      '    13.557       1.0000         .10000E-03   10000.    
     5 'norm      '    .50274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8091       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94374E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.417       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .82391       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.545       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.840       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.094       1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5109       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .47875       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=   4009.352     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3706 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.494        .10355E-04** at limit **
   2  Prefactor     .10001E-03    7.4896       -.15573E-06** at limit **
   3  norm          24.652        15.500        .31189E-06    .61961E-04
   4  norm          13.557        7.8805       -.56134E-07   -.46239E-04
   5  norm          .50275        .33624        .66010E-08    .13688E-03
   6  Prefactor     8.8916        11.163       -.19605E-06   -.11130E-03
   7  Prefactor     1.8006        4.8208       -.67931E-06   -.18853E-03
   8  norm          .10000E-03    24.525       -.50933E-06** at limit **
   9  Prefactor     20.112        56.467        .31117E-05    .31667E-04
  10  Prefactor     .10000E-03    9.8713        .16666E-06** at limit **
  11  Prefactor     .10001E-03    110.39        .11506E-04** at limit **
  12  norm          1.5394        1.5278        .70654E-07    .52506E-04
  13  Prefactor     .10000E-03    23.143        .26720E-06** at limit **
  14  Prefactor     10.409        22.500       -.30507E-07   -.49707E-04
  15  Prefactor     .10000E-03    3.5839        .34125E-06** at limit **
  16  norm          .10000E-03    3.2045       -.13033E-06** at limit **
  17  Prefactor     .10000E-03    8.0210       -.12863E-06** at limit **
  18  Prefactor     .10000E-03    22.370       -.17240E-06** at limit **
  19  norm          .82530        .71162        .10656E-06    .40200E-03
  20  Prefactor     .10000E-03    24.535       -.17092E-06** at limit **
  21  Prefactor     .10000E-03    6.7191       -.11157E-06** at limit **
  22  norm          12.526        17.899       -.24038E-06   -.29496E-04
  23  norm          .10000E-03    2.0121       -.34876E-07** at limit **
  24  norm          20.834        15.535       -.15000E-06   -.67232E-04
  25  Prefactor     .10000E-03    16.740       -.30605E-06** at limit **
  26  Prefactor     18.100        58.949       -.88173E-06   -.17949E-04
  27  norm          .10000E-03    2.0168       -.69930E-07** at limit **
  28  Normalizat    1.5113        .26242       -.81800E-06    .11052E-03
  29  Prefactor     .47839        .22384        .20789E-05   -.92294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100007
  norm       = 24.6515
  norm       = 13.5567
  norm       = 0.502747
  Prefactor  = 8.89156
  Prefactor  = 1.80063
  norm       = 0.0001
  Prefactor  = 20.1123
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.53945
  Prefactor  = 0.0001
  Prefactor  = 10.4092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.825298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5257
  norm       = 0.0001
  norm       = 20.8342
  Prefactor  = 0.0001
  Prefactor  = 18.0996
  norm       = 0.0001
  Normalizat = 1.51131
  Prefactor  = 0.478391
 **********
 **   18 **HESSE 
 **********

 FCN=   4009.352     FROM HESSE     STATUS=OK           553 CALLS     4259 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.547        .38907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    24.602        .33359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.652        15.386        .80671E-04   -1.4715    
   4  norm          13.557        7.8687        .10879E-03   -1.4971    
   5  norm          .50275        .33526        .28514E-04   -1.5566    
   6  Prefactor     8.8916        11.231        .13438E-03   -1.5112    
   7  Prefactor     1.8006        4.8437        .21230E-03   -1.5440    
   8  norm          .10000E-03    24.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.112        56.585        .89193E-04   -1.4811    
  10  Prefactor     .10000E-03    9.8759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    113.90        .41600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5394        1.5492        .76050E-04   -1.5460    
  13  Prefactor     .10000E-03    23.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.409        22.772        .12414E-03   -1.5063    
  15  Prefactor     .10000E-03    3.5959        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2316        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0322        .17514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .82530        .70163        .47187E-04   -1.5526    
  20  Prefactor     .10000E-03    24.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.7387        .16027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.526        17.900        .11310E-03   -1.5000    
  23  norm          .10000E-03    2.0128        .87721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.834        15.569        .87739E-04   -1.4795    
  25  Prefactor     .10000E-03    16.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.100        58.930        .94156E-04   -1.4857    
  27  norm          .10000E-03    2.0259        .87811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5113        .30067        .21622E-03   -.77461    
  29  Prefactor     .47839        .24758        .32585E-03   -1.1298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80872e-10
Minuit parameter uncertainties:
  1  0.000756481
  2  0.000818196
  3  15.3886
  4  7.86935
  5  0.335257
  6  11.2334
  7  4.84478
  8  7.71864e-05
  9  56.7362
  10  1.08479e-05
  11  0.00168834
  12  1.54924
  13  4.55523e-05
  14  22.791
  15  8.29459e-06
  16  1.32212e-05
  17  1.89604e-05
  18  0.000106449
  19  0.701636
  20  3.19974e-05
  21  1.55595e-05
  22  17.9075
  23  1.36252e-06
  24  15.572
  25  3.35048e-05
  26  59.1206
  27  7.74925e-07
  28  0.301024
  29  0.248137
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.085e-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:  4.784e-01  2.481e-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.511e+00  3.010e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395074/likelihoodResults_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.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) = 4009.35225165
delta logL = -0.000477406622394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4009.3517743
delta logL = -5.41631379747e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2257       1.0000          .0000       10.000    
     3 'Normalizat'    1.5114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47833       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=   4009.352     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    300.35        .18142E-02** at limit **
   2  Index         2.1580        5.7212        .50000        .22501E-05
   3  Normalizat    1.5113        .31786E-01    .21621E-03   -.31312E-04
   4  Prefactor     .47840        .28574E-01    .32585E-03   -.41623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100352
  Index      = 2.15805
  Normalizat = 1.51131
  Prefactor  = 0.478395
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    1141.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1580        5.8888        .50000       -.60455    
   3  Normalizat    1.5113        .72545E-01    .43243E-04   -.77461    
   4  Prefactor     .47840        .65179E-01    .13034E-04   -1.1298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.87247e-08
Minuit parameter uncertainties:
  1  0.0408795
  2  3986.14
  3  0.07255
  4  0.0651892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395074': 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) = 4009.35177422
delta logL = 2.9102920962e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.004e-04  4.088e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.158e+00  3.986e+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:  4.784e-01  6.519e-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.511e+00  7.255e-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/395074/cmap_HighResolution_651196801_651456001_4FGL_J2235.8-3627_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-28 16:41:32.398223', job_id='395074', GAL2='0.48', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632872492.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='2.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1589' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 395074: <4FGL_J2235.8-3627_daily_bin1589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1589 338.971 -36.4605 651196801 651456001 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 :                                   613.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

