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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1498
RA = 338.971, Dec = -36.4605
tmin = 627609601, tmax = 627868801
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='394928', job_status='RUN', time_executed='2021-09-28 16:30:45.105517', time_epoch_executed='1632871845.11' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394928/ft1_4FGL_J2235.8-3627_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394928/ft1_4FGL_J2235.8-3627_daily_bin1498.fits outfile=/scratch/kocevski/394928/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1498.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=627609601.0 tmax=627868801.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.05
user 1.86
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/394928/ltcube_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.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/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits
.....................!
real 10.44
user 10.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/394928/ltcube_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.fits outfile=/scratch/kocevski/394928/expmap_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.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/394928/ltcube_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.fits
.....................!
real 155.56
user 150.94
sys 4.36

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/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits scfile=/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits outfile=/scratch/kocevski/394928/cmap_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.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.46
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits scfile=/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits outfile=/scratch/kocevski/394928/cmap_HighResolution_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.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.47
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/394928/ft2_4FGL_J2235.8-3627_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394928/Model_4FGL_J2235.8-3627_daily_bin1498.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/394928/ft1_filtered_4FGL_J2235.8-3627_daily_bin1498.fits.....................!
real 41.22
user 40.12
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .51252E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3110       1.0000         .10000E-03   10000.    
    16 'norm      '    .78928E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.841       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.484       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.3189       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.196       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .50034       1.0000         .10000E-03   10000.    
    27 'norm      '    9.9889       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82600       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1533       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=   6522.358     FROM MIGRAD    STATUS=CONVERGED   1326 CALLS     4319 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4511        .14609E-02** at limit **
   2  Prefactor     .10000E-03    3.6698        .15041E-02** at limit **
   3  norm          .10000E-03    3.6840        .15092E-02** at limit **
   4  norm          .42968E-01    6.8971        .37903E-01    .68241E-03
   5  norm          1.6661        .44041        .25333E-04   -.12009E-02
   6  Prefactor     .10000E-03    11.636        .36285E-03** at limit **
   7  Prefactor     .10000E-03    1.1059        .82718E-03** at limit **
   8  norm          8.8280        12.659        .13492E-03   -.94967E-04
   9  Prefactor     22.523        45.481        .84378E-04   -.16572E-04
  10  Prefactor     4.5150        21.722        .18920E-03   -.82321E-05
  11  Prefactor     .10000E-03    13.343        .18142E-02** at limit **
  12  norm          .10000E-03    1.4063        .18470E-03** at limit **
  13  Prefactor     .10000E-03    42.405        .18142E-02** at limit **
  14  Prefactor     12.152        14.793        .11491E-03   -.15385E-03
  15  Prefactor     1.3109        4.5313        .15537E-02    .26476E-03
  16  norm          .10014E-03    65.794        .25860E-02** at limit **
  17  Prefactor     .10000E-03    6.9974        .18142E-02** at limit **
  18  Prefactor     22.854        15.534        .83812E-04   -.10679E-02
  19  norm          2.6251        1.2013        .42943E-04   -.32240E-02
  20  Prefactor     52.498        49.952        .55362E-04   -.11294E-04
  21  Prefactor     .10000E-03    4.6575        .17005E-02** at limit **
  22  norm          .10000E-03    25.802        .18142E-02** at limit **
  23  norm          .10000E-03    2.0845        .11368E-02** at limit **
  24  norm          7.3197        6.1443        .14826E-03   -.59965E-04
  25  Prefactor     22.185        41.035        .85019E-04    .29151E-04
  26  Prefactor     .43566        33.370        .14501        .11010E-03
  27  norm          9.9878        6.3035        .12678E-03    .17611E-03
  28  Normalizat    .82606        .23321        .27991E-03   -.62796E-03
  29  Prefactor     1.1533        .21722        .23541E-03   -.16218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0429678
  norm       = 1.6661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82803
  Prefactor  = 22.5229
  Prefactor  = 4.515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1516
  Prefactor  = 1.31094
  norm       = 0.000100139
  Prefactor  = 0.0001
  Prefactor  = 22.8542
  norm       = 2.62506
  Prefactor  = 52.4981
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 7.31974
  Prefactor  = 22.1853
  Prefactor  = 0.435661
  norm       = 9.9878
  Normalizat = 0.826059
  Prefactor  = 1.15331
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.358     FROM HESSE     STATUS=OK           545 CALLS     4864 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4516        .29219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6707        .30082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6846        .30185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42968E-01    4.7013        .47538E-01   -1.5667    
   5  norm          1.6661        .43744        .10133E-05   -1.5450    
   6  Prefactor     .10000E-03    11.637        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1059        .16544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.8280        12.659        .53966E-05   -1.5114    
   9  Prefactor     22.523        45.498        .33751E-05   -1.4758    
  10  Prefactor     4.5150        21.711        .75680E-05   -1.5283    
  11  Prefactor     .10000E-03    13.344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4063        .36941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.152        14.789        .45962E-05   -1.5011    
  15  Prefactor     1.3109        4.5275        .62149E-04   -1.5479    
  16  norm          .10014E-03    67.805        .10344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.854        15.514        .16762E-04   -1.4751    
  19  norm          2.6251        1.2013        .17177E-05   -1.5384    
  20  Prefactor     52.498        49.948        .11072E-04   -1.4258    
  21  Prefactor     .10000E-03    4.6577        .34010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    25.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0846        .22736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.3197        6.1441        .59303E-05   -1.5167    
  25  Prefactor     22.185        41.032        .34008E-05   -1.4766    
  26  Prefactor     .43566        32.832        .14697       -1.5576    
  27  norm          9.9878        6.3038        .50714E-05   -1.5076    
  28  Normalizat    .82606        .23325        .55982E-04   -.99109    
  29  Prefactor     1.1533        .21743        .47082E-04   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80416e-09
Minuit parameter uncertainties:
  1  1.74507e-05
  2  1.91106e-05
  3  2.00672e-05
  4  0.897919
  5  0.437436
  6  9.79429e-05
  7  2.12713e-05
  8  12.6628
  9  45.5686
  10  19.813
  11  8.31468e-05
  12  4.27082e-08
  13  0.000109506
  14  14.7937
  15  4.52869
  16  0.00613702
  17  4.4741e-06
  18  15.5171
  19  1.20134
  20  49.9883
  21  6.96034e-06
  22  6.4815e-05
  23  6.55586e-05
  24  6.14465
  25  41.0846
  26  7.56751
  27  6.30418
  28  0.233535
  29  0.217597
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.515e+00  1.981e+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.153e+00  2.176e-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:  8.261e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394928/likelihoodResults_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.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) = 6522.33158283
delta logL = 0.0265155141969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.33126948
delta logL = 0.026828865969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6933       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5931       1.0000          .0000       10.000    
     3 'Normalizat'    .81982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1562       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.

 FCN=   6522.331     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      254 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7054        342.21        .46438E-02    .78683E-04
   2  Index         2.5938        2.6102        .35447        .19989E-04
   3  Normalizat    .81941        .25547E-01    .63521E-01    .25170E-04
   4  Prefactor     1.1564        .25027E-01    .53184E-01    .12737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70542
  Index      = 2.59378
  Normalizat = 0.819415
  Prefactor  = 1.15636
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.331     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7054        17.419        .18575E-03   -1.5274    
   2  Index         2.5938        1.5882        .88777E-02   -.50207    
   3  Normalizat    .81941        .22072        .28098E-03   -.99353    
   4  Prefactor     1.1564        .21419        .23514E-03   -.87685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97046e-12
Minuit parameter uncertainties:
  1  17.4375
  2  1.62524
  3  0.220962
  4  0.21435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394928': 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) = 6522.33126604
delta logL = 0.0268323006585

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.705e+00  1.744e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.594e+00  1.625e+00  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.156e+00  2.144e-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:  8.194e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/394928/cmap_HighResolution_627609601_627868801_4FGL_J2235.8-3627_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-28 16:42:43.336113', job_id='394928', GAL2='1.16', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1632872563.34', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.68e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1498' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 394928: <4FGL_J2235.8-3627_daily_bin1498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1498 338.971 -36.4605 627609601 627868801 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 :                                   712.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

