/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 63 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1470
RA = 338.971, Dec = -36.4605
tmin = 620352001, tmax = 620611201
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='394884', job_status='RUN', time_executed='2021-09-28 16:31:45.270820', time_epoch_executed='1632871905.27' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394884/ft1_4FGL_J2235.8-3627_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394884/ft1_4FGL_J2235.8-3627_daily_bin1470.fits outfile=/scratch/kocevski/394884/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1470.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=620352001.0 tmax=620611201.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 4.92
user 4.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.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/394884/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1470.fits evtable="EVENTS" outfile="/scratch/kocevski/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/394884/ltcube_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.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/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits
.....................!
real 13.53
user 13.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/394884/ltcube_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.fits outfile=/scratch/kocevski/394884/expmap_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.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/394884/ltcube_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.fits
.....................!
real 190.27
user 184.73
sys 5.14

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/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits outfile=/scratch/kocevski/394884/cmap_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits outfile=/scratch/kocevski/394884/cmap_HighResolution_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/394884/ft2_4FGL_J2235.8-3627_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394884/Model_4FGL_J2235.8-3627_daily_bin1470.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/394884/ft1_filtered_4FGL_J2235.8-3627_daily_bin1470.fits.....................!
real 47.49
user 46.08
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.1340       1.0000         .10000E-03   10000.    
     5 'norm      '    .84631       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      '    11.198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88911       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3481       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6212       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.9263       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57960       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=   6155.410     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3675 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6047        .88428E-07** at limit **
   2  Prefactor     .10000E-03    2.0964        .80075E-08** at limit **
   3  norm          .10000E-03    3.0126        .37820E-07** at limit **
   4  norm          3.1341        4.1429        .40289E-07    .14493E-04
   5  norm          .84631        .33487        .52203E-08    .86682E-06
   6  Prefactor     .10000E-03    3.7246       -.80094E-07** at limit **
   7  Prefactor     .10000E-03    .90823       -.20917E-07** at limit **
   8  norm          11.197        12.275       -.60458E-06    .91040E-04
   9  Prefactor     40.078        35.997        .25953E-05   -.41887E-04
  10  Prefactor     .10000E-03    5.7362       -.82718E-07** at limit **
  11  Prefactor     .10000E-03    6.6555        .63859E-07** at limit **
  12  norm          .10000E-03    1.8529       -.23854E-05** at limit **
  13  Prefactor     75.811        48.505        .18649E-05    .30951E-03
  14  Prefactor     .10000E-03    2.1598        .50044E-07** at limit **
  15  Prefactor     .89056        5.0344       -.25344E-06    .77815E-05
  16  norm          5.9813        3.5828       -.73329E-07    .21077E-03
  17  Prefactor     3.6005        12.140        .13040E-05    .76881E-04
  18  Prefactor     7.3498        11.790       -.10480E-05    .19391E-03
  19  norm          1.0418        .79825       -.38864E-07   -.43395E-03
  20  Prefactor     7.6218        48.451        .12370E-06    .17244E-05
  21  Prefactor     .10000E-03    3.8015        .53707E-06** at limit **
  22  norm          .10000E-03    22.508       -.12086E-05** at limit **
  23  norm          .10000E-03    1.7547       -.10456E-08** at limit **
  24  norm          .10000E-03    2.6895        .16716E-07** at limit **
  25  Prefactor     .10000E-03    26.839        .22684E-05** at limit **
  26  Prefactor     .10000E-03    46.080       -.18132E-05** at limit **
  27  norm          8.9267        4.2885        .15421E-07   -.11611E-03
  28  Normalizat    1.2145        .16238       -.50117E-06    .16117E-03
  29  Prefactor     .57966        .15408       -.16077E-06    .10534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.13409
  norm       = 0.846309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1968
  Prefactor  = 40.0781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.8106
  Prefactor  = 0.0001
  Prefactor  = 0.890564
  norm       = 5.9813
  Prefactor  = 3.6005
  Prefactor  = 7.34979
  norm       = 1.04182
  Prefactor  = 7.62181
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.92674
  Normalizat = 1.21448
  Prefactor  = 0.579656
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.410     FROM HESSE     STATUS=OK           549 CALLS     4224 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6828        .16438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1005        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0283        .13297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1341        4.1315        .16954E-03   -1.5354    
   5  norm          .84631        .33586        .26615E-04   -1.5524    
   6  Prefactor     .10000E-03    3.7781        .14778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .91266        .72993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.197        12.254        .11972E-03   -1.5039    
   9  Prefactor     40.078        35.761        .63299E-04   -1.4441    
  10  Prefactor     .10000E-03    5.7414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8693        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.811        49.829        .23047E-03   -1.3964    
  14  Prefactor     .10000E-03    2.1646        .11260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .89056        5.0782        .33853E-03   -1.5519    
  16  norm          5.9813        3.5719        .10661E-03   -1.5219    
  17  Prefactor     3.6005        12.123        .21294E-03   -1.5328    
  18  Prefactor     7.3498        12.335        .73980E-03   -1.5166    
  19  norm          1.0418        .81791        .44455E-04   -1.5504    
  20  Prefactor     7.6218        48.446        .14526E-03   -1.5156    
  21  Prefactor     .10000E-03    3.8284        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    22.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7588        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7089        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.9267        4.2840        .10867E-03   -1.5110    
  28  Normalizat    1.2145        .18978        .20378E-03   -.86157    
  29  Prefactor     .57966        .17915        .27334E-03   -1.0845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96893e-10
Minuit parameter uncertainties:
  1  6.46922e-06
  2  1.24023e-06
  3  2.6607e-06
  4  4.13192
  5  0.335861
  6  9.30057e-06
  7  1.07176e-06
  8  12.2568
  9  35.7797
  10  4.69886e-06
  11  3.67201e-06
  12  7.64453e-06
  13  49.856
  14  2.82885e-06
  15  4.25354
  16  3.57198
  17  12.1313
  18  12.3397
  19  0.817915
  20  38.4773
  21  1.95606e-05
  22  6.17527e-05
  23  3.79433e-07
  24  3.15264e-06
  25  7.01708e-05
  26  0.000145012
  27  4.28415
  28  0.189887
  29  0.179326
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.699e-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:  5.797e-01  1.793e-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.214e+00  1.899e-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: 3.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394884/likelihoodResults_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.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) = 6155.41074443
delta logL = -0.000827313236186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6155.40991706
delta logL = 5.42650013813e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2153       1.0000          .0000       10.000    
     3 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57965       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=   6155.410     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    203.36        .18142E-01** at limit **
   2  Index         1.7806        5.8577        .98725E-01   -.34547E-08
   3  Normalizat    1.2145        .22201E-01    .20378E-03    .55835E-04
   4  Prefactor     .57966        .21357E-01    .27334E-03    .45543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78061
  Normalizat = 1.21447
  Prefactor  = 0.579656
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.410     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6827        .19739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7806        5.8686        .39490E-02   -.69956    
   3  Normalizat    1.2145        .18395        .40755E-04   -.86157    
   4  Prefactor     .57966        .17688        .10934E-04   -1.0845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74959e-12
Minuit parameter uncertainties:
  1  4.58147e-06
  2  267.238
  3  0.18405
  4  0.177052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394884': 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) = 6155.40991593
delta logL = 1.18786556413e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.581e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.781e+00  2.672e+02  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:  5.797e-01  1.771e-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.214e+00  1.840e-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/394884/cmap_HighResolution_620352001_620611201_4FGL_J2235.8-3627_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2021-09-28 16:45:01.098307', job_id='394884', GAL2='0.58', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632872701.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1470' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 394884: <4FGL_J2235.8-3627_daily_bin1470> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1470 338.971 -36.4605 620352001 620611201 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 :                                   790.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

