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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1053
RA = 338.971, Dec = -36.4605
tmin = 512265601, tmax = 512524801
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='393505', job_status='RUN', time_executed='2021-09-28 16:25:44.788341', time_epoch_executed='1632871544.79' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393505/ft1_4FGL_J2235.8-3627_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393505/ft1_4FGL_J2235.8-3627_daily_bin1053.fits outfile=/scratch/kocevski/393505/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1053.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=512265601.0 tmax=512524801.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.53
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/393505/ltcube_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.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/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits
.....................!
real 12.20
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/393505/ltcube_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.fits outfile=/scratch/kocevski/393505/expmap_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.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/393505/ltcube_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.fits
.....................!
real 190.72
user 185.35
sys 5.04

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/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits scfile=/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits outfile=/scratch/kocevski/393505/cmap_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits scfile=/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits outfile=/scratch/kocevski/393505/cmap_HighResolution_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/393505/ft2_4FGL_J2235.8-3627_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393505/Model_4FGL_J2235.8-3627_daily_bin1053.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/393505/ft1_filtered_4FGL_J2235.8-3627_daily_bin1053.fits.....................!
real 49.22
user 47.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    4.3311       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.508       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9500       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.409       1.0000         .10000E-03   10000.    
     8 'norm      '    58.099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52135E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12999E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.451       1.0000         .10000E-03   10000.    
    19 'norm      '    .39016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .96414E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11362E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.1673       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8310       1.0000         .10000E-03   10000.    
    25 'Prefactor '    115.90       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.849       1.0000         .10000E-03   10000.    
    27 'norm      '    .20803E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74281       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99461       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=   6339.735     FROM MIGRAD    STATUS=CONVERGED   1363 CALLS     3901 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8117        .12973E-02** at limit **
   2  Prefactor     4.3023        5.5622        .19356E-03   -.13856E-03
   3  norm          .10000E-03    1.4836        .94662E-03** at limit **
   4  norm          10.526        5.0657        .11497E-03   -.79010E-04
   5  norm          2.2965        .48709        .23827E-04    .80637E-04
   6  Prefactor     7.8947        8.5029        .14221E-03   -.11840E-03
   7  Prefactor     12.410        5.0277        .10455E-03   -.10156E-03
   8  norm          58.696        24.164        .26316E-03   -.85536E-05
   9  Prefactor     51.024        41.560        .56049E-04   -.73832E-05
  10  Prefactor     .10000E-03    8.5072        .18142E-02** at limit **
  11  Prefactor     .10000E-03    21.967        .21137E-02** at limit **
  12  norm          .10000E-03    1.0416        .15663E-03** at limit **
  13  Prefactor     .10000E-03    31.276        .21021E-02** at limit **
  14  Prefactor     .10000E-03    5.5711        .18142E-02** at limit **
  15  Prefactor     .10000E-03    2.1352        .11337E-02** at limit **
  16  norm          .10000E-03    2.1061        .11196E-02** at limit **
  17  Prefactor     .10000E-03    11.295        .18142E-02** at limit **
  18  Prefactor     17.509        10.663        .95877E-04   -.79565E-04
  19  norm          .38767        .66054        .65050E-03    .57091E-03
  20  Prefactor     .10000E-03    24.003        .20786E-02** at limit **
  21  Prefactor     .10001E-03    6.9910        .61682E-01** at limit **
  22  norm          .10000E-03    4.8682        .17158E-02** at limit **
  23  norm          8.1648        6.5757        .14029E-03    .12407E-03
  24  norm          2.8177        5.6397        .24170E-03   -.13551E-03
  25  Prefactor     116.41        54.837        .18687E-03    .13859E-03
  26  Prefactor     35.122        33.072        .67884E-04   -.39389E-04
  27  norm          .10014E-03    13.354        .41148E-01** at limit **
  28  Normalizat    .74245        .21833        .27325E-03   -.12170E-03
  29  Prefactor     .99474        .20248        .23481E-03   -.92961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.30228
  norm       = 0.0001
  norm       = 10.5258
  norm       = 2.29645
  Prefactor  = 7.89466
  Prefactor  = 12.4095
  norm       = 58.696
  Prefactor  = 51.0241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5089
  norm       = 0.387674
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 8.16477
  norm       = 2.81774
  Prefactor  = 116.413
  Prefactor  = 35.1219
  norm       = 0.000100141
  Normalizat = 0.742449
  Prefactor  = 0.994744
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.735     FROM HESSE     STATUS=OK           545 CALLS     4446 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8123        .25946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3023        5.5621        .77423E-05   -1.5293    
   3  norm          .10000E-03    1.4836        .18932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.526        5.0658        .45987E-05   -1.5059    
   5  norm          2.2965        .48710        .95307E-06   -1.5405    
   6  Prefactor     7.8947        8.5029        .56882E-05   -1.5146    
   7  Prefactor     12.410        5.0278        .41822E-05   -1.5003    
   8  norm          58.696        24.164        .10527E-04   -1.4174    
   9  Prefactor     51.024        41.560        .11210E-04   -1.4278    
  10  Prefactor     .10000E-03    8.5076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.976        .42273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0416        .31326E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.280        .42041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1354        .22673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1064        .22392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.509        10.631        .38351E-05   -1.4871    
  19  norm          .38767        .65766        .26020E-04   -1.5583    
  20  Prefactor     .10000E-03    24.005        .41572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    6.5851        .65078E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8682        .34316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.1648        6.5113        .56115E-05   -1.5136    
  24  norm          2.8177        5.6395        .96678E-05   -1.5372    
  25  Prefactor     116.41        54.244        .74746E-05   -1.3546    
  26  Prefactor     35.122        33.072        .13577E-04   -1.4522    
  27  norm          .10014E-03    8.8527        .51709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74245        .21861        .10930E-04   -1.0224    
  29  Prefactor     .99474        .20270        .93923E-05   -.92905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82463e-10
Minuit parameter uncertainties:
  1  6.42882e-06
  2  5.56278
  3  3.1729e-07
  4  5.06598
  5  0.487096
  6  8.50421
  7  5.02801
  8  24.1677
  9  41.5832
  10  6.35741e-06
  11  3.5482e-05
  12  3.74462e-06
  13  3.64195e-05
  14  1.34331e-05
  15  1.32098e-06
  16  4.83601e-06
  17  2.43034e-05
  18  10.6318
  19  0.657677
  20  2.18836e-05
  21  0.000410009
  22  2.75533e-07
  23  6.51182
  24  5.64053
  25  54.2671
  26  33.0891
  27  0.00223578
  28  0.218863
  29  0.20286
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.357e-06  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.947e-01  2.029e-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:  7.424e-01  2.189e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393505/likelihoodResults_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.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) = 6339.73579244
delta logL = -0.000559888755561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6339.73523258
delta logL = -2.99733073916e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2295       1.0000          .0000       10.000    
     3 'Normalizat'    .74243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99477       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=   6339.735     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.180        .90712E-02** at limit **
   2  Index         2.2297        5.8755        .50000       -.24577E-06
   3  Normalizat    .74245        .16646        .61773E-01    .37064E-04
   4  Prefactor     .99474        .16446        .46202E-01    .19996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22971
  Normalizat = 0.74245
  Prefactor  = 0.994744
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.735     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2297        6.0979        .50000       -.58723    
   3  Normalizat    .74245        .19854        .27325E-03   -1.0224    
   4  Prefactor     .99474        .19639        .23481E-03   -.92905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93666e-13
Minuit parameter uncertainties:
  1  1.35453e-06
  2  4.57914
  3  0.198737
  4  0.196536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393505': 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) = 6339.73523255
delta logL = 2.8194335755e-11

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.355e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.230e+00  4.579e+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.947e-01  1.965e-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:  7.424e-01  1.987e-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/393505/cmap_HighResolution_512265601_512524801_4FGL_J2235.8-3627_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-28 16:39:24.659782', job_id='393505', GAL2='0.99', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632872364.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1053' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 393505: <4FGL_J2235.8-3627_daily_bin1053> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1053 338.971 -36.4605 512265601 512524801 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 :                                   819.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            838 sec.

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

