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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1662
RA = 338.841, Dec = -48.6015
tmin = 670118401, tmax = 670377601
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='124960', job_status='RUN', time_executed='2022-03-31 00:38:36.933647', time_epoch_executed='1648712316.93' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124960/ft1_4FGL_J2235.3-4836_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124960/ft1_4FGL_J2235.3-4836_daily_bin1662.fits outfile=/scratch/kocevski/124960/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1662.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=670118401.0 tmax=670377601.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.84
user 2.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.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/124960/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1662.fits evtable="EVENTS" outfile="/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.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.44
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124960/ltcube_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.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/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits
.....................!
real 10.21
user 9.86
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124960/ltcube_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits outfile=/scratch/kocevski/124960/expmap_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.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/124960/ltcube_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits
.....................!
real 155.85
user 150.54
sys 4.31

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/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits outfile=/scratch/kocevski/124960/cmap_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.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.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits outfile=/scratch/kocevski/124960/cmap_HighResolution_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124960/Model_4FGL_J2235.3-4836_daily_bin1662.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/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits.....................!
real 37.79
user 36.49
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits', '/scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits', expMap='/scratch/kocevski/124960/expmap_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits', expCube='/scratch/kocevski/124960/ltcube_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124960/Model_4FGL_J2235.3-4836_daily_bin1662.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/124960/ft1_filtered_4FGL_J2235.3-4836_daily_bin1662.fits
Spacecraft file(s): /scratch/kocevski/124960/ft2_4FGL_J2235.3-4836_daily_bin1662.fits
Exposure map: /scratch/kocevski/124960/expmap_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits
Exposure cube: /scratch/kocevski/124960/ltcube_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124960/Model_4FGL_J2235.3-4836_daily_bin1662.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) = 6038.63057584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.441       1.0000         .10000E-03   10000.    
     4 'norm      '    9.8793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8748       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12332E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .69562       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    79.057       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13567E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25432E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21674E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.906       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18103E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    38.047       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4294       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66383       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=   6038.608     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4003 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.614        14.253       -.10408E-06    .21167E-04
   2  Prefactor     .10000E-03    8.0748       -.21797E-07** at limit **
   3  Prefactor     11.440        5.6186       -.61028E-07    .89938E-04
   4  norm          9.8792        5.8865       -.63130E-07   -.63169E-04
   5  Prefactor     .10000E-03    50.440       -.14208E-05** at limit **
   6  Prefactor     .10000E-03    6.4445       -.97801E-06** at limit **
   7  Prefactor     2.8780        4.9087       -.15275E-06    .66756E-04
   8  Prefactor     .10000E-03    208.14       -.12754E-05** at limit **
   9  norm          .69865        1.1698        .32192E-06   -.15437E-02
  10  Prefactor     .10000E-03    1.1261        .12209E-06** at limit **
  11  Prefactor     79.097        52.098        .51504E-06    .24391E-03
  12  Prefactor     1.6185        4.4862       -.45771E-07   -.46419E-04
  13  Prefactor     .10000E-03    19.551        .45971E-06** at limit **
  14  Prefactor     .10000E-03    145.62        .81181E-06** at limit **
  15  Prefactor     13.541        12.527        .20928E-06    .23266E-04
  16  Prefactor     .10000E-03    38.882        .42868E-06** at limit **
  17  Prefactor     .10000E-03    1.9745        .74601E-07** at limit **
  18  Prefactor     16.579        24.645        .82808E-07   -.19605E-04
  19  Prefactor     .10059E-03    16.050        .30708E-05** at limit **
  20  norm          .10000E-03    2.7613       -.30166E-08** at limit **
  21  norm          .10000E-03    1.6522       -.82106E-09** at limit **
  22  norm          .10000E-03    1.8605       -.19776E-08** at limit **
  23  Prefactor     .10000E-03    1.3302       -.29034E-07** at limit **
  24  Prefactor     16.907        23.123       -.82010E-07    .57340E-05
  25  Prefactor     .10000E-03    3.8610       -.77690E-07** at limit **
  26  norm          .10000E-03    .36842       -.71669E-07** at limit **
  27  Prefactor     .10000E-03    6.1491       -.31937E-05** at limit **
  28  Prefactor     38.003        30.808        .40952E-05    .52369E-03
  29  Normalizat    1.4294        .18430        .91637E-06    .30987E-03
  30  Prefactor     .66387        .16314       -.15332E-06    .20180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6137
  Prefactor  = 0.0001
  Prefactor  = 11.4402
  norm       = 9.87924
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 2.87802
  Prefactor  = 0.000100002
  norm       = 0.698651
  Prefactor  = 0.0001
  Prefactor  = 79.0972
  Prefactor  = 1.61852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5792
  Prefactor  = 0.000100593
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.0032
  Normalizat = 1.4294
  Prefactor  = 0.663866
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.608     FROM HESSE     STATUS=OK           584 CALLS     4587 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.614        14.246        .84230E-04   -1.4757    
   2  Prefactor     .10000E-03    8.0783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.440        5.6069        .11844E-03   -1.5031    
   4  norm          9.8792        5.8910        .12749E-03   -1.5079    
   5  Prefactor     .10000E-03    50.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.802        .36949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8780        4.8630        .20801E-03   -1.5369    
   8  Prefactor     .10000E-03    208.82        .20618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .69865        10.459        .23999E-02   -1.5541    
  10  Prefactor     .10000E-03    1.1311        .80443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     79.097        51.862        .22584E-03   -1.3927    
  12  Prefactor     1.6185        4.4586        .26145E-03   -1.5454    
  13  Prefactor     .10000E-03    19.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    149.26        .40001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.541        12.490        .10880E-03   -1.4972    
  16  Prefactor     .10000E-03    38.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.9795        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.579        24.623        .98359E-04   -1.4893    
  19  Prefactor     .10059E-03    73.299        .53988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7616        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6525        .97548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8607        .10350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3322        .87526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.907        23.129        .97410E-04   -1.4885    
  25  Prefactor     .10000E-03    3.8725        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .37859        .91909E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.920        .32584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     38.003        32.907        .64978E-04   -1.4474    
  29  Normalizat    1.4294        .21480        .22140E-03   -.79782    
  30  Prefactor     .66387        .19115        .28142E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84991e-08
Minuit parameter uncertainties:
  1  14.2477
  2  1.5485e-06
  3  5.60713
  4  5.89139
  5  0.000712264
  6  0.000429842
  7  4.86371
  8  0.00135507
  9  5.40699
  10  9.22791e-07
  11  51.8918
  12  4.45956
  13  3.28151e-05
  14  0.000202817
  15  12.4925
  16  0.000261707
  17  7.11e-07
  18  24.6383
  19  0.0132072
  20  8.80084e-08
  21  1.03333e-06
  22  9.42828e-08
  23  2.10852e-06
  24  23.1409
  25  6.17887e-06
  26  2.51018e-06
  27  0.00028785
  28  32.9226
  29  0.214933
  30  0.191334
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.619e+00  4.460e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  6.639e-01  1.913e-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:  1.429e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124960/likelihoodResults_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.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) = 6038.27271908
delta logL = 0.335181014422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.23386589
delta logL = 0.374034203303

Fit tolerance = 1e-08

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

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

 FCN=   6038.234     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6813        3.8200        .62171E-02    .28676E-03
   2  Index         1.6376        .51155        .28403       -.63502E-04
   3  Normalizat    1.4406        .17638        .49905E-01    .20276E-04
   4  Prefactor     .65272        .15997        .64050E-01    .20916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68134
  Index      = 1.6376
  Normalizat = 1.44057
  Prefactor  = 0.652718
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.234     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6813        4.1800        .17148E-03   -1.5380    
   2  Index         1.6376        .74622        .10212E-01   -.73756    
   3  Normalizat    1.4406        .20584        .22062E-03   -.79462    
   4  Prefactor     .65272        .18634        .28337E-03   -1.0541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76101e-10
Minuit parameter uncertainties:
  1  4.18048
  2  0.75137
  3  0.205955
  4  0.186516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124960': 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) = 6038.23386512
delta logL = 0.374034970637

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.681e+00  4.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.638e+00  7.514e-01  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:  6.527e-01  1.865e-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:  1.441e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/124960/cmap_HighResolution_670118401_670377601_4FGL_J2235.3-4836_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2022-03-31 00:50:22.635790', job_id='124960', GAL2='0.65', fit_tolerance='1e-08', EG2='1.44', EG='1.43', time_epoch_completed='1648713022.64', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.74e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1662' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:50:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 124960: <4FGL_J2235.3-4836_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:28 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:30 2022
Terminated at Thu Mar 31 00:50:23 2022
Results reported at Thu Mar 31 00:50:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1662 338.841 -48.6015 670118401 670377601 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 :                                   702.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

