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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1167
RA = 338.971, Dec = -36.4605
tmin = 541814401, tmax = 542073601
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='393686', job_status='RUN', time_executed='2021-09-28 16:26:36.359178', time_epoch_executed='1632871596.36' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393686/ft1_4FGL_J2235.8-3627_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393686/ft1_4FGL_J2235.8-3627_daily_bin1167.fits outfile=/scratch/kocevski/393686/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1167.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=541814401.0 tmax=542073601.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.71
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393686/ft1_filtered_4FGL_J2235.8-3627_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/393686/ltcube_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.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/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits
.....................!
real 12.05
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393686/ft1_filtered_4FGL_J2235.8-3627_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/393686/ltcube_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.fits outfile=/scratch/kocevski/393686/expmap_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.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/393686/ltcube_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.fits
.....................!
real 190.63
user 185.31
sys 4.87

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/393686/ft1_filtered_4FGL_J2235.8-3627_daily_bin1167.fits scfile=/scratch/kocevski/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits outfile=/scratch/kocevski/393686/cmap_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393686/ft1_filtered_4FGL_J2235.8-3627_daily_bin1167.fits scfile=/scratch/kocevski/393686/ft2_4FGL_J2235.8-3627_daily_bin1167.fits outfile=/scratch/kocevski/393686/cmap_HighResolution_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9135       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8017       1.0000         .10000E-03   10000.    
     5 'norm      '    .74745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.343       1.0000         .10000E-03   10000.    
     8 'norm      '    11.209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.692       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13588E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10942E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.410       1.0000         .10000E-03   10000.    
    22 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13093       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .79056E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.9848       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92111       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0839       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=   4583.660     FROM MIGRAD    STATUS=CONVERGED   1356 CALLS     4389 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9208        11.345        .11901E-02    .16823E-03
   2  Prefactor     .10000E-03    23.653        .36285E-03** at limit **
   3  norm          .10000E-03    2.9999        .11445E-02** at limit **
   4  norm          8.8008        7.7735        .13511E-03    .33406E-04
   5  norm          .74751        .46346        .32509E-04    .69242E-04
   6  Prefactor     6.7550        12.582        .15437E-03    .81010E-05
   7  Prefactor     10.345        5.0329        .10069E-03   -.47083E-04
   8  norm          11.224        27.163        .11966E-03   -.71447E-04
   9  Prefactor     6.0032        67.236        .16328E-03    .22837E-04
  10  Prefactor     26.653        28.689        .77540E-04    .85448E-04
  11  Prefactor     .10000E-03    14.565        .18142E-02** at limit **
  12  norm          .10000E-03    .97150        .65040E-03** at limit **
  13  Prefactor     .10000E-03    56.623        .18142E-02** at limit **
  14  Prefactor     .10051E-03    107.46        .48589E-02** at limit **
  15  Prefactor     .10000E-03    3.1446        .11713E-02** at limit **
  16  norm          .10001E-03    11.624        .23570E-02** at limit **
  17  Prefactor     .10000E-03    7.4819        .18073E-02** at limit **
  18  Prefactor     .10000E-03    19.019        .36285E-03** at limit **
  19  norm          2.0648        .85319        .37747E-04   -.93751E-03
  20  Prefactor     .10001E-03    427.56        .18142E-02** at limit **
  21  Prefactor     13.421        11.863        .10938E-03   -.92317E-04
  22  norm          .10000E-03    17.906        .18142E-02** at limit **
  23  norm          .10000E-03    2.9406        .11290E-02** at limit **
  24  norm          .16830        81.761        .36686E-02    .22318E-03
  25  Prefactor     .17010E-03    72.232        .11887    ** at limit **
  26  Prefactor     .10001E-03    302.28        .41818E-03** at limit **
  27  norm          3.9897        5.6303        .76401E-03    .62528E-03
  28  Normalizat    .92134        .26493        .26963E-03    .28756E-04
  29  Prefactor     1.0836        .24496        .23944E-03    .27776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92083
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.80081
  norm       = 0.747505
  Prefactor  = 6.75503
  Prefactor  = 10.3449
  norm       = 11.2242
  Prefactor  = 6.00321
  Prefactor  = 26.6533
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010051
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.06484
  Prefactor  = 0.000100009
  Prefactor  = 13.4207
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.168296
  Prefactor  = 0.0001701
  Prefactor  = 0.000100007
  norm       = 3.98973
  Normalizat = 0.921336
  Prefactor  = 1.08362
 **********
 **   18 **HESSE 
 **********

 FCN=   4583.660     FROM HESSE     STATUS=OK           537 CALLS     4926 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9208        11.333        .23802E-03   -1.5366    
   2  Prefactor     .10000E-03    23.654        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0000        .22889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8008        7.7718        .54042E-05   -1.5115    
   5  norm          .74751        .46345        .13004E-05   -1.5535    
   6  Prefactor     6.7550        12.575        .61748E-05   -1.5188    
   7  Prefactor     10.345        5.0316        .40276E-05   -1.5065    
   8  norm          11.224        27.158        .47864E-05   -1.5038    
   9  Prefactor     6.0032        67.181        .65314E-05   -1.5218    
  10  Prefactor     26.653        28.682        .15508E-04   -1.4675    
  11  Prefactor     .10000E-03    14.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .97152        .13008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    56.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10051E-03    109.80        .97178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1447        .23425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    11.801        .47141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4821        .36146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.019        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0648        .85270        .75494E-05   -1.5421    
  20  Prefactor     .10001E-03    427.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.421        11.863        .21876E-04   -1.4975    
  22  norm          .10000E-03    17.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9409        .22579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .16830        84.108        .14675E-03   -1.5626    
  25  Prefactor     .17010E-03    68.472        .12230       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    302.30        .83637E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.9897        5.6077        .30561E-04   -1.5308    
  28  Normalizat    .92134        .26455        .10785E-04   -.95714    
  29  Prefactor     1.0836        .24518        .95777E-05   -.89992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82942e-09
Minuit parameter uncertainties:
  1  11.341
  2  0.000134582
  3  2.04075e-06
  4  7.77268
  5  0.463456
  6  12.58
  7  5.0318
  8  27.1881
  9  40.2217
  10  28.6972
  11  0.000145928
  12  6.33154e-06
  13  0.000404594
  14  0.0149894
  15  1.71403e-05
  16  0.000567342
  17  1.41921e-05
  18  3.3966e-06
  19  0.85271
  20  0.00385454
  21  11.8646
  22  9.92245e-05
  23  1.36195e-06
  24  7.53306
  25  0.138721
  26  0.00283608
  27  5.6084
  28  0.26492
  29  0.245433
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.665e+01  2.870e+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:  1.084e+00  2.454e-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.213e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/393686/likelihoodResults_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.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) = 4583.34212586
delta logL = 0.317786997744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4583.29376538
delta logL = 0.366147471193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.540       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4330       1.0000          .0000       10.000    
     3 'Normalizat'    .95558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0670       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=   4583.294     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.500        19.636        .23908E-02    .17077E-03
   2  Index         1.4316        .49765        .24063       -.11354E-03
   3  Normalizat    .95570        .21553        .45608E-01   -.42815E-04
   4  Prefactor     1.0669        .20655        .39003E-01   -.71348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5003
  Index      = 1.43163
  Normalizat = 0.955697
  Prefactor  = 1.06694
 **********
 **   18 **HESSE 
 **********

 FCN=   4583.294     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.500        25.987        .95632E-04   -1.4871    
   2  Index         1.4316        .74917        .93113E-02   -.79473    
   3  Normalizat    .95570        .25083        .26512E-03   -.94530    
   4  Prefactor     1.0669        .24062        .24099E-03   -.90530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35774e-10
Minuit parameter uncertainties:
  1  26.0036
  2  0.755004
  3  0.251134
  4  0.24086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393686': 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) = 4583.29376361
delta logL = 0.366149246925

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.750e+01  2.600e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.432e+00  7.550e-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:  1.067e+00  2.409e-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.557e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.43 +/- 0.76
Photon Flux (Free Index): 1.05e-08 +/- 1.76e-08
Energy Flux (Free Index): 4.17e-05 +/- 7.02e-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/393686/cmap_HighResolution_541814401_542073601_4FGL_J2235.8-3627_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='4.17e-05', photon_flux_error='4.01e-08', dlogl='3.66e-01', energy_flux='1.59e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-28 16:38:12.143737', photon_index_error2='0.76', photon_index2='1.43', ts='1.73', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='7.02e-05', EG='0.92', time_epoch_completed='1632872292.14', return_code='0', job_id='393686', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.76e-08', ts2='2.46', photon_index='2.23' WHERE bin_id='1167' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 393686: <4FGL_J2235.8-3627_daily_bin1167> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1167 338.971 -36.4605 541814401 542073601 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 :                                   691.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

