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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1029
RA = 338.971, Dec = -36.4605
tmin = 506044801, tmax = 506304001
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='393461', job_status='RUN', time_executed='2021-09-28 16:27:34.239586', time_epoch_executed='1632871654.24' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393461/ft1_4FGL_J2235.8-3627_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393461/ft1_4FGL_J2235.8-3627_daily_bin1029.fits outfile=/scratch/kocevski/393461/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1029.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=506044801.0 tmax=506304001.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.40
user 4.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393461/ft1_filtered_4FGL_J2235.8-3627_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/393461/ltcube_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.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/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits
.....................!
real 12.09
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393461/ft1_filtered_4FGL_J2235.8-3627_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/393461/ltcube_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.fits outfile=/scratch/kocevski/393461/expmap_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.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/393461/ltcube_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.fits
.....................!
real 192.02
user 185.94
sys 5.36

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/393461/ft1_filtered_4FGL_J2235.8-3627_daily_bin1029.fits scfile=/scratch/kocevski/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits outfile=/scratch/kocevski/393461/cmap_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393461/ft1_filtered_4FGL_J2235.8-3627_daily_bin1029.fits scfile=/scratch/kocevski/393461/ft2_4FGL_J2235.8-3627_daily_bin1029.fits outfile=/scratch/kocevski/393461/cmap_HighResolution_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75547       1.0000         .10000E-03   10000.    
     3 'norm      '    14.717       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8142       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2353       1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36671       1.0000         .10000E-03   10000.    
    19 'norm      '    .91953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7345       1.0000         .10000E-03   10000.    
    22 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .90142       1.0000         .10000E-03   10000.    
    24 'norm      '    12.660       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3555       1.0000         .10000E-03   10000.    
    27 'norm      '    5.3025       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64569       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6218.758     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     3116 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9879        .58956E-06** at limit **
   2  Prefactor     .75597        11.994       -.20492E-06   -.58131E-04
   3  norm          14.719        5.6043       -.62735E-05   -.92172E-02
   4  norm          3.8121        4.3743        .67220E-06    .22195E-03
   5  norm          1.7802        .46124        .38001E-07    .38502E-03
   6  Prefactor     .10000E-03    5.0309        .54373E-06** at limit **
   7  Prefactor     4.2330        3.6152        .10138E-07    .18189E-03
   8  norm          .10003E-03    23.987       -.39191E-05** at limit **
   9  Prefactor     16.621        2.3174        .85317E-06    .55033E-03
  10  Prefactor     20.394        1.1930       -.29344E-06    .37637E-03
  11  Prefactor     .10000E-03    14.192        .37234E-05** at limit **
  12  norm          .10000E-03    1.0817        .11783E-06** at limit **
  13  Prefactor     75.947        64.113        .12037E-04   -.80443E-03
  14  Prefactor     9.4300        1.7804       -.10491E-05   -.75359E-04
  15  Prefactor     .10000E-03    2.1166        .69706E-06** at limit **
  16  norm          .10000E-03    1.0299       -.31616E-06** at limit **
  17  Prefactor     15.264        11.521       -.42264E-06    .74608E-03
  18  Prefactor     .13576        231.97       -.69881E-04    .52339E-04
  19  norm          .92460        .56868       -.52349E-06    .36977E-03
  20  Prefactor     .10039E-03    36.603       -.20423E-04** at limit **
  21  Prefactor     4.7749        7.3821       -.86657E-06   -.92484E-04
  22  norm          .10000E-03    21.788       -.51393E-06** at limit **
  23  norm          .90110        10.937       -.23682E-05   -.76846E-04
  24  norm          12.659        1.6121       -.47716E-06   -.17273E-02
  25  Prefactor     .10053E-03    27.595        .34060E-04** at limit **
  26  Prefactor     7.3344        4.9440        .27941E-06   -.24913E-02
  27  norm          5.3018        5.2409        .20992E-05    .14630E-03
  28  Normalizat    1.2327        .21136       -.38829E-05    .70227E-04
  29  Prefactor     .64543        .19862        .43658E-05    .30199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.755973
  norm       = 14.7194
  norm       = 3.81211
  norm       = 1.78021
  Prefactor  = 0.0001
  Prefactor  = 4.23296
  norm       = 0.000100026
  Prefactor  = 16.6209
  Prefactor  = 20.3944
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.9467
  Prefactor  = 9.42995
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2644
  Prefactor  = 0.135757
  norm       = 0.9246
  Prefactor  = 0.000100391
  Prefactor  = 4.7749
  norm       = 0.000100005
  norm       = 0.901096
  norm       = 12.6588
  Prefactor  = 0.000100529
  Prefactor  = 7.33437
  norm       = 5.30183
  Normalizat = 1.23273
  Prefactor  = 0.645434
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.758     FROM HESSE     STATUS=OK           625 CALLS     3741 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75597        11.657        .12273E-01   -1.5534    
   3  norm          14.719        9.2929        .26101E-02   -1.4940    
   4  norm          3.8121        4.3976        .51667E-02   -1.5317    
   5  norm          1.7802        .45938        .57809E-02   -1.5441    
   6  Prefactor     .10000E-03    4.9380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2330        3.6621        .48949E-02   -1.5296    
   8  norm          .10003E-03    30.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.621        37.777        .24571E-02   -1.4892    
  10  Prefactor     20.394        15.379        .22171E-02   -1.4804    
  11  Prefactor     .10000E-03    14.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.947        65.265        .11537E-02   -1.3963    
  14  Prefactor     9.4300        11.646        .32651E-02   -1.5094    
  15  Prefactor     .10000E-03    2.1130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.264        13.516        .25720E-02   -1.4926    
  18  Prefactor     .13576        6.6181        .93739E-01   -1.5634    
  19  norm          .92460        .56706        .90334E-02   -1.5516    
  20  Prefactor     .10039E-03    43.809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7749        7.5130        .46231E-02   -1.5271    
  22  norm          .10000E-03    21.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .90110        13.122        .12813E-01   -1.5518    
  24  norm          12.659        7.4373        .28145E-02   -1.4996    
  25  Prefactor     .10053E-03    40.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.3344        44.367        .36971E-02   -1.5166    
  27  norm          5.3018        5.8412        .43635E-02   -1.5247    
  28  Normalizat    1.2327        .18017        .50243E-01   -.85597    
  29  Prefactor     .64543        .16737        .64473E-01   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08737e-06
Minuit parameter uncertainties:
  1  1.56794e-05
  2  5.93823
  3  9.29384
  4  4.39798
  5  0.459381
  6  1.04616e-06
  7  3.66231
  8  0.00178929
  9  37.8312
  10  15.3824
  11  0.000108259
  12  3.47017e-07
  13  65.327
  14  11.6488
  15  1.19434e-05
  16  2.00093e-06
  17  13.5182
  18  1.89527
  19  0.567062
  20  0.00828309
  21  7.51449
  22  0.000648138
  23  6.87876
  24  7.4378
  25  0.00920837
  26  36.1176
  27  5.84188
  28  0.18026
  29  0.167501
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.039e+01  1.538e+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:  6.454e-01  1.675e-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.233e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 9.16e-06

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) = 6217.62643055
delta logL = 1.13112140218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6217.5982559
delta logL = 1.15929605354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.149       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4866       1.0000          .0000       10.000    
     3 'Normalizat'    1.2493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63757       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=   6217.598     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.139        20.372       -.70379E-05   -.10149E-03
   2  Index         1.4854        .47649       -.36973E-04    .29929E-04
   3  Normalizat    1.2493        .16927        .75600E-06    .39956E-03
   4  Prefactor     .63736        .16316        .33314E-06    .25608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.139
  Index      = 1.48541
  Normalizat = 1.24933
  Prefactor  = 0.63736
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.598     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.139        20.033        .85109E-04   -1.4767    
   2  Index         1.4854        .46835        .79924E-02   -.77949    
   3  Normalizat    1.2493        .20143        .22081E-03   -.85092    
   4  Prefactor     .63736        .19384        .28688E-03   -1.0604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52485e-10
Minuit parameter uncertainties:
  1  20.0388
  2  0.469715
  3  0.201553
  4  0.19404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393461': 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) = 6217.59825087
delta logL = 1.15930109168

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.214e+01  2.004e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.485e+00  4.697e-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:  6.374e-01  1.940e-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.249e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.97
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.49 +/- 0.47
Photon Flux (Free Index): 1.36e-08 +/- 1.41e-08
Energy Flux (Free Index): 4.51e-05 +/- 5.44e-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/393461/cmap_HighResolution_506044801_506304001_4FGL_J2235.8-3627_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='4.51e-05', photon_flux_error='2.15e-08', dlogl='1.16e+00', energy_flux='1.22e-05', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-28 16:38:52.078123', photon_index_error2='0.47', photon_index2='1.49', ts='6.66', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='5.44e-05', EG='1.23', time_epoch_completed='1632872332.08', return_code='0', job_id='393461', GAL2='0.64', EG2='1.25', return_code2='0', energy_flux_error='9.16e-06', photon_flux_error2='1.41e-08', ts2='8.97', photon_index='2.23' WHERE bin_id='1029' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 393461: <4FGL_J2235.8-3627_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1029 338.971 -36.4605 506044801 506304001 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 :                                   670.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

