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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1467
RA = 338.971, Dec = -36.4605
tmin = 619574401, tmax = 619833601
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='394879', job_status='RUN', time_executed='2021-09-28 16:33:53.659803', time_epoch_executed='1632872033.66' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394879/ft1_4FGL_J2235.8-3627_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394879/ft1_4FGL_J2235.8-3627_daily_bin1467.fits outfile=/scratch/kocevski/394879/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1467.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=619574401.0 tmax=619833601.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.48
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits" evtable="EVENTS" scfile=/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits sctable="SC_DATA" outfile=/scratch/kocevski/394879/ltcube_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.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/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits
.....................!
real 11.77
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/394879/ltcube_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.fits outfile=/scratch/kocevski/394879/expmap_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.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/394879/ltcube_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.fits
.....................!
real 193.03
user 187.84
sys 4.81

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/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits scfile=/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits outfile=/scratch/kocevski/394879/cmap_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits scfile=/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits outfile=/scratch/kocevski/394879/cmap_HighResolution_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/394879/ft2_4FGL_J2235.8-3627_daily_bin1467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394879/Model_4FGL_J2235.8-3627_daily_bin1467.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/394879/ft1_filtered_4FGL_J2235.8-3627_daily_bin1467.fits.....................!
real 38.59
user 37.23
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.009       1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6125       1.0000         .10000E-03   10000.    
     5 'norm      '    .80869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30419       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4441       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    89.688       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.742       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42431E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0856       1.0000         .10000E-03   10000.    
    19 'norm      '    .59682       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    22 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1454       1.0000         .10000E-03   10000.    
    24 'norm      '    5.5902       1.0000         .10000E-03   10000.    
    25 'Prefactor '    89.305       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61095       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1551       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=   4424.505     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     4232 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1854       -.57297E-07** at limit **
   2  Prefactor     13.009        10.501       -.25944E-07   -.12263E-05
   3  norm          .10000E-03    7.7506       -.17707E-07** at limit **
   4  norm          8.6124        8.4533        .12182E-06   -.12717E-04
   5  norm          .80870        .43655       -.58832E-08   -.44629E-04
   6  Prefactor     8.0128        10.885        .11871E-05    .10863E-03
   7  Prefactor     .31114        2.8051        .47176E-06   -.21296E-03
   8  norm          6.4324        23.421        .61199E-06   -.72789E-06
   9  Prefactor     .10000E-03    30.213       -.13891E-06** at limit **
  10  Prefactor     89.720        43.094       -.56795E-06   -.15703E-03
  11  Prefactor     35.749        29.946        .15457E-06   -.45035E-04
  12  norm          5.4796        5.4056        .13834E-06   -.38717E-03
  13  Prefactor     32.879        114.77       -.55232E-05   -.77207E-04
  14  Prefactor     .10017E-03    14.366        .24752E-05** at limit **
  15  Prefactor     .10000E-03    2.3735       -.33759E-07** at limit **
  16  norm          .10000E-03    6.4262        .63051E-06** at limit **
  17  Prefactor     .10000E-03    14.497        .40227E-06** at limit **
  18  Prefactor     2.0443        28.332        .58847E-06   -.65073E-04
  19  norm          .59796        .83741        .25250E-06    .32975E-03
  20  Prefactor     .10000E-03    56.756        .21157E-06** at limit **
  21  Prefactor     10.064        9.9811       -.30488E-06   -.15062E-03
  22  norm          .10000E-03    14.746        .20779E-06** at limit **
  23  norm          6.1441        5.7639       -.28272E-07   -.54460E-05
  24  norm          5.5907        7.1296        .13262E-06    .67161E-06
  25  Prefactor     89.301        51.009        .42342E-06    .25700E-05
  26  Prefactor     .10000E-03    13.337       -.42706E-06** at limit **
  27  norm          .10000E-03    5.6797       -.25674E-06** at limit **
  28  Normalizat    .61053        .25588       -.39484E-05   -.24506E-03
  29  Prefactor     1.1554        .22876        .24270E-05   -.27587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.0092
  norm       = 0.0001
  norm       = 8.61241
  norm       = 0.808704
  Prefactor  = 8.01285
  Prefactor  = 0.311145
  norm       = 6.43244
  Prefactor  = 0.0001
  Prefactor  = 89.7203
  Prefactor  = 35.749
  norm       = 5.47962
  Prefactor  = 32.8789
  Prefactor  = 0.000100173
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04434
  norm       = 0.597963
  Prefactor  = 0.0001
  Prefactor  = 10.0641
  norm       = 0.0001
  norm       = 6.14414
  norm       = 5.59069
  Prefactor  = 89.3014
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.610528
  Prefactor  = 1.15539
 **********
 **   18 **HESSE 
 **********

 FCN=   4424.505     FROM HESSE     STATUS=OK           559 CALLS     4791 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1933        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.009        10.502        .11106E-03   -1.4986    
   3  norm          .10000E-03    7.8126        .18079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6124        8.4505        .13659E-03   -1.5121    
   5  norm          .80870        .43867        .29731E-04   -1.5528    
   6  Prefactor     8.0128        10.939        .70811E-03   -1.5142    
   7  Prefactor     .31114        13.554        .20053E-02   -1.5596    
   8  norm          6.4324        23.442        .15810E-03   -1.5201    
   9  Prefactor     .10000E-03    30.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     89.720        43.175        .21214E-03   -1.3811    
  11  Prefactor     35.749        29.924        .67033E-04   -1.4511    
  12  norm          5.4796        5.4015        .10657E-03   -1.5240    
  13  Prefactor     32.879        115.05        .70138E-04   -1.4561    
  14  Prefactor     .10017E-03    57.857        .39469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3777        .10007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.6652        .32764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0443        29.002        .28591E-03   -1.5422    
  19  norm          .59796        .82644        .56048E-03   -1.5553    
  20  Prefactor     .10000E-03    57.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.064        10.008        .63176E-03   -1.5073    
  22  norm          .10000E-03    14.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.1441        5.7611        .14808E-03   -1.5212    
  24  norm          5.5907        7.1256        .16991E-03   -1.5235    
  25  Prefactor     89.301        50.776        .42518E-04   -1.3815    
  26  Prefactor     .10000E-03    13.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.7264        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61053        .27494        .30583E-03   -1.0754    
  29  Prefactor     1.1554        .24900        .22317E-03   -.87715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3137e-09
Minuit parameter uncertainties:
  1  2.07423e-06
  2  10.5037
  3  6.19961e-06
  4  8.45166
  5  0.438668
  6  10.9417
  7  4.10747
  8  23.4755
  9  1.75546e-05
  10  43.1898
  11  29.9364
  12  5.402
  13  115.837
  14  0.00633738
  15  6.7731e-07
  16  5.95547e-06
  17  2.10607e-05
  18  15.4085
  19  0.826453
  20  1.25327e-05
  21  10.01
  22  1.04497e-05
  23  5.76165
  24  7.12668
  25  50.8006
  26  2.51075e-05
  27  1.69967e-05
  28  0.275559
  29  0.249256
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.972e+01  4.319e+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.155e+00  2.493e-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:  6.105e-01  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 5.35e-05 +/- 2.57e-05

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) = 4423.381771
delta logL = 1.12342536485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4423.3796778
delta logL = 1.12551856975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.844       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9887       1.0000          .0000       10.000    
     3 'Normalizat'    .51872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2257       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=   4423.380     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      304 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.824        47.940        .66026E-04   -.13654E-03
   2  Index         2.9892        .75266        .30238E-02    .42187E-03
   3  Normalizat    .51810        .25966        .33001E-03    .28727E-03
   4  Prefactor     1.2262        .25138        .21753E-03    .76648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8244
  Index      = 2.98915
  Normalizat = 0.518099
  Prefactor  = 1.22623
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.380     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.824        40.193        .26411E-05   -1.4494    
   2  Index         2.9892        .63127        .60477E-03   -.41388    
   3  Normalizat    .51810        .25822        .13200E-04   -1.1158    
   4  Prefactor     1.2262        .24968        .43506E-04   -.85528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58169e-10
Minuit parameter uncertainties:
  1  40.2227
  2  0.633291
  3  0.258822
  4  0.249917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394879': 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) = 4423.37967474
delta logL = 1.12552162797

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.682e+01  4.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.989e+00  6.333e-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.226e+00  2.499e-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:  5.181e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.14
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.99 +/- 0.63
Photon Flux (Free Index): 1.84e-07 +/- 7.94e-08
Energy Flux (Free Index): 3.70e-05 +/- 1.67e-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/394879/cmap_HighResolution_619574401_619833601_4FGL_J2235.8-3627_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.70e-05', photon_flux_error='6.04e-08', dlogl='1.13e+00', energy_flux='5.35e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-28 16:44:11.701458', photon_index_error2='0.63', photon_index2='2.99', ts='7.56', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.61', time_epoch_completed='1632872651.7', return_code='0', job_id='394879', GAL2='1.23', EG2='0.52', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='7.94e-08', ts2='10.14', photon_index='2.23' WHERE bin_id='1467' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 394879: <4FGL_J2235.8-3627_daily_bin1467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1467 338.971 -36.4605 619574401 619833601 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 :                                   611.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

