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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1361
RA = 338.971, Dec = -36.4605
tmin = 592099201, tmax = 592358401
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='394713', job_status='RUN', time_executed='2021-09-28 16:33:48.220477', time_epoch_executed='1632872028.22' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394713/ft1_4FGL_J2235.8-3627_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394713/ft1_4FGL_J2235.8-3627_daily_bin1361.fits outfile=/scratch/kocevski/394713/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1361.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=592099201.0 tmax=592358401.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.54
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.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/394713/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/394713/ltcube_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.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/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits
.....................!
real 11.94
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/394713/ltcube_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.fits outfile=/scratch/kocevski/394713/expmap_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.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/394713/ltcube_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.fits
.....................!
real 189.97
user 185.12
sys 4.36

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/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.fits scfile=/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits outfile=/scratch/kocevski/394713/cmap_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/394713/ft2_4FGL_J2235.8-3627_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394713/Model_4FGL_J2235.8-3627_daily_bin1361.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/394713/ft1_filtered_4FGL_J2235.8-3627_daily_bin1361.fits.....................!
real 37.48
user 36.17
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19318E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .21268       1.0000         .10000E-03   10000.    
     4 'norm      '    12.419       1.0000         .10000E-03   10000.    
     5 'norm      '    .28279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11970E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9129       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .64108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .16260E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.351       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8961       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86586       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1913       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=   4374.042     FROM MIGRAD    STATUS=CONVERGED   1307 CALLS     4832 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0731        .18142E-02** at limit **
   2  Prefactor     .10006E-03    13.221        .62410E-01** at limit **
   3  norm          .20265        183.33        .36306E-02    .56318E-04
   4  norm          12.420        8.5617        .11367E-03   -.26104E-04
   5  norm          .28278        .29685        .34734E-04    .16791E-03
   6  Prefactor     .10000E-03    4.3376        .13425E-02** at limit **
   7  Prefactor     .10000E-03    1.0496        .66078E-03** at limit **
   8  norm          .10000E-03    6.8998        .16967E-02** at limit **
   9  Prefactor     24.735        24.541        .80540E-04    .32466E-05
  10  Prefactor     .10000E-03    15.649        .18142E-02** at limit **
  11  Prefactor     .10000E-03    128.64        .53692E-02** at limit **
  12  norm          1.9124        2.0072        .88323E-04    .68477E-04
  13  Prefactor     14.409        49.647        .10559E-03    .27993E-05
  14  Prefactor     22.670        21.062        .84079E-04    .72070E-04
  15  Prefactor     .10000E-03    1.5787        .81142E-03** at limit **
  16  norm          .10000E-03    1.2931        .73405E-03** at limit **
  17  Prefactor     .10000E-03    4.5821        .13824E-02** at limit **
  18  Prefactor     .10000E-03    5.0031        .14409E-02** at limit **
  19  norm          .64113        .59192        .48373E-03   -.28743E-03
  20  Prefactor     .10000E-03    139.67        .18142E-02** at limit **
  21  Prefactor     .10000E-03    7.0225        .17086E-02** at limit **
  22  norm          .10000E-03    7.9693        .18142E-02** at limit **
  23  norm          .10000E-03    2.3748        .99434E-03** at limit **
  24  norm          .10016E-03    121.20        .34975E-02** at limit **
  25  Prefactor     .10000E-03    30.197        .18142E-02** at limit **
  26  Prefactor     15.360        52.183        .10222E-03    .10788E-04
  27  norm          2.8956        4.4095        .16575E-03    .11167E-03
  28  Normalizat    .86630        .26204        .26828E-03    .13776E-03
  29  Prefactor     1.1910        .24907        .22584E-03    .15762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  norm       = 0.202647
  norm       = 12.4196
  norm       = 0.282776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7351
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.91238
  Prefactor  = 14.4091
  Prefactor  = 22.6705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.641133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100164
  Prefactor  = 0.0001
  Prefactor  = 15.3602
  norm       = 2.89556
  Normalizat = 0.866304
  Prefactor  = 1.19097
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.042     FROM HESSE     STATUS=OK           537 CALLS     5369 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    12.245        .65806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20265        183.27        .14522E-03   -1.5618    
   4  norm          12.420        8.5313        .45468E-05   -1.5003    
   5  norm          .28278        .29681        .13894E-05   -1.5602    
   6  Prefactor     .10000E-03    4.3379        .26849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0496        .13216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8998        .33934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.735        24.538        .32216E-05   -1.4713    
  10  Prefactor     .10000E-03    15.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    132.08        .21477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9124        2.0072        .35329E-05   -1.5431    
  13  Prefactor     14.409        49.647        .42237E-05   -1.4949    
  14  Prefactor     22.670        21.058        .33631E-05   -1.4755    
  15  Prefactor     .10000E-03    1.5787        .16228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2931        .14681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5821        .27648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0036        .28818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .64113        .59169        .19349E-04   -1.5548    
  20  Prefactor     .10000E-03    139.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0233        .34173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.9694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3748        .19887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10016E-03    125.86        .13990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.360        52.178        .40890E-05   -1.4924    
  27  norm          2.8956        4.4084        .66298E-05   -1.5368    
  28  Normalizat    .86630        .26171        .10731E-04   -.97654    
  29  Prefactor     1.1910        .24707        .45169E-04   -.86609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47117e-09
Minuit parameter uncertainties:
  1  6.10957e-06
  2  0.00177717
  3  12.2232
  4  8.53218
  5  0.296808
  6  1.61839e-06
  7  1.57679e-07
  8  5.6704e-07
  9  24.5484
  10  1.30846e-05
  11  0.000854584
  12  2.00726
  13  49.7896
  14  21.0647
  15  9.33808e-08
  16  6.8922e-07
  17  3.33257e-06
  18  1.14367e-05
  19  0.591692
  20  0.00043558
  21  1.9181e-05
  22  2.91611e-06
  23  4.49489e-06
  24  0.00910574
  25  8.02912e-05
  26  52.3335
  27  4.40891
  28  0.262095
  29  0.24731
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.308e-05  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:  1.191e+00  2.473e-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:  8.663e-01  2.621e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394713/likelihoodResults_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.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) = 4374.0418982
delta logL = -0.000304370339109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4374.04159893
delta logL = -5.10647350893e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5077       1.0000          .0000       10.000    
     3 'Normalizat'    .86629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1910       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=   4374.042     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0512        .40654E-01** at limit **
   2  Index         3.4898        3.4492        .50000        .29180E-04
   3  Normalizat    .86630        .41992E-02    .44469E-01    .23183E-03
   4  Prefactor     1.1910        .40950E-02    .51084E-01    .12855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.48981
  Normalizat = 0.866305
  Prefactor  = 1.19097
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.042     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    886.64        .22882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4898        5.7810        .50000       -.30683    
   3  Normalizat    .86630        .82308E-01    .26829E-03   -.97654    
   4  Prefactor     1.1910        .79872E-01    .22584E-03   -.86610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24532e-08
Minuit parameter uncertainties:
  1  0.00303912
  2  58.3855
  3  0.0823197
  4  0.0798802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394713': 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) = 4374.04159879
delta logL = -4.96397933603e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.039e-03  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.490e+00  5.839e+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:  1.191e+00  7.988e-02  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:  8.663e-01  8.232e-02  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/394713/cmap_HighResolution_592099201_592358401_4FGL_J2235.8-3627_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-28 16:45:28.241279', job_id='394713', GAL2='1.19', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632872728.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-4.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1361' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 394713: <4FGL_J2235.8-3627_daily_bin1361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1361 338.971 -36.4605 592099201 592358401 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 :                                   690.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

