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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1481
RA = 338.971, Dec = -36.4605
tmin = 623203201, tmax = 623462401
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='394901', job_status='RUN', time_executed='2021-09-28 16:32:15.921469', time_epoch_executed='1632871935.92' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394901/ft1_4FGL_J2235.8-3627_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394901/ft2_4FGL_J2235.8-3627_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394901/ft1_4FGL_J2235.8-3627_daily_bin1481.fits outfile=/scratch/kocevski/394901/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1481.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.92
user 2.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394901/ft1_filtered_4FGL_J2235.8-3627_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/394901/ft2_4FGL_J2235.8-3627_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/394901/ltcube_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.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/394901/ft2_4FGL_J2235.8-3627_daily_bin1481.fits
.....................!
real 13.78
user 13.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394901/ft1_filtered_4FGL_J2235.8-3627_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/394901/ft2_4FGL_J2235.8-3627_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/394901/ltcube_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.fits outfile=/scratch/kocevski/394901/expmap_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.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/394901/ltcube_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.fits
.....................!
real 191.24
user 185.50
sys 5.18

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/394901/ft1_filtered_4FGL_J2235.8-3627_daily_bin1481.fits scfile=/scratch/kocevski/394901/ft2_4FGL_J2235.8-3627_daily_bin1481.fits outfile=/scratch/kocevski/394901/cmap_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.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.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80576       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6714       1.0000         .10000E-03   10000.    
     4 'norm      '    .27887       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46263E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.998       1.0000         .10000E-03   10000.    
    19 'norm      '    9.6331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38984E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9530       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
    27 'norm      '    .12110E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91540       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0435       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=   6963.664     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3812 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.096        10.957        .15834E-06    .37312E-04
   2  Prefactor     .80071        8.1313        .43542E-06   -.86399E-04
   3  norm          4.6655        4.7165        .34843E-08    .49572E-04
   4  norm          .28939        2.6440       -.12099E-05    .57600E-03
   5  norm          1.1384        .39480        .22352E-07    .10629E-02
   6  Prefactor     3.1850        6.9025        .38470E-06   -.75834E-06
   7  Prefactor     .62434E-02    1.8197        .74198E-06   -.18813E-04
   8  norm          .10000E-03    14.343       -.17626E-06** at limit **
   9  Prefactor     21.705        42.570       -.75925E-05   -.78324E-04
  10  Prefactor     38.922        23.073       -.20720E-06    .11497E-04
  11  Prefactor     .10000E-03    15.893        .58097E-06** at limit **
  12  norm          2.3508        2.4109        .19350E-08   -.23303E-04
  13  Prefactor     .10000E-03    87.858        .11411E-05** at limit **
  14  Prefactor     .10000E-03    6.8048       -.45220E-07** at limit **
  15  Prefactor     .10000E-03    1.7299        .83569E-07** at limit **
  16  norm          .10000E-03    3.8873        .15911E-07** at limit **
  17  Prefactor     .10000E-03    21.122        .18232E-06** at limit **
  18  Prefactor     41.001        24.048        .16733E-07    .19634E-04
  19  norm          9.6322        1.9742        .41019E-08   -.75954E-04
  20  Prefactor     .10000E-03    113.68        .60177E-06** at limit **
  21  Prefactor     .10000E-03    27.389       -.33132E-07** at limit **
  22  norm          1.9521        17.657        .82926E-05   -.91053E-05
  23  norm          .10000E-03    1.4086       -.12309E-07** at limit **
  24  norm          3.9987        5.4472       -.64958E-07    .20520E-04
  25  Prefactor     .10000E-03    10.998        .37457E-07** at limit **
  26  Prefactor     11.399        43.842        .20636E-05   -.14565E-04
  27  norm          .10000E-03    2.3242       -.15284E-06** at limit **
  28  Normalizat    .91534        .19432       -.11182E-05   -.32276E-03
  29  Prefactor     1.0436        .17932        .43248E-06   -.30492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0965
  Prefactor  = 0.800713
  norm       = 4.66552
  norm       = 0.289386
  norm       = 1.13835
  Prefactor  = 3.18499
  Prefactor  = 0.0062434
  norm       = 0.0001
  Prefactor  = 21.7054
  Prefactor  = 38.9225
  Prefactor  = 0.0001
  norm       = 2.35078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0012
  norm       = 9.63219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95214
  norm       = 0.0001
  norm       = 3.99867
  Prefactor  = 0.0001
  Prefactor  = 11.3989
  norm       = 0.0001
  Normalizat = 0.915337
  Prefactor  = 1.04364
 **********
 **   18 **HESSE 
 **********

 FCN=   6963.664     FROM HESSE     STATUS=OK           567 CALLS     4379 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.096        10.692        .94179E-04   -1.4857    
   2  Prefactor     .80071        20.976        .40969E-02   -1.5529    
   3  norm          4.6655        4.7168        .17675E-03   -1.5276    
   4  norm          .28939        12.743        .23716E-02   -1.5600    
   5  norm          1.1384        .39958        .29050E-04   -1.5495    
   6  Prefactor     3.1850        6.8899        .22707E-03   -1.5351    
   7  Prefactor     .62434E-02    7.4871        .32532E-01   -1.5692    
   8  norm          .10000E-03    14.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.705        44.473        .86039E-04   -1.4776    
  10  Prefactor     38.922        23.054        .64240E-04   -1.4459    
  11  Prefactor     .10000E-03    16.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3508        2.4049        .12737E-03   -1.5401    
  13  Prefactor     .10000E-03    87.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7341        .10719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9149        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.001        24.570        .62604E-04   -1.4426    
  19  norm          9.6322        2.0118        .40152E-04   -1.5087    
  20  Prefactor     .10000E-03    114.85        .21275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9521        17.931        .14846E-02   -1.5429    
  23  norm          .10000E-03    1.4115        .96712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9987        5.4378        .20167E-03   -1.5308    
  25  Prefactor     .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.399        43.902        .11856E-03   -1.5033    
  27  norm          .10000E-03    8.6389        .24619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91534        .22939        .28004E-03   -.95923    
  29  Prefactor     1.0436        .21076        .25267E-03   -.91289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19755e-08
Minuit parameter uncertainties:
  1  10.6935
  2  8.19917
  3  4.71716
  4  3.84088
  5  0.399577
  6  6.89165
  7  0.428989
  8  3.22424e-06
  9  44.5411
  10  23.0598
  11  9.08274e-05
  12  2.405
  13  0.000167993
  14  5.57733e-07
  15  5.14177e-06
  16  2.20048e-06
  17  1.35153e-05
  18  24.5765
  19  2.01181
  20  0.000333043
  21  1.96546e-05
  22  11.8371
  23  2.49057e-07
  24  5.43845
  25  6.06473e-06
  26  44.0269
  27  9.89669e-05
  28  0.229635
  29  0.210927
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.892e+01  2.306e+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.044e+00  2.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  9.153e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.07
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.37e-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) = 6963.53487489
delta logL = 0.129233202306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6963.52793366
delta logL = 0.136174437913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.570       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9882       1.0000          .0000       10.000    
     3 'Normalizat'    .92971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0369       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=   6963.528     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      258 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.576        26.595        .62174E-04    .40228E-05
   2  Index         1.9884        .46717        .79940E-02    .74336E-05
   3  Normalizat    .92984        .21487        .27816E-03    .24522E-04
   4  Prefactor     1.0368        .20472        .25348E-03   -.15294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.5765
  Index      = 1.98844
  Normalizat = 0.92984
  Prefactor  = 1.03682
 **********
 **   18 **HESSE 
 **********

 FCN=   6963.528     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.576        26.626        .24870E-05   -1.4417    
   2  Index         1.9884        .46757        .31976E-03   -.64639    
   3  Normalizat    .92984        .21509        .11127E-04   -.95419    
   4  Prefactor     1.0368        .20493        .10139E-04   -.91512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68381e-12
Minuit parameter uncertainties:
  1  26.6338
  2  0.468644
  3  0.215291
  4  0.205088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394901': 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) = 6963.52793317
delta logL = 0.136174929938

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.158e+01  2.663e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.988e+00  4.686e-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.037e+00  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  9.298e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.29
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.99 +/- 0.47
Photon Flux (Free Index): 4.14e-08 +/- 3.76e-08
Energy Flux (Free Index): 2.95e-05 +/- 2.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/394901/cmap_HighResolution_623203201_623462401_4FGL_J2235.8-3627_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='2.95e-05', photon_flux_error='3.22e-08', dlogl='1.36e-01', energy_flux='2.32e-05', photon_flux2='4.14e-08', job_status='DONE', time_completed='2021-09-28 16:45:01.471248', photon_index_error2='0.47', photon_index2='1.99', ts='8.07', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.92', time_epoch_completed='1632872701.47', return_code='0', job_id='394901', GAL2='1.04', EG2='0.93', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.76e-08', ts2='8.29', photon_index='2.23' WHERE bin_id='1481' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 394901: <4FGL_J2235.8-3627_daily_bin1481> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1481 338.971 -36.4605 623203201 623462401 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 :                                   754.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

