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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1488
RA = 338.971, Dec = -36.4605
tmin = 625017601, tmax = 625276801
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='394912', job_status='RUN', time_executed='2021-09-28 16:34:15.060510', time_epoch_executed='1632872055.06' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394912

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394912/ft1_4FGL_J2235.8-3627_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394912/ft1_4FGL_J2235.8-3627_daily_bin1488.fits outfile=/scratch/kocevski/394912/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1488.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=625017601.0 tmax=625276801.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.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/394912/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.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/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/394912/ltcube_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.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/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/394912/ltcube_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.fits outfile=/scratch/kocevski/394912/expmap_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.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/394912/ltcube_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.fits
.....................!
real 189.96
user 184.59
sys 4.98

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/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits outfile=/scratch/kocevski/394912/cmap_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.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/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits outfile=/scratch/kocevski/394912/cmap_HighResolution_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/394912/ft2_4FGL_J2235.8-3627_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394912/Model_4FGL_J2235.8-3627_daily_bin1488.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/394912/ft1_filtered_4FGL_J2235.8-3627_daily_bin1488.fits.....................!
real 51.86
user 50.47
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7202       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6829       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0777       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6727       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.829       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2069       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.172       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7847       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12066E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0391       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78543       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=   6846.641     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3168 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1726        7.5113       -.22484E-06   -.29306E-04
   2  Prefactor     8.7211        8.2552       -.19126E-06    .73202E-05
   3  norm          .10000E-03    1.5978        .11451E-08** at limit **
   4  norm          1.6825        4.3248       -.42188E-06   -.31298E-04
   5  norm          1.0759        .36585        .90319E-08    .80007E-04
   6  Prefactor     4.0771        6.4804        .52860E-06   -.17673E-05
   7  Prefactor     5.6726        3.0376       -.12451E-07   -.43300E-04
   8  norm          .10000E-03    5.0594        .30592E-07** at limit **
   9  Prefactor     .10000E-03    15.720       -.10590E-07** at limit **
  10  Prefactor     13.251        12.134        .33674E-06    .54927E-06
  11  Prefactor     14.832        14.201       -.11571E-05   -.70974E-06
  12  norm          .10000E-03    1.3320        .43582E-06** at limit **
  13  Prefactor     17.531        39.471       -.10360E-04   -.36687E-04
  14  Prefactor     1.7332        1.2522        .60878E-07   -.30204E-03
  15  Prefactor     .10000E-03    2.8228       -.51944E-08** at limit **
  16  norm          .10000E-03    3.8821        .48568E-07** at limit **
  17  Prefactor     .10000E-03    24.805        .30258E-07** at limit **
  18  Prefactor     9.2043        11.958        .32936E-06   -.24305E-04
  19  norm          3.1194        1.0234       -.23791E-07    .17674E-03
  20  Prefactor     14.173        32.946        .22433E-06    .44642E-06
  21  Prefactor     6.7842        8.0600        .59950E-06   -.44312E-05
  22  norm          .10000E-03    6.9568       -.12854E-07** at limit **
  23  norm          .10000E-03    1.4260       -.54082E-09** at limit **
  24  norm          .10000E-03    2.1829       -.40994E-08** at limit **
  25  Prefactor     6.2348        20.694       -.42170E-06   -.49591E-06
  26  Prefactor     .10000E-03    86.973        .52967E-08** at limit **
  27  norm          .10000E-03    1.3685        .13467E-08** at limit **
  28  Normalizat    1.0392        .16164        .37255E-06   -.15196E-04
  29  Prefactor     .78535        .15433        .16684E-06    .38471E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17255
  Prefactor  = 8.72108
  norm       = 0.0001
  norm       = 1.68247
  norm       = 1.07593
  Prefactor  = 4.07712
  Prefactor  = 5.67264
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2512
  Prefactor  = 14.8319
  norm       = 0.0001
  Prefactor  = 17.5314
  Prefactor  = 1.73322
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20429
  norm       = 3.11942
  Prefactor  = 14.1728
  Prefactor  = 6.78415
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.23477
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.03921
  Prefactor  = 0.785354
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.641     FROM HESSE     STATUS=OK           557 CALLS     3725 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1726        7.4771        .42299E-03   -1.5491    
   2  Prefactor     8.7211        8.1809        .13574E-03   -1.5117    
   3  norm          .10000E-03    1.6004        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6825        4.3145        .24933E-03   -1.5449    
   5  norm          1.0759        .36469        .26738E-04   -1.5501    
   6  Prefactor     4.0771        6.4784        .19966E-03   -1.5304    
   7  Prefactor     5.6726        3.0484        .50855E-03   -1.5232    
   8  norm          .10000E-03    5.0616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.251        12.134        .11003E-03   -1.4980    
  11  Prefactor     14.832        14.175        .10401E-03   -1.4938    
  12  norm          .10000E-03    1.4507        .19004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.531        39.637        .95633E-04   -1.4870    
  14  Prefactor     1.7332        8.9523        .15939E-02   -1.5445    
  15  Prefactor     .10000E-03    2.8622        .13573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9832        .31657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2043        12.836        .13208E-03   -1.5101    
  19  norm          3.1194        1.1065        .33828E-04   -1.5355    
  20  Prefactor     14.173        32.947        .10639E-03   -1.4955    
  21  Prefactor     6.7842        8.0346        .15404E-03   -1.5187    
  22  norm          .10000E-03    6.9636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4279        .96470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1933        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2348        20.708        .16078E-03   -1.5209    
  26  Prefactor     .10000E-03    88.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3732        .94273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0392        .19283        .22663E-03   -.91728    
  29  Prefactor     .78535        .18107        .25173E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37452e-10
Minuit parameter uncertainties:
  1  5.92276
  2  8.18192
  3  2.98254e-08
  4  4.31527
  5  0.364689
  6  6.47955
  7  3.04851
  8  6.00274e-06
  9  1.16893e-06
  10  12.1364
  11  14.1783
  12  5.30504e-05
  13  39.697
  14  7.87978
  15  9.69907e-07
  16  1.03632e-05
  17  2.34446e-05
  18  12.8396
  19  1.10647
  20  32.9895
  21  8.03591
  22  7.6459e-07
  23  1.08934e-08
  24  9.22552e-07
  25  20.732
  26  6.75849e-05
  27  6.73346e-08
  28  0.192961
  29  0.181203
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.325e+01  1.214e+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:  7.854e-01  1.812e-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.039e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.69
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 7.23e-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) = 6845.3242938
delta logL = 1.31688256942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6845.17038556
delta logL = 1.47079081181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8875       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0466       1.0000          .0000       10.000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77910       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=   6845.170     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8721        6.1910        .41376E-02   -.15416E-03
   2  Index         1.0456        .38815        .23498       -.62750E-04
   3  Normalizat    1.0550        .15456        .40226E-01    .76044E-05
   4  Prefactor     .77911        .15207        .43445E-01    .17746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87211
  Index      = 1.04555
  Normalizat = 1.05504
  Prefactor  = 0.779115
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.170     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8721        9.2894        .16550E-03   -1.5223    
   2  Index         1.0456        .61964        .97344E-02   -.91226    
   3  Normalizat    1.0550        .17965        .22509E-03   -.91209    
   4  Prefactor     .77911        .17670        .25264E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34962e-12
Minuit parameter uncertainties:
  1  9.2917
  2  0.623952
  3  0.17975
  4  0.176829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394912': 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) = 6845.1703838
delta logL = 1.47079256707

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.872e+00  9.292e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.046e+00  6.240e-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:  7.791e-01  1.768e-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.055e+00  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.05 +/- 0.62
Photon Flux (Free Index): 3.89e-09 +/- 4.59e-09
Energy Flux (Free Index): 5.02e-05 +/- 7.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394912/cmap_HighResolution_625017601_625276801_4FGL_J2235.8-3627_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='5.02e-05', photon_flux_error='1.70e-08', dlogl='1.47e+00', energy_flux='7.90e-06', photon_flux2='3.89e-09', job_status='DONE', time_completed='2021-09-28 16:45:56.245349', photon_index_error2='0.62', photon_index2='1.05', ts='6.69', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='7.07e-05', EG='1.04', time_epoch_completed='1632872756.25', return_code='0', job_id='394912', GAL2='0.78', EG2='1.06', return_code2='0', energy_flux_error='7.23e-06', photon_flux_error2='4.59e-09', ts2='9.63', photon_index='2.23' WHERE bin_id='1488' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 394912: <4FGL_J2235.8-3627_daily_bin1488> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1488> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:34 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:36 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:30:36 2021
Terminated at Tue Sep 28 16:45:57 2021
Results reported at Tue Sep 28 16:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1488 338.971 -36.4605 625017601 625276801 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

