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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1047
RA = 338.971, Dec = -36.4605
tmin = 510710401, tmax = 510969601
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='393491', job_status='RUN', time_executed='2021-09-28 16:27:56.393282', time_epoch_executed='1632871676.39' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393491/ft1_4FGL_J2235.8-3627_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393491/ft1_4FGL_J2235.8-3627_daily_bin1047.fits outfile=/scratch/kocevski/393491/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1047.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=510710401.0 tmax=510969601.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.45
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.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/393491/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1047.fits evtable="EVENTS" outfile="/scratch/kocevski/393491/ft1_filtered_4FGL_J2235.8-3627_daily_bin1047.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393491/ft1_filtered_4FGL_J2235.8-3627_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/393491/ltcube_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.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/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits
.....................!
real 12.04
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393491/ft1_filtered_4FGL_J2235.8-3627_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/393491/ltcube_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.fits outfile=/scratch/kocevski/393491/expmap_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.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/393491/ltcube_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.fits
.....................!
real 190.34
user 185.50
sys 4.48

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/393491/ft1_filtered_4FGL_J2235.8-3627_daily_bin1047.fits scfile=/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits outfile=/scratch/kocevski/393491/cmap_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.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.69
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393491/ft1_filtered_4FGL_J2235.8-3627_daily_bin1047.fits scfile=/scratch/kocevski/393491/ft2_4FGL_J2235.8-3627_daily_bin1047.fits outfile=/scratch/kocevski/393491/cmap_HighResolution_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11071E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41688E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8295       1.0000         .10000E-03   10000.    
     8 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10326E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    115.54       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.445       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62016       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6352       1.0000         .10000E-03   10000.    
    19 'norm      '    .15150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.220       1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    42.923       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9182       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96859       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84737       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=   6400.109     FROM MIGRAD    STATUS=CONVERGED   1338 CALLS     4449 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13463E-03    8.1454        .54837E-01** at limit **
   2  Prefactor     .10000E-03    1.9248        .10833E-02** at limit **
   3  norm          .10002E-03    21.348        .33662E-02** at limit **
   4  norm          .10000E-03    5.2102        .34858E-03** at limit **
   5  norm          1.4891        .39549        .25079E-04   -.45377E-03
   6  Prefactor     .10635E-03    5.4104        .50708E-01** at limit **
   7  Prefactor     1.8276        3.3259        .18486E-03    .19864E-04
   8  norm          .10000E-03    21.081        .18142E-02** at limit **
   9  Prefactor     .10000E-03    16.122        .18142E-02** at limit **
  10  Prefactor     27.553        15.845        .38156E-03   -.11927E-03
  11  Prefactor     .10000E-03    8.2088        .18142E-02** at limit **
  12  norm          .10000E-03    1.4604        .18618E-03** at limit **
  13  Prefactor     115.56        54.513        .37429E-04   -.46168E-04
  14  Prefactor     15.436        10.671        .10191E-03   -.21530E-04
  15  Prefactor     .59650        12.391        .27262E-02   -.19819E-03
  16  norm          1.7638        2.2432        .13132E-03    .15747E-03
  17  Prefactor     .10000E-03    4.9745        .17367E-02** at limit **
  18  Prefactor     5.6344        6.3132        .16922E-03   -.16863E-04
  19  norm          .15134        .42078        .70477E-04    .58717E-04
  20  Prefactor     .10000E-03    9.4540        .18142E-02** at limit **
  21  Prefactor     15.220        10.011        .10266E-03    .11993E-03
  22  norm          .10000E-03    4.1529        .15922E-02** at limit **
  23  norm          .10000E-03    1.4069        .92537E-03** at limit **
  24  norm          .10000E-03    1.6784        .10112E-02** at limit **
  25  Prefactor     42.904        27.353        .61189E-04    .79520E-04
  26  Prefactor     .10000E-03    8.3597        .18142E-02** at limit **
  27  norm          1.9172        2.1789        .12056E-03   -.10335E-03
  28  Normalizat    .96923        .20371        .22951E-03    .64839E-04
  29  Prefactor     .84711        .18751        .23872E-03   -.23812E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000134628
  Prefactor  = 0.0001
  norm       = 0.000100022
  norm       = 0.0001
  norm       = 1.48907
  Prefactor  = 0.000106347
  Prefactor  = 1.8276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 115.564
  Prefactor  = 15.4361
  Prefactor  = 0.596499
  norm       = 1.76382
  Prefactor  = 0.0001
  Prefactor  = 5.63441
  norm       = 0.151336
  Prefactor  = 0.0001
  Prefactor  = 15.2198
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.9038
  Prefactor  = 0.0001
  norm       = 1.91719
  Normalizat = 0.969229
  Prefactor  = 0.847115
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.109     FROM HESSE     STATUS=OK           545 CALLS     4994 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13463E-03    7.3407        .58584E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9248        .21666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    21.680        .67325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.2105        .69716E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4891        .39547        .10032E-05   -1.5464    
   6  Prefactor     .10635E-03    5.2279        .51948E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8276        3.3253        .73945E-05   -1.5438    
   8  norm          .10000E-03    21.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.553        15.844        .15263E-04   -1.4658    
  11  Prefactor     .10000E-03    8.2095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4604        .37235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     115.56        54.507        .74859E-05   -1.3554    
  14  Prefactor     15.436        10.670        .40765E-05   -1.4922    
  15  Prefactor     .59650        12.352        .10905E-03   -1.5554    
  16  norm          1.7638        2.2431        .52529E-05   -1.5442    
  17  Prefactor     .10000E-03    4.9747        .34733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6344        6.3099        .67690E-05   -1.5233    
  19  norm          .15134        .42052        .28191E-05   -1.5630    
  20  Prefactor     .10000E-03    9.4541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.220        10.008        .41065E-05   -1.4928    
  22  norm          .10000E-03    4.1529        .31845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4069        .18507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6784        .20224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     42.904        27.352        .12238E-04   -1.4397    
  26  Prefactor     .10000E-03    8.3598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9172        2.1787        .48223E-05   -1.5431    
  28  Normalizat    .96923        .20363        .91806E-05   -.94069    
  29  Prefactor     .84711        .18770        .95489E-05   -.98014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20385e-09
Minuit parameter uncertainties:
  1  0.0318908
  2  1.61372e-06
  3  0.00139139
  4  2.14397e-05
  5  0.395475
  6  0.0115217
  7  3.32565
  8  3.8444e-05
  9  1.30858e-05
  10  15.8467
  11  1.35097e-05
  12  5.07023e-06
  13  54.5303
  14  10.671
  15  5.4297
  16  2.24322
  17  1.49961e-06
  18  6.31062
  19  0.420525
  20  8.84212e-06
  21  10.0092
  22  3.05316e-07
  23  3.61823e-06
  24  9.55016e-08
  25  27.3598
  26  6.41839e-06
  27  2.17883
  28  0.203789
  29  0.187842
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.755e+01  1.585e+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:  8.471e-01  1.878e-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:  9.692e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.71
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 9.44e-06

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) = 6396.91685857
delta logL = 3.19217817422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.88719001
delta logL = 3.22184673494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.311       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3419       1.0000          .0000       10.000    
     3 'Normalizat'    .99552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83104       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=   6396.887     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.311        17.616        .17902E-02   -.24423E-02
   2  Index         1.3414        .26169        .14036       -.50144E-04
   3  Normalizat    .99565        .15726        .46111E-01    .21225E-04
   4  Prefactor     .83083        .15467        .44120E-01    .18014E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3105
  Index      = 1.34141
  Normalizat = 0.995648
  Prefactor  = 0.83083
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.887     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.311        20.372        .71606E-04   -1.4588    
   2  Index         1.3414        .31693        .59328E-02   -.82084    
   3  Normalizat    .99565        .18731        .22664E-03   -.93176    
   4  Prefactor     .83083        .18425        .24057E-03   -.98602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02422e-08
Minuit parameter uncertainties:
  1  20.3761
  2  0.317387
  3  0.187429
  4  0.184385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393491': 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) = 6396.88718783
delta logL = 3.22184892247

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.131e+01  2.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.341e+00  3.174e-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:  8.308e-01  1.844e-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:  9.956e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.16
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.34 +/- 0.32
Photon Flux (Free Index): 1.84e-08 +/- 1.23e-08
Energy Flux (Free Index): 9.85e-05 +/- 8.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/393491/cmap_HighResolution_510710401_510969601_4FGL_J2235.8-3627_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.85e-05', photon_flux_error='2.22e-08', dlogl='3.22e+00', energy_flux='1.64e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-28 16:40:51.235710', photon_index_error2='0.32', photon_index2='1.34', ts='10.71', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='8.53e-05', EG='0.97', time_epoch_completed='1632872451.24', return_code='0', job_id='393491', GAL2='0.83', EG2='1.00', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='1.23e-08', ts2='17.16', photon_index='2.23' WHERE bin_id='1047' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 393491: <4FGL_J2235.8-3627_daily_bin1047> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1047 338.971 -36.4605 510710401 510969601 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 :                                   772.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

