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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin530
RA = 338.971, Dec = -36.4605
tmin = 376704001, tmax = 376963201
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='389654', job_status='RUN', time_executed='2021-09-28 16:18:19.504946', time_epoch_executed='1632871099.5' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389654/ft1_4FGL_J2235.8-3627_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389654/ft1_4FGL_J2235.8-3627_daily_bin530.fits outfile=/scratch/kocevski/389654/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin530.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=376704001.0 tmax=376963201.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.40
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/389654/ltcube_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.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/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits
.....................!
real 12.14
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/389654/ltcube_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.fits outfile=/scratch/kocevski/389654/expmap_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.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/389654/ltcube_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.fits
.....................!
real 191.56
user 186.24
sys 4.94

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/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits scfile=/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits outfile=/scratch/kocevski/389654/cmap_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits scfile=/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits outfile=/scratch/kocevski/389654/cmap_HighResolution_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/389654/ft2_4FGL_J2235.8-3627_daily_bin530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389654/Model_4FGL_J2235.8-3627_daily_bin530.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/389654/ft1_filtered_4FGL_J2235.8-3627_daily_bin530.fits.....................!
real 37.16
user 35.88
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.892       1.0000         .10000E-03   10000.    
     3 'norm      '    11.504       1.0000         .10000E-03   10000.    
     4 'norm      '    11.955       1.0000         .10000E-03   10000.    
     5 'norm      '    .68146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.787       1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13208E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4480       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.095       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4873       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.629       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5506       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99193       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=   4224.681     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3717 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.263        .12215E-05** at limit **
   2  Prefactor     10.894        16.092        .11871E-06   -.29396E-04
   3  norm          11.501        16.189        .63071E-06   -.93982E-05
   4  norm          11.956        7.7494        .26519E-08   -.12351E-04
   5  norm          .68145        .36350        .18673E-08   -.26834E-04
   6  Prefactor     .10000E-03    3.4512       -.28105E-07** at limit **
   7  Prefactor     12.787        6.9000        .77432E-07   -.66838E-05
   8  norm          .10000E-03    11.817        .17797E-06** at limit **
   9  Prefactor     .10000E-03    28.615       -.60213E-06** at limit **
  10  Prefactor     .10000E-03    8.9228        .36335E-06** at limit **
  11  Prefactor     .10000E-03    14.298        .15414E-06** at limit **
  12  norm          .10000E-03    1.9602        .68827E-07** at limit **
  13  Prefactor     .10000E-03    97.427       -.11684E-05** at limit **
  14  Prefactor     .10000E-03    7.7808        .23705E-06** at limit **
  15  Prefactor     .10000E-03    3.7855       -.25806E-07** at limit **
  16  norm          7.4499        5.7690        .55826E-07    .25678E-07
  17  Prefactor     41.101        26.080       -.76822E-07    .14284E-04
  18  Prefactor     .10000E-03    10.596       -.32877E-06** at limit **
  19  norm          .10000E-03    .62399       -.18693E-07** at limit **
  20  Prefactor     .10000E-03    97.684       -.11043E-05** at limit **
  21  Prefactor     5.4907        18.480        .54445E-06    .10674E-04
  22  norm          .10000E-03    8.4004       -.20813E-06** at limit **
  23  norm          .10000E-03    2.8448        .13545E-07** at limit **
  24  norm          1.8989        7.6337        .38216E-06   -.29919E-05
  25  Prefactor     18.552        53.108        .88948E-05   -.59281E-06
  26  Prefactor     .10000E-03    44.188       -.24732E-06** at limit **
  27  norm          4.5567        8.3805       -.42573E-06   -.86850E-05
  28  Normalizat    1.0244        .23356       -.24625E-06   -.33678E-04
  29  Prefactor     .99207        .22070       -.48843E-06   -.28294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.894
  norm       = 11.501
  norm       = 11.9559
  norm       = 0.681449
  Prefactor  = 0.0001
  Prefactor  = 12.7875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.44985
  Prefactor  = 41.1005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49072
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.8989
  Prefactor  = 18.5516
  Prefactor  = 0.0001
  norm       = 4.55674
  Normalizat = 1.0244
  Prefactor  = 0.992067
 **********
 **   18 **HESSE 
 **********

 FCN=   4224.681     FROM HESSE     STATUS=OK           555 CALLS     4272 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.894        15.988        .12140E-03   -1.5048    
   3  norm          11.501        16.209        .59058E-03   -1.5030    
   4  norm          11.956        7.7320        .11586E-03   -1.5016    
   5  norm          .68145        .36567        .27282E-04   -1.5543    
   6  Prefactor     .10000E-03    3.4573        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.787        6.9188        .11202E-03   -1.4993    
   8  norm          .10000E-03    11.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.5354        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    97.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.388        .34844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8027        .12349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4499        5.7422        .12675E-03   -1.5162    
  17  Prefactor     41.101        25.149        .62531E-04   -1.4425    
  18  Prefactor     .10000E-03    10.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2177        .86496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    98.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4907        17.558        .17153E-03   -1.5239    
  22  norm          .10000E-03    8.4032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8561        .10715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8989        7.5781        .30180E-03   -1.5432    
  25  Prefactor     18.552        53.194        .92796E-04   -1.4846    
  26  Prefactor     .10000E-03    44.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5567        8.3945        .90824E-03   -1.5281    
  28  Normalizat    1.0244        .27226        .26172E-03   -.92217    
  29  Prefactor     .99207        .25819        .25133E-03   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7637e-10
Minuit parameter uncertainties:
  1  3.21904e-05
  2  15.9944
  3  16.2157
  4  7.73262
  5  0.365671
  6  1.16434e-06
  7  6.91922
  8  2.22737e-06
  9  2.21453e-06
  10  1.59303e-06
  11  2.78862e-06
  12  3.75559e-07
  13  1.13743e-05
  14  0.000420161
  15  1.22589e-08
  16  5.74259
  17  25.1554
  18  6.49727e-07
  19  5.40093e-06
  20  9.70354e-06
  21  17.5747
  22  1.42221e-06
  23  1.31424e-05
  24  7.58188
  25  53.3308
  26  4.05036e-06
  27  8.39671
  28  0.272629
  29  0.258517
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.593e-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.921e-01  2.585e-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.024e+00  2.726e-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: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389654/likelihoodResults_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.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) = 4224.68200561
delta logL = -0.000531493771632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4224.68147456
delta logL = -4.44068064098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2098       1.0000          .0000       10.000    
     3 'Normalizat'    1.0246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99189       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=   4224.681     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    128.83        .18142E-01** at limit **
   2  Index         1.2808        9.2847        .50000       -.11185E-06
   3  Normalizat    1.0244        .16604E-01    .26172E-03   -.31639E-03
   4  Prefactor     .99207        .15796E-01    .25133E-03   -.32757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.28079
  Normalizat = 1.0244
  Prefactor  = 0.992066
 **********
 **   18 **HESSE 
 **********

 FCN=   4224.681     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6371.1        .48757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2808        6.7066        .50000       -.83880    
   3  Normalizat    1.0244        .12576        .52343E-04   -.92217    
   4  Prefactor     .99207        .11964        .50267E-04   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46616e-08
Minuit parameter uncertainties:
  1  0.00243666
  2  2275.16
  3  0.125792
  4  0.119671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389654': 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): 102
logL (Free Index) = 4224.68147182
delta logL = 2.29393299378e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.437e-03  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.281e+00  2.275e+03  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.921e-01  1.197e-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.024e+00  1.258e-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/389654/cmap_HighResolution_376704001_376963201_4FGL_J2235.8-3627_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-28 16:28:50.707431', job_id='389654', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632871730.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='530' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 389654: <4FGL_J2235.8-3627_daily_bin530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin530 338.971 -36.4605 376704001 376963201 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 :                                   630.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

