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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1026
RA = 338.971, Dec = -36.4605
tmin = 505267201, tmax = 505526401
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='393456', job_status='RUN', time_executed='2021-09-28 16:29:33.292993', time_epoch_executed='1632871773.29' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393456/ft1_4FGL_J2235.8-3627_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393456/ft1_4FGL_J2235.8-3627_daily_bin1026.fits outfile=/scratch/kocevski/393456/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1026.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=505267201.0 tmax=505526401.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.58
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/393456/ltcube_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.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/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits
.....................!
real 12.38
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/393456/ltcube_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.fits outfile=/scratch/kocevski/393456/expmap_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.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/393456/ltcube_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.fits
.....................!
real 191.31
user 185.84
sys 4.93

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/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits scfile=/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits outfile=/scratch/kocevski/393456/cmap_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.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/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits scfile=/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits outfile=/scratch/kocevski/393456/cmap_HighResolution_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/393456/ft2_4FGL_J2235.8-3627_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393456/Model_4FGL_J2235.8-3627_daily_bin1026.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/393456/ft1_filtered_4FGL_J2235.8-3627_daily_bin1026.fits.....................!
real 43.30
user 41.64
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.686       1.0000         .10000E-03   10000.    
     4 'norm      '    15.557       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1273       1.0000         .10000E-03   10000.    
     8 'norm      '    57.417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1172       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59826       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.464       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3339       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6082       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4272       1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.708       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11931E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89958       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.788     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3710 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.571        .21132E-06** at limit **
   2  Prefactor     .10004E-03    34.021        .15385E-04** at limit **
   3  norm          14.686        9.2934       -.43132E-07    .15754E-04
   4  norm          15.556        8.4678        .44800E-07    .11447E-03
   5  norm          1.3617        .54082       -.24478E-07    .77050E-04
   6  Prefactor     .10000E-03    11.150       -.98571E-06** at limit **
   7  Prefactor     1.1231        2.3745        .30552E-06    .74074E-03
   8  norm          57.435        29.137       -.52186E-06   -.76688E-04
   9  Prefactor     46.577        41.447        .22199E-05    .22517E-03
  10  Prefactor     28.597        25.194        .56696E-06    .18772E-03
  11  Prefactor     .10000E-03    11.872       -.33073E-06** at limit **
  12  norm          4.1177        2.5610       -.14664E-07    .33754E-04
  13  Prefactor     .10000E-03    28.612        .62566E-06** at limit **
  14  Prefactor     .10000E-03    8.7569       -.11830E-05** at limit **
  15  Prefactor     .10000E-03    13.037       -.16640E-05** at limit **
  16  norm          .10000E-03    1.6041        .41256E-07** at limit **
  17  Prefactor     .10000E-03    14.873        .17014E-06** at limit **
  18  Prefactor     .10000E-03    15.951        .77998E-06** at limit **
  19  norm          .59794        .61474       -.33261E-07    .82695E-03
  20  Prefactor     18.501        37.521        .10928E-05    .75906E-04
  21  Prefactor     12.457        13.908        .58886E-06    .51269E-03
  22  norm          4.3357        24.556        .27828E-05    .33686E-03
  23  norm          4.6070        4.5308        .50381E-06    .45326E-03
  24  norm          3.4282        5.1277       -.12144E-07    .88659E-04
  25  Prefactor     57.759        44.941        .42688E-07    .57380E-04
  26  Prefactor     .10000E-03    12.049        .27656E-06** at limit **
  27  norm          .10002E-03    3.6533       -.21901E-05** at limit **
  28  Normalizat    1.1020        .20693       -.26004E-05    .27888E-03
  29  Prefactor     .89922        .19347        .37561E-05    .64877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 14.6865
  norm       = 15.5565
  norm       = 1.36172
  Prefactor  = 0.000100001
  Prefactor  = 1.12313
  norm       = 57.4349
  Prefactor  = 46.5769
  Prefactor  = 28.5967
  Prefactor  = 0.0001
  norm       = 4.11775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.597941
  Prefactor  = 18.5011
  Prefactor  = 12.4574
  norm       = 4.33566
  norm       = 4.60697
  norm       = 3.4282
  Prefactor  = 57.759
  Prefactor  = 0.0001
  norm       = 0.000100019
  Normalizat = 1.10196
  Prefactor  = 0.899217
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.788     FROM HESSE     STATUS=OK           555 CALLS     4265 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    37.379        .37636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.686        9.2953        .10452E-03   -1.4941    
   4  norm          15.556        8.5063        .10155E-03   -1.4919    
   5  norm          1.3617        .54204        .30705E-04   -1.5475    
   6  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1231        1.9167        .15785E-02   -1.5496    
   8  norm          57.435        29.151        .26471E-03   -1.4191    
   9  Prefactor     46.577        41.562        .29360E-03   -1.4342    
  10  Prefactor     28.597        25.256        .74899E-04   -1.4638    
  11  Prefactor     .10000E-03    11.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1177        2.5605        .88550E-04   -1.5302    
  13  Prefactor     .10000E-03    28.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.114        .40658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6139        .89449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .59794        .59236        .50439E-03   -1.5553    
  20  Prefactor     18.501        37.561        .93077E-04   -1.4847    
  21  Prefactor     12.457        13.848        .56732E-03   -1.5002    
  22  norm          4.3357        25.571        .96747E-03   -1.5291    
  23  norm          4.6070        4.5358        .14608E-03   -1.5279    
  24  norm          3.4282        5.1164        .19486E-03   -1.5338    
  25  Prefactor     57.759        44.840        .52810E-04   -1.4187    
  26  Prefactor     .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10002E-03    26.694        .22990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1020        .24182        .25318E-03   -.89689    
  29  Prefactor     .89922        .22721        .26415E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32248e-09
Minuit parameter uncertainties:
  1  4.35107e-05
  2  0.00253796
  3  9.29617
  4  8.50697
  5  0.542045
  6  0.000203355
  7  1.91685
  8  29.1581
  9  41.5878
  10  25.2656
  11  0.000141506
  12  2.56059
  13  0.000131134
  14  0.000121509
  15  0.000514952
  16  3.89342e-06
  17  8.57815e-05
  18  0.000238534
  19  0.592361
  20  37.609
  21  13.8518
  22  21.0721
  23  4.53617
  24  5.11703
  25  44.8657
  26  2.83417e-05
  27  0.00140711
  28  0.242062
  29  0.227445
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.860e+01  2.527e+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.992e-01  2.274e-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.102e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.51e-05

TS (Fixed Index): 2.41
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393456/likelihoodResults_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.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) = 5234.60524282
delta logL = 0.18287459099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5234.59845103
delta logL = 0.189666376453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.668       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7311       1.0000          .0000       10.000    
     3 'Normalizat'    1.0694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91777       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=   5234.598     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.658        27.660        .88103E-04    .66298E-03
   2  Index         2.7305        .96598        .69304E-02    .19195E-03
   3  Normalizat    1.0693        .24573        .25656E-03   -.11157E-02
   4  Prefactor     .91817        .22860        .26171E-03   -.14432E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6579
  Index      = 2.7305
  Normalizat = 1.06933
  Prefactor  = 0.918175
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.598     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.658        24.714        .17621E-04   -1.4799    
   2  Index         2.7305        .86231        .27721E-03   -.47114    
   3  Normalizat    1.0693        .24461        .51312E-04   -.90743    
   4  Prefactor     .91817        .22800        .52342E-04   -.95509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12432e-09
Minuit parameter uncertainties:
  1  24.726
  2  0.867789
  3  0.244872
  4  0.228235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393456': 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) = 5234.5984461
delta logL = 0.189671306986

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.066e+01  2.473e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.730e+00  8.678e-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.182e-01  2.282e-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.069e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.73 +/- 0.87
Photon Flux (Free Index): 6.53e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.20e-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/393456/cmap_HighResolution_505267201_505526401_4FGL_J2235.8-3627_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.54e-05', photon_flux_error='3.53e-08', dlogl='1.90e-01', energy_flux='1.70e-05', photon_flux2='6.53e-08', job_status='DONE', time_completed='2021-09-28 16:41:30.798661', photon_index_error2='0.87', photon_index2='2.73', ts='2.41', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.20e-05', EG='1.10', time_epoch_completed='1632872490.8', return_code='0', job_id='393456', GAL2='0.92', EG2='1.07', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.41e-08', ts2='2.80', photon_index='2.23' WHERE bin_id='1026' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 393456: <4FGL_J2235.8-3627_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1026 338.971 -36.4605 505267201 505526401 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 :                                   713.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

