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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1647
RA = 338.971, Dec = -36.4605
tmin = 666230401, tmax = 666489601
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='833627', job_status='RUN', time_executed='2022-02-14 00:36:38.979330', time_epoch_executed='1644827798.98' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833627/ft1_4FGL_J2235.8-3627_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833627/ft1_4FGL_J2235.8-3627_daily_bin1647.fits outfile=/scratch/kocevski/833627/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1647.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=666230401.0 tmax=666489601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 4.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833627/ltcube_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.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/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits
.....................!
real 11.98
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833627/ltcube_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.fits outfile=/scratch/kocevski/833627/expmap_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.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/833627/ltcube_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.fits
.....................!
real 191.00
user 186.14
sys 4.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/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits scfile=/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits outfile=/scratch/kocevski/833627/cmap_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits scfile=/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits outfile=/scratch/kocevski/833627/cmap_HighResolution_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.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/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833627/ft2_4FGL_J2235.8-3627_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833627/Model_4FGL_J2235.8-3627_daily_bin1647.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/833627/ft1_filtered_4FGL_J2235.8-3627_daily_bin1647.fits.....................!
real 34.60
user 33.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3831       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8651       1.0000         .10000E-03   10000.    
     5 'norm      '    .78415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8787       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    134.43       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16359E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5968       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.594       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.8764       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0289       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92849       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=   3799.110     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3756 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5864       -.10384E-06** at limit **
   2  Prefactor     .10000E-03    6.6053       -.68855E-07** at limit **
   3  norm          1.3790        17.499        .48222E-05    .24888E-03
   4  norm          5.8645        5.3946       -.65882E-07   -.22075E-04
   5  norm          .78412        .42635       -.54204E-09   -.18462E-03
   6  Prefactor     .10000E-03    4.0618       -.27232E-07** at limit **
   7  Prefactor     .10000E-03    5.7160        .40745E-06** at limit **
   8  norm          .10000E-03    7.0794        .25332E-07** at limit **
   9  Prefactor     .10000E-03    64.758        .12889E-05** at limit **
  10  Prefactor     31.000        30.577        .34902E-07   -.86907E-05
  11  Prefactor     7.8643        24.702        .12096E-05    .42399E-04
  12  norm          .10000E-03    1.4663        .17279E-06** at limit **
  13  Prefactor     134.44        64.140        .10823E-06    .62900E-04
  14  Prefactor     16.045        13.406        .14748E-06    .46410E-04
  15  Prefactor     .10000E-03    11.408       -.34996E-06** at limit **
  16  norm          .10000E-03    3.1438        .97181E-07** at limit **
  17  Prefactor     .10008E-03    18.390       -.48665E-05** at limit **
  18  Prefactor     .10000E-03    8.6079        .44045E-06** at limit **
  19  norm          .10000E-03    .23268        .45936E-07** at limit **
  20  Prefactor     65.374        54.971        .20019E-06    .27848E-04
  21  Prefactor     .10000E-03    10.231       -.27995E-06** at limit **
  22  norm          2.5915        83.269        .14078E-05    .71163E-05
  23  norm          .10000E-03    2.0943       -.56007E-07** at limit **
  24  norm          12.594        8.8446        .44864E-07   -.26916E-04
  25  Prefactor     .10001E-03    93.907       -.33879E-05** at limit **
  26  Prefactor     .10000E-03    15.067        .16815E-06** at limit **
  27  norm          4.8744        4.7130       -.74170E-06   -.74520E-03
  28  Normalizat    1.0287        .22503        .84410E-07   -.67644E-04
  29  Prefactor     .92871        .21684       -.11157E-05   -.72014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37899
  norm       = 5.86445
  norm       = 0.784124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 31.0003
  Prefactor  = 7.86426
  norm       = 0.0001
  Prefactor  = 134.437
  Prefactor  = 16.0447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100083
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 65.3741
  Prefactor  = 0.0001
  norm       = 2.5915
  norm       = 0.0001
  norm       = 12.5938
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 4.87445
  Normalizat = 1.02874
  Prefactor  = 0.928711
 **********
 **   18 **HESSE 
 **********

 FCN=   3799.110     FROM HESSE     STATUS=OK           551 CALLS     4307 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6258        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6446        .15471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3790        19.179        .36996E-03   -1.5473    
   4  norm          5.8645        5.3846        .12919E-03   -1.5224    
   5  norm          .78412        .42670        .28217E-04   -1.5531    
   6  Prefactor     .10000E-03    4.0890        .12129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9890        .28777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0804        .16018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.000        30.591        .71956E-04   -1.4594    
  11  Prefactor     7.8643        24.789        .14285E-03   -1.5147    
  12  norm          .10000E-03    1.4742        .72723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     134.44        63.846        .17367E-03   -1.3384    
  14  Prefactor     16.045        13.421        .99991E-04   -1.4907    
  15  Prefactor     .10000E-03    11.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2029        .10653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10008E-03    29.769        .33769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9167        .35213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .25848        .57616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     65.374        55.026        .24820E-03   -1.4089    
  21  Prefactor     .10000E-03    10.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5915        83.807        .25319E-03   -1.5386    
  23  norm          .10000E-03    2.0940        .87094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.594        8.8440        .11287E-03   -1.4998    
  25  Prefactor     .10001E-03    95.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.8744        4.7617        .12811E-03   -1.5266    
  28  Normalizat    1.0287        .26646        .23659E-03   -.92074    
  29  Prefactor     .92871        .25608        .24375E-03   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90047e-09
Minuit parameter uncertainties:
  1  1.67863e-05
  2  1.33859e-05
  3  10.289
  4  5.38499
  5  0.426699
  6  1.53734e-06
  7  5.11764e-05
  8  4.40315e-06
  9  0.000960813
  10  30.6067
  11  24.8214
  12  1.04132e-05
  13  63.8783
  14  13.4239
  15  5.63292e-05
  16  2.84674e-05
  17  0.00314081
  18  0.000164621
  19  4.45839e-06
  20  55.0687
  21  2.03358e-05
  22  29.519
  23  1.71963e-06
  24  8.84489
  25  0.00182463
  26  6.29773e-05
  27  4.76211
  28  0.266805
  29  0.256409
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.100e+01  3.061e+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:  9.287e-01  2.564e-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.029e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/833627/likelihoodResults_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.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) = 3798.25021023
delta logL = 0.859565632938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3798.23660896
delta logL = 0.87316690231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9300       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9169       1.0000          .0000       10.000    
     3 'Normalizat'    .95960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98123       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.

 FCN=   3798.237     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8962        43.773        .59327E-02    .19568E-03
   2  Index         3.9227        3.2400        .94007E-01    .10138E-03
   3  Normalizat    .95954        .77889E-01    .45659E-01    .66674E-05
   4  Prefactor     .98128        .76126E-01    .46032E-01    .50100E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.89621
  Index      = 3.92267
  Normalizat = 0.959537
  Prefactor  = 0.981283
 **********
 **   18 **HESSE 
 **********

 FCN=   3798.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8962        69.502        .68861E-04   -1.5368    
   2  Index         3.9227        6.8199        .37695E-02   -.21717    
   3  Normalizat    .95954        .23288        .24356E-03   -.94399    
   4  Prefactor     .98128        .23188        .23790E-03   -.93356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71901e-07
Minuit parameter uncertainties:
  1  28.4122
  2  4.95902
  3  0.233126
  4  0.23211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833627': 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) = 3798.23660688
delta logL = 0.873168973372

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.896e+00  2.841e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.923e+00  4.959e+00  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:  9.813e-01  2.321e-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:  9.595e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 3.92 +/- 4.96
Photon Flux (Free Index): 8.52e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.47e-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/833627/cmap_HighResolution_666230401_666489601_4FGL_J2235.8-3627_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.29e-05', photon_flux_error='4.28e-08', dlogl='8.73e-01', energy_flux='1.85e-05', photon_flux2='8.52e-08', job_status='DONE', time_completed='2022-02-14 00:46:55.173584', photon_index_error2='4.96', photon_index2='3.92', ts='1.45', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.47e-05', EG='1.03', time_epoch_completed='1644828415.17', return_code='0', job_id='833627', GAL2='0.98', EG2='0.96', return_code2='102', energy_flux_error='1.82e-05', photon_flux_error2='5.76e-08', ts2='3.31', photon_index='2.23' WHERE bin_id='1647' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:46:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 833627: <4FGL_J2235.8-3627_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:35:49 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:35:51 2022
Terminated at Mon Feb 14 00:46:56 2022
Results reported at Mon Feb 14 00:46:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1647 338.971 -36.4605 666230401 666489601 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 :                                   618.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            667 sec.

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

