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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1399
RA = 338.971, Dec = -36.4605
tmin = 601948801, tmax = 602208001
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='394772', job_status='RUN', time_executed='2021-09-28 16:30:40.517035', time_epoch_executed='1632871840.52' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394772/ft1_4FGL_J2235.8-3627_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394772/ft1_4FGL_J2235.8-3627_daily_bin1399.fits outfile=/scratch/kocevski/394772/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1399.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=601948801.0 tmax=602208001.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.81
user 3.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.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/394772/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1399.fits evtable="EVENTS" outfile="/scratch/kocevski/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.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/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/394772/ltcube_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.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/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits
.....................!
real 12.12
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/394772/ltcube_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.fits outfile=/scratch/kocevski/394772/expmap_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.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/394772/ltcube_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.fits
.....................!
real 193.04
user 187.46
sys 5.15

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/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.fits scfile=/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits outfile=/scratch/kocevski/394772/cmap_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.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.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/394772/ft2_4FGL_J2235.8-3627_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394772/Model_4FGL_J2235.8-3627_daily_bin1399.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/394772/ft1_filtered_4FGL_J2235.8-3627_daily_bin1399.fits.....................!
real 45.24
user 44.02
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7329       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20384       1.0000         .10000E-03   10000.    
     5 'norm      '    .86961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90577       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3061       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.806       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1097       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3798       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .34342       1.0000         .10000E-03   10000.    
    24 'norm      '    10.923       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .63490       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .49083       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3737       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=   5967.255     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3750 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8132       -.10209E-05** at limit **
   2  Prefactor     4.7337        6.8035        .10377E-06    .93742E-05
   3  norm          .10000E-03    3.5411        .14936E-07** at limit **
   4  norm          .26402        2.4616       -.81250E-07    .19674E-03
   5  norm          .86830        .37515        .20999E-08    .24513E-03
   6  Prefactor     .10000E-03    3.1275        .68489E-08** at limit **
   7  Prefactor     .90659        2.2482        .65731E-06    .67262E-04
   8  norm          .10000E-03    18.233       -.93574E-06** at limit **
   9  Prefactor     .10000E-03    7.2138        .15385E-06** at limit **
  10  Prefactor     16.068        20.405        .12999E-06   -.20906E-04
  11  Prefactor     .10000E-03    4.4866        .17289E-07** at limit **
  12  norm          1.2442        1.9831        .18428E-06   -.27864E-04
  13  Prefactor     .10000E-03    90.076       -.61856E-06** at limit **
  14  Prefactor     12.345        12.344       -.12904E-06   -.11759E-03
  15  Prefactor     3.3066        3.9395       -.38174E-07   -.16585E-03
  16  norm          .10000E-03    1.1662        .61963E-08** at limit **
  17  Prefactor     .10000E-03    5.7758       -.28979E-07** at limit **
  18  Prefactor     29.802        14.667       -.10241E-06   -.84824E-05
  19  norm          1.1091        .91824       -.33215E-07   -.88391E-04
  20  Prefactor     46.246        46.579        .23936E-05    .16277E-03
  21  Prefactor     2.3899        22.799        .13203E-05   -.40267E-04
  22  norm          .10000E-03    21.044        .13434E-05** at limit **
  23  norm          .34403        4.4752        .26067E-05   -.26111E-03
  24  norm          10.926        8.4545        .14472E-06    .78755E-05
  25  Prefactor     .10000E-03    11.391        .12150E-05** at limit **
  26  Prefactor     .10000E-03    17.084       -.81932E-06** at limit **
  27  norm          .63586        2.3026        .73151E-06   -.17874E-03
  28  Normalizat    .49049        .18415       -.16030E-05   -.46465E-04
  29  Prefactor     1.3738        .18022        .13572E-06   -.86388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.73365
  norm       = 0.0001
  norm       = 0.264024
  norm       = 0.8683
  Prefactor  = 0.0001
  Prefactor  = 0.906591
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0684
  Prefactor  = 0.0001
  norm       = 1.2442
  Prefactor  = 0.0001
  Prefactor  = 12.3448
  Prefactor  = 3.30656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8025
  norm       = 1.10913
  Prefactor  = 46.2458
  Prefactor  = 2.38988
  norm       = 0.000100001
  norm       = 0.344031
  norm       = 10.9264
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.635864
  Normalizat = 0.490495
  Prefactor  = 1.37385
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.255     FROM HESSE     STATUS=OK           555 CALLS     4305 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7337        6.8084        .18496E-03   -1.5273    
   3  norm          .10000E-03    3.5531        .14195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26402        18.323        .22175E-02   -1.5605    
   5  norm          .86830        .38345        .28881E-04   -1.5522    
   6  Prefactor     .10000E-03    3.1583        .13336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .90659        2.1709        .17587E-02   -1.5518    
   8  norm          .10000E-03    18.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.068        20.402        .99943E-04   -1.4906    
  11  Prefactor     .10000E-03    4.4894        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2442        1.9460        .13289E-03   -1.5485    
  13  Prefactor     .10000E-03    90.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.345        12.384        .11403E-03   -1.5005    
  15  Prefactor     3.3066        3.9407        .16294E-03   -1.5344    
  16  norm          .10000E-03    1.1678        .81422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7779        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.802        14.628        .73386E-04   -1.4616    
  19  norm          1.1091        .90298        .49712E-04   -1.5497    
  20  Prefactor     46.246        47.881        .58971E-04   -1.4347    
  21  Prefactor     2.3899        21.388        .26554E-03   -1.5399    
  22  norm          .10000E-03    21.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .34403        4.5259        .31437E-03   -1.5591    
  24  norm          10.926        8.4492        .12123E-03   -1.5047    
  25  Prefactor     .10000E-03    11.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .63586        2.2327        .21390E-03   -1.5548    
  28  Normalizat    .49049        .21216        .32268E-03   -1.1286    
  29  Prefactor     1.3738        .21139        .20749E-03   -.81137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56417e-10
Minuit parameter uncertainties:
  1  8.53207e-05
  2  6.80948
  3  4.26529e-06
  4  4.39959
  5  0.383456
  6  4.72919e-06
  7  2.17104
  8  0.000141526
  9  1.61593e-05
  10  20.4104
  11  1.26892e-06
  12  1.94611
  13  0.000173319
  14  12.3864
  15  3.94106
  16  4.13883e-07
  17  2.21648e-06
  18  14.6295
  19  0.902987
  20  47.9209
  21  14.3055
  22  0.000229714
  23  2.49552
  24  8.45008
  25  0.00015622
  26  0.000130251
  27  2.23301
  28  0.212512
  29  0.211519
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.607e+01  2.041e+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:  1.374e+00  2.115e-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:  4.905e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394772/likelihoodResults_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.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) = 5967.22533278
delta logL = 0.0299066389325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.21293077
delta logL = 0.0423086476012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4917       1.0000          .0000       10.000    
     3 'Normalizat'    .48290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3793       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=   5967.213     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.701        24.320        .11238E-03    .30510E-03
   2  Index         2.4923        1.0953        .90823E-02    .94343E-04
   3  Normalizat    .48276        .20249        .32517E-03   -.43329E-03
   4  Prefactor     1.3794        .20846        .20713E-03   -.78475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.701
  Index      = 2.4923
  Normalizat = 0.482762
  Prefactor  = 1.37943
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.213     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.701        21.458        .44953E-05   -1.4995    
   2  Index         2.4923        .96792        .36329E-03   -.52538    
   3  Normalizat    .48276        .20229        .13007E-04   -1.1322    
   4  Prefactor     1.3794        .20818        .41426E-04   -.80975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90208e-10
Minuit parameter uncertainties:
  1  21.4707
  2  0.976181
  3  0.202597
  4  0.208307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394772': 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) = 5967.21293038
delta logL = 0.0423090356044

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.270e+01  2.147e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.492e+00  9.762e-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.379e+00  2.083e-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:  4.828e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.78
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/394772/cmap_HighResolution_601948801_602208001_4FGL_J2235.8-3627_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-09-28 16:43:42.238779', job_id='394772', GAL2='1.38', fit_tolerance='1e-08', EG2='0.48', EG='0.49', time_epoch_completed='1632872622.24', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='4.23e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1399' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 394772: <4FGL_J2235.8-3627_daily_bin1399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1399 338.971 -36.4605 601948801 602208001 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 :                                   778.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

