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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1110
RA = 338.971, Dec = -36.4605
tmin = 527040001, tmax = 527299201
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='393595', job_status='RUN', time_executed='2021-09-28 16:28:31.056217', time_epoch_executed='1632871711.06' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393595/ft1_4FGL_J2235.8-3627_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393595/ft1_4FGL_J2235.8-3627_daily_bin1110.fits outfile=/scratch/kocevski/393595/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1110.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=527040001.0 tmax=527299201.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 5.99
user 5.69
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/393595/ltcube_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.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/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits
.....................!
real 11.86
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/393595/ltcube_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.fits outfile=/scratch/kocevski/393595/expmap_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.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/393595/ltcube_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.fits
.....................!
real 191.21
user 185.52
sys 5.21

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/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits scfile=/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits outfile=/scratch/kocevski/393595/cmap_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits scfile=/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits outfile=/scratch/kocevski/393595/cmap_HighResolution_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/393595/ft2_4FGL_J2235.8-3627_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393595/Model_4FGL_J2235.8-3627_daily_bin1110.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/393595/ft1_filtered_4FGL_J2235.8-3627_daily_bin1110.fits.....................!
real 40.63
user 39.35
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5872       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8852       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8624       1.0000         .10000E-03   10000.    
     8 'norm      '    35.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12763E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36158       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.387       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    22.744       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    170.50       1.0000         .10000E-03   10000.    
    27 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98150       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=   4538.790     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3722 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.384        9.4836        .70222E-07   -.18070E-03
   2  Prefactor     .10000E-03    4.4105        .88114E-06** at limit **
   3  norm          4.5818        7.1223        .66357E-05   -.15447E-03
   4  norm          .10000E-03    2.6173       -.36033E-06** at limit **
   5  norm          1.8852        .44751        .82784E-08   -.30014E-03
   6  Prefactor     3.6348        9.6762        .13381E-04   -.12689E-03
   7  Prefactor     6.8710        7.1676        .13573E-05   -.10855E-03
   8  norm          35.703        25.115        .37394E-06   -.13706E-04
   9  Prefactor     .10000E-03    15.918       -.60047E-07** at limit **
  10  Prefactor     .10000E-03    19.358       -.53311E-06** at limit **
  11  Prefactor     .10011E-03    24.425       -.10865E-05** at limit **
  12  norm          .10000E-03    .69392       -.16191E-07** at limit **
  13  Prefactor     .10000E-03    20.050       -.17876E-07** at limit **
  14  Prefactor     .10000E-03    6.5944        .31366E-06** at limit **
  15  Prefactor     .35040        7.2463        .94491E-06   -.14480E-03
  16  norm          .10000E-03    1.6224        .54771E-08** at limit **
  17  Prefactor     .10000E-03    10.473       -.63436E-07** at limit **
  18  Prefactor     .10000E-03    10.718        .37812E-06** at limit **
  19  norm          1.8560        1.1038        .11398E-06   -.11913E-03
  20  Prefactor     21.178        81.470        .32287E-05    .89593E-06
  21  Prefactor     29.391        21.950        .16549E-06   -.44157E-04
  22  norm          .10000E-03    15.258        .51737E-08** at limit **
  23  norm          .10000E-03    5.6636       -.66264E-07** at limit **
  24  norm          22.689        29.174        .51600E-06   -.38378E-05
  25  Prefactor     .10000E-03    178.89        .27922E-06** at limit **
  26  Prefactor     171.15        194.90        .70188E-05    .22936E-03
  27  norm          .10000E-03    12.351       -.20866E-06** at limit **
  28  Normalizat    1.0050        .26183       -.11016E-04    .93395E-04
  29  Prefactor     .98276        .22011        .43213E-05   -.37791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3837
  Prefactor  = 0.000100002
  norm       = 4.5818
  norm       = 0.0001
  norm       = 1.88517
  Prefactor  = 3.63479
  Prefactor  = 6.87102
  norm       = 35.7025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.350403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85597
  Prefactor  = 21.1779
  Prefactor  = 29.3907
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.6891
  Prefactor  = 0.000100001
  Prefactor  = 171.153
  norm       = 0.0001
  Normalizat = 1.00496
  Prefactor  = 0.98276
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.790     FROM HESSE     STATUS=OK           555 CALLS     4277 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.384        9.4515        .10212E-03   -1.4923    
   2  Prefactor     .10000E-03    10.178        .27330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5818        7.2060        .93970E-03   -1.5280    
   4  norm          .10000E-03    2.6656        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8852        .44778        .21134E-04   -1.5433    
   6  Prefactor     3.6348        9.6806        .10607E-02   -1.5327    
   7  Prefactor     6.8710        7.1820        .15316E-03   -1.5184    
   8  norm          35.703        25.115        .67070E-04   -1.4512    
   9  Prefactor     .10000E-03    15.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10011E-03    177.45        .63567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .69437        .54806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6057        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .35040        27.695        .34839E-02   -1.5590    
  16  norm          .10000E-03    1.6257        .83792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8560        1.1035        .15297E-03   -1.5435    
  20  Prefactor     21.178        81.440        .87050E-04   -1.4787    
  21  Prefactor     29.391        21.968        .73906E-04   -1.4623    
  22  norm          .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.6693        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.689        29.174        .83990E-04   -1.4755    
  25  Prefactor     .10000E-03    179.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     171.15        195.19        .15449E-03   -1.3084    
  27  norm          .10000E-03    12.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0050        .30023        .28284E-03   -.92864    
  29  Prefactor     .98276        .25769        .25366E-03   -.93306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60825e-09
Minuit parameter uncertainties:
  1  9.45241
  2  0.00031364
  3  7.20732
  4  1.00246e-06
  5  0.447777
  6  9.68476
  7  7.18291
  8  25.1223
  9  6.63719e-06
  10  7.98107e-05
  11  0.00897513
  12  8.81675e-07
  13  3.38065e-05
  14  2.27356e-06
  15  6.23247
  16  1.2719e-06
  17  3.10944e-06
  18  1.63606e-06
  19  1.10352
  20  81.8725
  21  21.9737
  22  1.47496e-05
  23  7.51449e-06
  24  29.1926
  25  0.000836208
  26  195.933
  27  8.2279e-05
  28  0.300732
  29  0.258011
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.981e-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:  9.828e-01  2.580e-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.005e+00  3.007e-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: 9.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393595/likelihoodResults_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.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) = 4538.79030984
delta logL = -0.000245519898272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4538.79006447
delta logL = -1.56808710017e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1370       1.0000          .0000       10.000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98277       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=   4538.790     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6422.9        .90712E-02** at limit **
   2  Index         2.1515        5.8782        .50000       -.65505E-05
   3  Normalizat    1.0050        .10401        .46229E-01    .14994E-04
   4  Prefactor     .98277        .92622E-01    .46051E-01    .13433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1515
  Normalizat = 1.00495
  Prefactor  = 0.982769
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.790     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1515        6.0249        .50000       -.60614    
   3  Normalizat    1.0050        .27712        .28285E-03   -.92865    
   4  Prefactor     .98277        .24742        .25366E-03   -.93306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00823e-11
Minuit parameter uncertainties:
  1  7.34026e-06
  2  4.79464
  3  0.277513
  4  0.247706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393595': 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) = 4538.79006444
delta logL = -1.21660377772e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.340e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  4.795e+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.828e-01  2.477e-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.005e+00  2.775e-01  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/393595/cmap_HighResolution_527040001_527299201_4FGL_J2235.8-3627_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-28 16:39:31.777782', job_id='393595', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632872371.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1110' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 393595: <4FGL_J2235.8-3627_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1110 338.971 -36.4605 527040001 527299201 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 :                                   650.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

