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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1058
RA = 338.971, Dec = -36.4605
tmin = 513561601, tmax = 513820801
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='393513', job_status='RUN', time_executed='2021-09-28 16:28:33.350155', time_epoch_executed='1632871713.35' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393513/ft1_4FGL_J2235.8-3627_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393513/ft1_4FGL_J2235.8-3627_daily_bin1058.fits outfile=/scratch/kocevski/393513/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1058.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=513561601.0 tmax=513820801.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.66
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/393513/ltcube_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.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/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits
.....................!
real 12.06
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/393513/ltcube_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.fits outfile=/scratch/kocevski/393513/expmap_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.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/393513/ltcube_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.fits
.....................!
real 189.88
user 184.92
sys 4.64

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/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits scfile=/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits outfile=/scratch/kocevski/393513/cmap_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits scfile=/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits outfile=/scratch/kocevski/393513/cmap_HighResolution_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/393513/ft2_4FGL_J2235.8-3627_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393513/Model_4FGL_J2235.8-3627_daily_bin1058.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/393513/ft1_filtered_4FGL_J2235.8-3627_daily_bin1058.fits.....................!
real 44.23
user 42.64
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7184       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1804       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29512E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5241       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    68.104       1.0000         .10000E-03   10000.    
    27 'norm      '    6.7466       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3264       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96613       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=   5234.010     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3180 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0715        .45306E-06** at limit **
   2  Prefactor     .10000E-03    5.1608        .64753E-07** at limit **
   3  norm          .10000E-03    4.7910        .64309E-07** at limit **
   4  norm          3.7182        7.8973        .41304E-05   -.45254E-04
   5  norm          2.6064        .62568       -.11551E-06   -.12977E-03
   6  Prefactor     .10000E-03    18.608       -.29088E-06** at limit **
   7  Prefactor     5.1802        4.6353        .35694E-06   -.26934E-04
   8  norm          3.6892        62.594        .65625E-05   -.23094E-04
   9  Prefactor     .10000E-03    14.301        .84032E-06** at limit **
  10  Prefactor     5.5020        20.062        .16845E-05    .44500E-05
  11  Prefactor     .10000E-03    18.033       -.64519E-06** at limit **
  12  norm          5.1361        3.4237       -.37836E-06   -.71908E-03
  13  Prefactor     .10000E-03    393.11        .50491E-05** at limit **
  14  Prefactor     .10000E-03    9.0101        .87466E-07** at limit **
  15  Prefactor     .10000E-03    4.6200        .73968E-07** at limit **
  16  norm          11.040        7.1358        .77070E-08   -.26128E-03
  17  Prefactor     .10000E-03    15.723        .29114E-06** at limit **
  18  Prefactor     .10000E-03    19.048       -.14841E-06** at limit **
  19  norm          .11372E-03    .42810        .17553E-06** at limit **
  20  Prefactor     .10000E-03    27.020        .23916E-05** at limit **
  21  Prefactor     .10000E-03    11.062       -.37788E-06** at limit **
  22  norm          .10000E-03    7.8273       -.32056E-06** at limit **
  23  norm          .10000E-03    3.6177        .21320E-07** at limit **
  24  norm          4.5230        11.556        .23035E-05   -.15338E-04
  25  Prefactor     .10000E-03    30.768       -.15492E-05** at limit **
  26  Prefactor     68.098        66.732        .81308E-07   -.67444E-05
  27  norm          6.7460        5.8541        .12899E-06    .53966E-04
  28  Normalizat    1.3264        .23244       -.10043E-05   -.65128E-04
  29  Prefactor     .96626        .20944       -.84219E-06   -.14402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.71819
  norm       = 2.60635
  Prefactor  = 0.0001
  Prefactor  = 5.18017
  norm       = 3.68917
  Prefactor  = 0.0001
  Prefactor  = 5.50199
  Prefactor  = 0.0001
  norm       = 5.1361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000113717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.523
  Prefactor  = 0.0001
  Prefactor  = 68.0983
  norm       = 6.74603
  Normalizat = 1.32636
  Prefactor  = 0.966259
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.010     FROM HESSE     STATUS=OK           555 CALLS     3735 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1899        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8117        .15464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7182        7.9246        .10471E-02   -1.5322    
   5  norm          2.6064        .62727        .25766E-04   -1.5385    
   6  Prefactor     .10000E-03    19.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1802        4.6391        .14065E-03   -1.5253    
   8  norm          3.6892        62.486        .21080E-03   -1.5324    
   9  Prefactor     .10000E-03    14.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5020        20.094        .17134E-03   -1.5239    
  11  Prefactor     .10000E-03    18.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1361        3.4324        .10412E-03   -1.5255    
  13  Prefactor     .10000E-03    397.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6444        .15185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.040        7.1537        .12062E-03   -1.5043    
  17  Prefactor     .10000E-03    15.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11372E-03    1.1436        .14712E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.8269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.6264        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5230        11.553        .94639E-03   -1.5283    
  25  Prefactor     .10000E-03    30.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     68.098        66.860        .48637E-04   -1.4056    
  27  norm          6.7460        5.8517        .15448E-03   -1.5188    
  28  Normalizat    1.3264        .28131        .25956E-03   -.82783    
  29  Prefactor     .96626        .25340        .27705E-03   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03694e-10
Minuit parameter uncertainties:
  1  1.01534e-05
  2  6.31088e-06
  3  7.30714e-06
  4  7.9268
  5  0.627267
  6  3.91754e-05
  7  4.63945
  8  30.4027
  9  1.08032e-05
  10  20.1182
  11  4.44567e-06
  12  3.43256
  13  0.000345203
  14  4.49656e-06
  15  3.39361e-06
  16  7.15428
  17  1.8009e-05
  18  5.54588e-05
  19  0.00792159
  20  3.14289e-05
  21  2.335e-05
  22  3.93689e-06
  23  1.73316e-06
  24  11.5589
  25  4.76474e-05
  26  66.9337
  27  5.85217
  28  0.281639
  29  0.253713
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.502e+00  2.012e+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:  9.663e-01  2.537e-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.326e+00  2.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393513/likelihoodResults_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5233.75606189
delta logL = 0.254239508947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5233.74900425
delta logL = 0.261297151079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3293       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6822       1.0000          .0000       10.000    
     3 'Normalizat'    1.2782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99420       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=   5233.749     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      275 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3322        98.259        .67177E-02    .49615E-03
   2  Index         3.6796        6.7904        .14695        .10253E-03
   3  Normalizat    1.2786        .62250E-01    .59628E-01    .66563E-05
   4  Prefactor     .99419        .55507E-01    .46195E-01    .11049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33219
  Index      = 3.67957
  Normalizat = 1.27857
  Prefactor  = 0.994189
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.749     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3322        223.16        .14862E-03   -1.5403    
   2  Index         3.6796        5.7320        .82529E-02   -.26726    
   3  Normalizat    1.2786        .26937        .26371E-03   -.84208    
   4  Prefactor     .99419        .24054        .27361E-03   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.95609e-07
Minuit parameter uncertainties:
  1  45.8024
  2  11.0132
  3  0.269663
  4  0.240804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393513': 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) = 5233.7489983
delta logL = 0.261303103914

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.332e+00  4.580e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.680e+00  1.101e+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:  9.942e-01  2.408e-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.279e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/393513/cmap_HighResolution_513561601_513820801_4FGL_J2235.8-3627_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-28 16:39:59.923046', job_id='393513', GAL2='0.99', fit_tolerance='1e-08', EG2='1.28', EG='1.33', time_epoch_completed='1632872399.92', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.61e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1058' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 393513: <4FGL_J2235.8-3627_daily_bin1058> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1058 338.971 -36.4605 513561601 513820801 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

