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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1453
RA = 338.971, Dec = -36.4605
tmin = 615945601, tmax = 616204801
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='394857', job_status='RUN', time_executed='2021-09-28 16:32:18.663282', time_epoch_executed='1632871938.66' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394857/ft1_4FGL_J2235.8-3627_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394857/ft1_4FGL_J2235.8-3627_daily_bin1453.fits outfile=/scratch/kocevski/394857/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1453.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=615945601.0 tmax=616204801.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.21
user 4.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.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/394857/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1453.fits evtable="EVENTS" outfile="/scratch/kocevski/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.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.54
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/394857/ltcube_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.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/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits
.....................!
real 15.10
user 14.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/394857/ltcube_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.fits outfile=/scratch/kocevski/394857/expmap_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.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/394857/ltcube_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.fits
.....................!
real 193.77
user 187.69
sys 5.66

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/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.fits scfile=/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits outfile=/scratch/kocevski/394857/cmap_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.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.57
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/394857/ft2_4FGL_J2235.8-3627_daily_bin1453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394857/Model_4FGL_J2235.8-3627_daily_bin1453.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/394857/ft1_filtered_4FGL_J2235.8-3627_daily_bin1453.fits.....................!
real 47.89
user 46.38
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.377       1.0000         .10000E-03   10000.    
     3 'norm      '    10.820       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2726       1.0000         .10000E-03   10000.    
     8 'norm      '    8.0360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38128       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2317       1.0000         .10000E-03   10000.    
    19 'norm      '    .85054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11799E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8529       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.149       1.0000         .10000E-03   10000.    
    27 'norm      '    .10608E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83485       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=   6038.685     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3227 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.4700        .15276E-05** at limit **
   2  Prefactor     18.374        10.767       -.10801E-05   -.38136E-04
   3  norm          10.818        8.1935       -.74475E-06   -.14825E-04
   4  norm          .10000E-03    .96291        .55776E-07** at limit **
   5  norm          .15939        .20192        .18051E-07   -.65417E-04
   6  Prefactor     .10000E-03    2.4162        .13269E-06** at limit **
   7  Prefactor     1.2722        3.0647       -.23756E-06   -.91974E-04
   8  norm          8.0374        12.640       -.27954E-06    .86083E-05
   9  Prefactor     .10000E-03    9.6439        .38243E-07** at limit **
  10  Prefactor     4.0897        14.904       -.91341E-06    .36325E-05
  11  Prefactor     .10000E-03    4.4377        .52299E-07** at limit **
  12  norm          1.0674        1.6346       -.32879E-06   -.57331E-03
  13  Prefactor     .10000E-03    52.360        .51780E-06** at limit **
  14  Prefactor     8.3904        8.9489       -.64116E-06    .54351E-04
  15  Prefactor     .38158        3.0703        .33158E-06   -.35860E-04
  16  norm          3.3131        2.8720       -.45943E-06   -.22136E-04
  17  Prefactor     .10000E-03    5.3319       -.14774E-06** at limit **
  18  Prefactor     1.2269        13.843        .95876E-05   -.11339E-03
  19  norm          .85048        .62696       -.40637E-06   -.55837E-03
  20  Prefactor     .10000E-03    16.107       -.71063E-07** at limit **
  21  Prefactor     .10043E-03    5.7546       -.90816E-06** at limit **
  22  norm          .10000E-03    5.3796        .51618E-07** at limit **
  23  norm          .10000E-03    2.6840       -.12603E-06** at limit **
  24  norm          .10001E-03    4.6305       -.27925E-05** at limit **
  25  Prefactor     7.8659        19.004        .61183E-06    .33230E-04
  26  Prefactor     11.241        45.060        .14336E-04   -.53079E-05
  27  norm          .10000E-03    2.0768       -.20345E-06** at limit **
  28  Normalizat    1.0207        .16726        .13677E-05    .16143E-03
  29  Prefactor     .83455        .15824        .10644E-05    .43290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 18.3743
  norm       = 10.8177
  norm       = 0.0001
  norm       = 0.15939
  Prefactor  = 0.0001
  Prefactor  = 1.27222
  norm       = 8.03735
  Prefactor  = 0.0001
  Prefactor  = 4.0897
  Prefactor  = 0.0001
  norm       = 1.06743
  Prefactor  = 0.0001
  Prefactor  = 8.39042
  Prefactor  = 0.381577
  norm       = 3.31307
  Prefactor  = 0.0001
  Prefactor  = 1.22687
  norm       = 0.850482
  Prefactor  = 0.0001
  Prefactor  = 0.000100434
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 7.86589
  Prefactor  = 11.241
  norm       = 0.0001
  Normalizat = 1.02066
  Prefactor  = 0.834548
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.685     FROM HESSE     STATUS=OK           563 CALLS     3790 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.821        .32470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.374        10.389        .93429E-04   -1.4850    
   3  norm          10.818        8.1170        .12180E-03   -1.5050    
   4  norm          .10000E-03    .97024        .74424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .15939        .18248        .38038E-03   -1.5628    
   6  Prefactor     .10000E-03    2.4220        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2722        3.0369        .19955E-03   -1.5482    
   8  norm          8.0374        12.611        .14144E-03   -1.5141    
   9  Prefactor     .10000E-03    9.6454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0897        14.889        .19973E-03   -1.5303    
  11  Prefactor     .10000E-03    4.4400        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0674        1.4025        .11886E-02   -1.5501    
  13  Prefactor     .10000E-03    52.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3904        8.9746        .13837E-03   -1.5129    
  15  Prefactor     .38158        12.326        .25834E-02   -1.5584    
  16  norm          3.3131        2.8729        .11451E-03   -1.5344    
  17  Prefactor     .10000E-03    5.3445        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2269        14.845        .20253E-02   -1.5486    
  19  norm          .85048        .61560        .39280E-04   -1.5524    
  20  Prefactor     .10000E-03    16.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10043E-03    48.158        .33396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.3802        .17603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7203        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    26.948        .31252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.8659        18.930        .14309E-03   -1.5147    
  26  Prefactor     11.241        44.549        .11999E-03   -1.5037    
  27  norm          .10000E-03    2.1318        .21826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0207        .19113        .21805E-03   -.92342    
  29  Prefactor     .83455        .18521        .23577E-03   -.98467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03007e-08
Minuit parameter uncertainties:
  1  0.00107643
  2  10.39
  3  8.11783
  4  4.03222e-06
  5  0.182478
  6  1.6571e-05
  7  3.03729
  8  12.6154
  9  8.64941e-06
  10  14.9026
  11  1.00257e-05
  12  1.4025
  13  0.000200998
  14  8.97606
  15  4.33785
  16  2.87299
  17  2.25012e-05
  18  8.53754
  19  0.615602
  20  3.33821e-05
  21  0.00915316
  22  1.16502e-06
  23  9.57509e-06
  24  0.000734639
  25  18.9444
  26  44.6812
  27  1.54776e-05
  28  0.191254
  29  0.185348
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.090e+00  1.490e+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.345e-01  1.853e-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.021e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394857/likelihoodResults_615945601_616204801_4FGL_J2235.8-3627_daily_bin1453.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) = 6038.61355699
delta logL = 0.0715780642577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.60837051
delta logL = 0.0767645461829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8383       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7644       1.0000          .0000       10.000    
     3 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82978       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=   6038.608     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      302 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8373        18.228        .14322E-03    .43959E-03
   2  Index         1.7645        .95625        .14713E-01    .16507E-03
   3  Normalizat    1.0245        .18132        .21767E-03   -.13047E-03
   4  Prefactor     .82960        .18037        .23637E-03   -.16974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.83728
  Index      = 1.76446
  Normalizat = 1.0245
  Prefactor  = 0.829599
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.608     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8373        18.203        .57289E-05   -1.5148    
   2  Index         1.7645        .95561        .58853E-03   -.70379    
   3  Normalizat    1.0245        .18147        .87068E-05   -.92214    
   4  Prefactor     .82960        .18052        .94548E-05   -.98646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73831e-09
Minuit parameter uncertainties:
  1  18.2159
  2  0.965911
  3  0.181582
  4  0.180651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394857': 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) = 6038.60837
delta logL = 0.0767650550706

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  7.837e+00  1.822e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.764e+00  9.659e-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.296e-01  1.807e-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.025e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 338.971 -36.461

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-28 16:45:04.995068', job_id='394857', GAL2='0.83', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632872705.0', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.68e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1453' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 394857: <4FGL_J2235.8-3627_daily_bin1453> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1453> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:29 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:31 2021
Terminated at Tue Sep 28 16:45:05 2021
Results reported at Tue Sep 28 16:45:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1453 338.971 -36.4605 615945601 616204801 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 :                                   760.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

