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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1528
RA = 338.841, Dec = -48.6015
tmin = 635385601, tmax = 635644801
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='386532', job_status='RUN', time_executed='2021-09-28 16:07:03.418196', time_epoch_executed='1632870423.42' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386532/ft1_4FGL_J2235.3-4836_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386532/ft1_4FGL_J2235.3-4836_daily_bin1528.fits outfile=/scratch/kocevski/386532/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1528.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=635385601.0 tmax=635644801.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.78
user 2.59
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.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/386532/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1528.fits evtable="EVENTS" outfile="/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/386532/ltcube_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.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/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits
.....................!
real 12.17
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/386532/ltcube_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits outfile=/scratch/kocevski/386532/expmap_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.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/386532/ltcube_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits
.....................!
real 190.61
user 185.51
sys 4.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits outfile=/scratch/kocevski/386532/cmap_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.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.841 yref=-48.6015 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/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits outfile=/scratch/kocevski/386532/cmap_HighResolution_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.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.841 yref=-48.6015 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386532/Model_4FGL_J2235.3-4836_daily_bin1528.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/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits.......................!
real 22.56
user 21.29
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits', '/scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits', expMap='/scratch/kocevski/386532/expmap_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits', expCube='/scratch/kocevski/386532/ltcube_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386532/Model_4FGL_J2235.3-4836_daily_bin1528.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386532/ft1_filtered_4FGL_J2235.3-4836_daily_bin1528.fits
Spacecraft file(s): /scratch/kocevski/386532/ft2_4FGL_J2235.3-4836_daily_bin1528.fits
Exposure map: /scratch/kocevski/386532/expmap_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits
Exposure cube: /scratch/kocevski/386532/ltcube_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386532/Model_4FGL_J2235.3-4836_daily_bin1528.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) = 1722.38045678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3078.1       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    396.82       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    32.902       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3367       1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.881       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.190       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9514       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    45.178       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .26048       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1722.288     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     4660 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        347.42        .15334E-05** at limit **
   2  Prefactor     .10000E-03    65.915       -.73116E-06** at limit **
   3  Prefactor     .10000E-03    18.707        .12297E-06** at limit **
   4  norm          3074.7        3062.6       -.18503E-04   -.62480E-05
   5  Prefactor     39.418        89.501       -.34262E-06   -.14081E-04
   6  Prefactor     .10000E-03    9.2385       -.97708E-07** at limit **
   7  Prefactor     .10000E-03    3.2742       -.67627E-07** at limit **
   8  Prefactor     .10000E-03    89.035        .84995E-06** at limit **
   9  norm          .10000E-03    5.5491       -.69941E-08** at limit **
  10  Prefactor     .10000E-03    4.7737       -.20130E-06** at limit **
  11  Prefactor     45.253        158.11       -.15445E-05   -.95736E-05
  12  Prefactor     3.8650        11.903        .33084E-05   -.21586E-04
  13  Prefactor     12.580        242.58        .56830E-06   -.64323E-06
  14  Prefactor     .10000E-03    21.499       -.81462E-07** at limit **
  15  Prefactor     12.831        31.460       -.12481E-05   -.49153E-05
  16  Prefactor     396.98        296.25        .31175E-06    .12060E-04
  17  Prefactor     22.979        32.918       -.31300E-06   -.26929E-05
  18  Prefactor     .10000E-03    29.480        .19544E-06** at limit **
  19  Prefactor     .10000E-03    23.594       -.32157E-06** at limit **
  20  norm          32.903        34.522       -.28847E-06   -.87755E-06
  21  norm          .10000E-03    6.5023        .13641E-07** at limit **
  22  norm          .10000E-03    7.6377        .61601E-07** at limit **
  23  Prefactor     9.3277        30.040        .70314E-07    .18033E-04
  24  Prefactor     85.886        98.306       -.98805E-06    .14911E-05
  25  Prefactor     12.202        52.096       -.67805E-06    .16193E-04
  26  norm          1.9518        2.7416       -.21005E-06    .14893E-03
  27  Prefactor     .10000E-03    10.285       -.11253E-05** at limit **
  28  Prefactor     45.193        51.805       -.40007E-06    .55983E-04
  29  Normalizat    .26014        .49327        .97545E-05    .25614E-04
  30  Prefactor     1.6113        .47778       -.36466E-05    .29337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3074.67
  Prefactor  = 39.4177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2533
  Prefactor  = 3.86502
  Prefactor  = 12.5803
  Prefactor  = 0.0001
  Prefactor  = 12.8309
  Prefactor  = 396.977
  Prefactor  = 22.9785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9031
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.3277
  Prefactor  = 85.8855
  Prefactor  = 12.2017
  norm       = 1.9518
  Prefactor  = 0.000100003
  Prefactor  = 45.193
  Normalizat = 0.260139
  Prefactor  = 1.6113
 **********
 **   18 **HESSE 
 **********

 FCN=   1722.288     FROM HESSE     STATUS=OK           578 CALLS     5238 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        348.48        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.735        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3074.7        3099.8        .43329E-04   -.39528    
   5  Prefactor     39.418        89.718        .63799E-04   -1.4451    
   6  Prefactor     .10000E-03    9.2409        .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2782        .73341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    89.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5491        .95492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7762        .88563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.253        158.64        .29771E-03   -1.4362    
  12  Prefactor     3.8650        12.055        .10262E-02   -1.5315    
  13  Prefactor     12.580        243.72        .56513E-03   -1.4998    
  14  Prefactor     .10000E-03    21.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.831        31.626        .11179E-03   -1.4991    
  16  Prefactor     396.98        296.71        .10245E-03   -1.1696    
  17  Prefactor     22.979        32.998        .83570E-04   -1.4749    
  18  Prefactor     .10000E-03    29.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          32.903        34.546        .69858E-04   -1.4560    
  21  norm          .10000E-03    6.5052        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.6402        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3277        29.273        .13116E-03   -1.5097    
  24  Prefactor     85.886        98.602        .43350E-04   -1.3852    
  25  Prefactor     12.202        49.408        .11474E-03   -1.5009    
  26  norm          1.9518        2.6822        .65237E-04   -1.5429    
  27  Prefactor     .10000E-03    17.522        .24191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     45.193        50.249        .59650E-04   -1.4362    
  29  Normalizat    .26014        .50202        .54184E-03   -1.2530    
  30  Prefactor     1.6113        .48562        .23406E-03   -.74469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64886e-10
Minuit parameter uncertainties:
  1  0.000990146
  2  0.000218163
  3  3.68481e-05
  4  3398.96
  5  90.0278
  6  1.97943e-06
  7  1.01623e-06
  8  0.000370587
  9  1.40188e-07
  10  1.17037e-07
  11  160.155
  12  12.0624
  13  111.27
  14  1.17216e-05
  15  31.6671
  16  297.868
  17  33.0242
  18  3.98909e-05
  19  1.43604e-05
  20  34.5674
  21  2.7089e-06
  22  5.81458e-07
  23  29.3176
  24  98.7906
  25  49.1772
  26  2.68241
  27  0.000474422
  28  50.2959
  29  0.511109
  30  0.487045
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.865e+00  1.206e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.611e+00  4.870e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  2.601e-01  5.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 2.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386532/likelihoodResults_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.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) = 1722.28764405
delta logL = 0.0001922497338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1722.28762625
delta logL = 0.000210040313277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7986       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5478       1.0000          .0000       10.000    
     3 'Normalizat'    .25960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   1722.288     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      273 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7833        12.968        .10355E-02   -.42860E-04
   2  Index         2.5442        1.6413        .11572E-01   -.74224E-05
   3  Normalizat    .25988        .46152        .54203E-03    .12312E-04
   4  Prefactor     1.6115        .47391        .23406E-03    .21955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.78327
  Index      = 2.54423
  Normalizat = 0.25988
  Prefactor  = 1.61146
 **********
 **   18 **HESSE 
 **********

 FCN=   1722.288     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7833        12.471        .41422E-04   -1.5319    
   2  Index         2.5442        1.5820        .46289E-03   -.51341    
   3  Normalizat    .25988        .46115        .21681E-04   -1.2532    
   4  Prefactor     1.6115        .47349        .93622E-05   -.74464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91968e-11
Minuit parameter uncertainties:
  1  12.4797
  2  1.61908
  3  0.468143
  4  0.474809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386532': 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) = 1722.28762144
delta logL = 0.000214858205254

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.783e+00  1.248e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.544e+00  1.619e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.611e+00  4.748e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  2.599e-01  4.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 338.841 -48.602

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/386532/cmap_HighResolution_635385601_635644801_4FGL_J2235.3-4836_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', job_status='DONE', photon_flux_upper_limit='2.42e-07', time_completed='2021-09-28 16:15:11.138889', job_id='386532', GAL2='1.61', fit_tolerance='1e-08', EG2='0.26', EG='0.26', time_epoch_completed='1632870911.14', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='2.15e-04', ts2='0.13', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1528' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:15:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 386532: <4FGL_J2235.3-4836_daily_bin1528> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1528> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:42 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:45 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:05:45 2021
Terminated at Tue Sep 28 16:15:11 2021
Results reported at Tue Sep 28 16:15:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1528 338.841 -48.6015 635385601 635644801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   482.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            569 sec.

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

