/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 195 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin383
RA = 338.971, Dec = -36.4605
tmin = 338601601, tmax = 338860801
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='388338', job_status='RUN', time_executed='2021-09-28 16:14:20.278366', time_epoch_executed='1632870860.28' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388338

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388338/ft1_4FGL_J2235.8-3627_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388338/ft1_4FGL_J2235.8-3627_daily_bin383.fits outfile=/scratch/kocevski/388338/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin383.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=338601601.0 tmax=338860801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.23
user 4.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.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/388338/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin383.fits evtable="EVENTS" outfile="/scratch/kocevski/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.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/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/388338/ltcube_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.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/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits
.....................!
real 11.94
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/388338/ltcube_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.fits outfile=/scratch/kocevski/388338/expmap_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.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/388338/ltcube_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.fits
.....................!
real 191.34
user 185.70
sys 5.00

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/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits outfile=/scratch/kocevski/388338/cmap_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.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/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits outfile=/scratch/kocevski/388338/cmap_HighResolution_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/388338/ft2_4FGL_J2235.8-3627_daily_bin383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388338/Model_4FGL_J2235.8-3627_daily_bin383.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/388338/ft1_filtered_4FGL_J2235.8-3627_daily_bin383.fits.....................!
real 39.80
user 38.15
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9157       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14794E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.079       1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .25143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3942       1.0000         .10000E-03   10000.    
    19 'norm      '    .44258       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10818E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    29.691       1.0000         .10000E-03   10000.    
    25 'Prefactor '    99.601       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.3276       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65936       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=   4777.731     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3700 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4607       -.29232E-07** at limit **
   2  Prefactor     .10000E-03    4.8919       -.65636E-07** at limit **
   3  norm          .10000E-03    3.8285       -.50858E-07** at limit **
   4  norm          3.9153        4.9657        .19438E-06   -.87976E-04
   5  norm          1.1438        .44014       -.54796E-08   -.43146E-04
   6  Prefactor     .10000E-03    1.9236       -.19503E-07** at limit **
   7  Prefactor     .10000E-03    1.6833       -.76036E-08** at limit **
   8  norm          22.252        23.709       -.25696E-07   -.26725E-04
   9  Prefactor     .10000E-03    77.780        .28887E-06** at limit **
  10  Prefactor     44.297        26.073        .15248E-07   -.25951E-04
  11  Prefactor     15.092        24.654        .26328E-06   -.53459E-05
  12  norm          .10000E-03    .96308       -.89754E-08** at limit **
  13  Prefactor     .10000E-03    18.753       -.35339E-07** at limit **
  14  Prefactor     9.8915        13.227       -.50964E-07   -.79684E-04
  15  Prefactor     .10000E-03    3.8654        .29495E-07** at limit **
  16  norm          .26709        3.7323        .43115E-06   -.78458E-03
  17  Prefactor     .10000E-03    6.3643       -.13030E-06** at limit **
  18  Prefactor     1.3788        22.166        .55899E-05   -.12842E-03
  19  norm          .44282        .80764       -.51036E-06   -.19970E-02
  20  Prefactor     43.127        48.368        .43188E-06    .53327E-04
  21  Prefactor     .10000E-03    7.7078       -.42993E-06** at limit **
  22  norm          .10000E-03    7.7169        .87590E-08** at limit **
  23  norm          .10000E-03    4.5642       -.35339E-07** at limit **
  24  norm          29.690        12.756        .22433E-07   -.11558E-04
  25  Prefactor     99.593        55.939        .12280E-06   -.16253E-04
  26  Prefactor     .10000E-03    38.709       -.25366E-07** at limit **
  27  norm          4.3279        5.2577        .50269E-07   -.20795E-05
  28  Normalizat    1.1421        .20252       -.76332E-06   -.10097E-03
  29  Prefactor     .65912        .18126        .52764E-06   -.13630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.91532
  norm       = 1.1438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.2523
  Prefactor  = 0.0001
  Prefactor  = 44.2971
  Prefactor  = 15.0924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.89149
  Prefactor  = 0.0001
  norm       = 0.267089
  Prefactor  = 0.0001
  Prefactor  = 1.37878
  norm       = 0.442821
  Prefactor  = 43.1273
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 29.6899
  Prefactor  = 99.5934
  Prefactor  = 0.0001
  norm       = 4.3279
  Normalizat = 1.14209
  Prefactor  = 0.65912
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.731     FROM HESSE     STATUS=OK           555 CALLS     4255 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4684        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9406        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8539        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9153        4.9535        .15815E-03   -1.5312    
   5  norm          1.1438        .44161        .26211E-04   -1.5494    
   6  Prefactor     .10000E-03    1.9269        .93617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7030        .87526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.252        23.690        .84923E-04   -1.4764    
   9  Prefactor     .10000E-03    78.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.297        26.071        .60229E-04   -1.4376    
  11  Prefactor     15.092        24.647        .10315E-03   -1.4931    
  12  norm          .10000E-03    .97065        .66210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8915        13.234        .12738E-03   -1.5079    
  15  Prefactor     .10000E-03    3.8828        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .26709        22.934        .22263E-02   -1.5605    
  17  Prefactor     .10000E-03    6.3736        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3788        24.957        .36782E-03   -1.5473    
  19  norm          .44282        .78386        .64702E-03   -1.5575    
  20  Prefactor     43.127        48.395        .30544E-03   -1.4394    
  21  Prefactor     .10000E-03    7.8016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.7200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    16.641        .28144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.690        12.763        .73528E-04   -1.4618    
  25  Prefactor     99.593        55.403        .40282E-04   -1.3709    
  26  Prefactor     .10000E-03    38.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.3279        5.1913        .15625E-03   -1.5292    
  28  Normalizat    1.1421        .23729        .22325E-03   -.88412    
  29  Prefactor     .65912        .21292        .26694E-03   -1.0515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17192e-09
Minuit parameter uncertainties:
  1  1.70461e-06
  2  4.28479e-06
  3  2.90999e-06
  4  4.95406
  5  0.441608
  6  9.46311e-07
  7  1.80355e-06
  8  23.7002
  9  2.98545e-06
  10  26.0779
  11  24.6633
  12  1.14302e-06
  13  5.74054e-06
  14  13.2377
  15  3.96293e-07
  16  4.95099
  17  1.73044e-05
  18  11.7373
  19  0.783874
  20  48.4396
  21  4.72087e-05
  22  5.4064e-06
  23  7.77696e-06
  24  12.7638
  25  55.432
  26  1.22316e-05
  27  5.19187
  28  0.237508
  29  0.213182
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.430e+01  2.608e+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.591e-01  2.132e-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.142e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.55e-05

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) = 4777.50998977
delta logL = 0.221333265282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4777.50984496
delta logL = 0.221478078122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.610       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9559       1.0000          .0000       10.000    
     3 'Normalizat'    1.1557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64848       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=   4777.510     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.553        943.75        .13448E-02    .81327E-05
   2  Index         1.9551        5.8585        .13984        .62499E-04
   3  Normalizat    1.1557        .19161        .36083E-01    .64925E-05
   4  Prefactor     .64851        .19167        .60775E-01    .17186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.5531
  Index      = 1.95513
  Normalizat = 1.15573
  Prefactor  = 0.648512
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.510     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.553        34.204        .53791E-04   -1.4216    
   2  Index         1.9551        .38935        .56391E-02   -.65477    
   3  Normalizat    1.1557        .22127        .22210E-03   -.87982    
   4  Prefactor     .64851        .20647        .26884E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10946e-11
Minuit parameter uncertainties:
  1  34.2165
  2  0.389978
  3  0.221448
  4  0.206715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388338': 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) = 4777.5098397
delta logL = 0.221483330906

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.555e+01  3.422e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.955e+00  3.900e-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.485e-01  2.067e-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.156e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.96 +/- 0.39
Photon Flux (Free Index): 5.30e-08 +/- 3.43e-08
Energy Flux (Free Index): 4.11e-05 +/- 3.81e-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/388338/cmap_HighResolution_338601601_338860801_4FGL_J2235.8-3627_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='4.11e-05', photon_flux_error='3.65e-08', dlogl='2.21e-01', energy_flux='2.64e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-28 16:24:47.302891', photon_index_error2='0.39', photon_index2='1.96', ts='5.80', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='3.81e-05', EG='1.14', time_epoch_completed='1632871487.3', return_code='0', job_id='388338', GAL2='0.65', EG2='1.16', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.43e-08', ts2='6.23', photon_index='2.23' WHERE bin_id='383' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 388338: <4FGL_J2235.8-3627_daily_bin383> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin383> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:10:52 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:10:54 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:10:54 2021
Terminated at Tue Sep 28 16:24:48 2021
Results reported at Tue Sep 28 16:24:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin383 338.971 -36.4605 338601601 338860801 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 :                                   624.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

