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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1458
RA = 338.841, Dec = -48.6015
tmin = 617241601, tmax = 617500801
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='386424', job_status='RUN', time_executed='2021-09-28 16:07:10.612931', time_epoch_executed='1632870430.61' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386424/ft1_4FGL_J2235.3-4836_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386424/ft1_4FGL_J2235.3-4836_daily_bin1458.fits outfile=/scratch/kocevski/386424/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1458.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=617241601.0 tmax=617500801.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.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.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/386424/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/386424/ft1_filtered_4FGL_J2235.3-4836_daily_bin1458.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.94
user 0.33
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386424/ft1_filtered_4FGL_J2235.3-4836_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/386424/ltcube_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.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/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits
.....................!
real 12.58
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386424/ft1_filtered_4FGL_J2235.3-4836_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/386424/ltcube_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.fits outfile=/scratch/kocevski/386424/expmap_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.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/386424/ltcube_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.fits
.....................!
real 191.11
user 185.78
sys 5.02

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/386424/ft1_filtered_4FGL_J2235.3-4836_daily_bin1458.fits scfile=/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits outfile=/scratch/kocevski/386424/cmap_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386424/ft1_filtered_4FGL_J2235.3-4836_daily_bin1458.fits scfile=/scratch/kocevski/386424/ft2_4FGL_J2235.3-4836_daily_bin1458.fits outfile=/scratch/kocevski/386424/cmap_HighResolution_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    264.97       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11955E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.198       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.0164       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1720       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98197       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=   2466.676     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     5249 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.564       -.67532E-07** at limit **
   2  Prefactor     .10000E-03    30.046        .12564E-06** at limit **
   3  Prefactor     .10000E-03    9.4808        .55363E-08** at limit **
   4  norm          .10000E-03    10.511        .22061E-08** at limit **
   5  Prefactor     264.97        147.54        .13845E-06    .20627E-04
   6  Prefactor     4.0791        42.222       -.57985E-06    .66975E-05
   7  Prefactor     .61486        8.6676       -.10728E-05    .10951E-03
   8  Prefactor     .10000E-03    165.18        .84945E-06** at limit **
   9  norm          .10000E-03    5.2564       -.48322E-08** at limit **
  10  Prefactor     .10000E-03    4.7402        .90525E-07** at limit **
  11  Prefactor     37.431        104.49       -.24479E-04   -.14022E-06
  12  Prefactor     .10000E-03    12.211       -.17242E-07** at limit **
  13  Prefactor     20.409        46.966        .61004E-05    .17443E-05
  14  Prefactor     .10000E-03    57.526       -.83811E-05** at limit **
  15  Prefactor     41.403        24.624        .76347E-06    .99419E-04
  16  Prefactor     .10000E-03    59.321        .92013E-05** at limit **
  17  Prefactor     .10000E-03    8.4432        .52635E-07** at limit **
  18  Prefactor     .10000E-03    629.28       -.25361E-05** at limit **
  19  Prefactor     .10000E-03    80.934       -.14845E-05** at limit **
  20  norm          .10000E-03    7.6736       -.31621E-08** at limit **
  21  norm          .10000E-03    2.7184       -.57898E-08** at limit **
  22  norm          .10000E-03    3.1814       -.64457E-08** at limit **
  23  Prefactor     .10000E-03    2.7498       -.49675E-08** at limit **
  24  Prefactor     .10000E-03    19.731        .58975E-08** at limit **
  25  Prefactor     13.196        14.684       -.88423E-06    .37697E-05
  26  norm          .10000E-03    .71611       -.35155E-07** at limit **
  27  Prefactor     .10000E-03    5.2181       -.23677E-06** at limit **
  28  Prefactor     9.0045        44.137        .55294E-05    .91544E-06
  29  Normalizat    1.1720        .30891       -.42413E-06    .12372E-03
  30  Prefactor     .98196        .28746        .12971E-05    .63502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 264.972
  Prefactor  = 4.07914
  Prefactor  = 0.61486
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4313
  Prefactor  = 0.0001
  Prefactor  = 20.4094
  Prefactor  = 0.0001
  Prefactor  = 41.403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1959
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00447
  Normalizat = 1.17203
  Prefactor  = 0.981957
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.676     FROM HESSE     STATUS=OK           572 CALLS     5821 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5139        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.522        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     264.97        146.45        .24905E-04   -1.2438    
   6  Prefactor     4.0791        40.773        .19959E-03   -1.5304    
   7  Prefactor     .61486        40.656        .25610E-02   -1.5551    
   8  Prefactor     .10000E-03    165.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.2574        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7809        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.431        104.60        .65485E-04   -1.4484    
  12  Prefactor     .10000E-03    12.345        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.409        46.908        .88640E-04   -1.4804    
  14  Prefactor     .10000E-03    57.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.403        24.717        .62303E-04   -1.4420    
  16  Prefactor     .10000E-03    59.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4790        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    644.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    83.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.6757        .13438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7185        .79978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1817        .86522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7512        .80427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.196        14.690        .11026E-03   -1.4981    
  26  norm          .10000E-03    .73485        .81908E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.2468        .11021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.0045        43.626        .13348E-03   -1.5108    
  29  Normalizat    1.1720        .37026        .25418E-03   -.87471    
  30  Prefactor     .98196        .34336        .25985E-03   -.93333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33335e-10
Minuit parameter uncertainties:
  1  1.25458e-06
  2  3.7569e-06
  3  1.69629e-06
  4  9.92501e-07
  5  146.658
  6  25.8153
  7  10.0058
  8  5.12681e-05
  9  6.59611e-07
  10  1.97472e-05
  11  105.122
  12  2.65314e-06
  13  46.9931
  14  5.35049e-05
  15  24.7228
  16  1.11274e-05
  17  1.22129e-05
  18  0.000608585
  19  8.92146e-05
  20  6.60206e-07
  21  3.31325e-07
  22  7.29225e-08
  23  4.60965e-07
  24  7.37697e-07
  25  14.6939
  26  2.92802e-06
  27  5.23724e-05
  28  39.6863
  29  0.371088
  30  0.344122
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.653e-06  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:  9.820e-01  3.441e-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.172e+00  3.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386424/likelihoodResults_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.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): 102
logL (Free Index) = 2466.6759307
delta logL = -0.000385877164263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2466.67554644
delta logL = -1.61455864145e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12282E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98236       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=   2466.676     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    226.42        .17016E-02** at limit **
   2  Index         2.4639        7.1097        .50000        .50026E-05
   3  Normalizat    1.1720        .32546E-01    .25418E-03    .68207E-05
   4  Prefactor     .98196        .30922E-01    .25985E-03    .66939E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100391
  Index      = 2.46386
  Normalizat = 1.17203
  Prefactor  = 0.981959
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.676     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    922.25        .34032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4639        5.9626        .50000       -.53197    
   3  Normalizat    1.1720        .71682E-01    .10167E-04   -.87472    
   4  Prefactor     .98196        .68105E-01    .10394E-04   -.93333    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.2413e-09
Minuit parameter uncertainties:
  1  0.038574
  2  1297.82
  3  0.0716883
  4  0.0681105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386424': 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): 102
logL (Free Index) = 2466.67554477
delta logL = 5.23814378539e-08

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.004e-04  3.857e-02  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.464e+00  1.298e+03  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:  9.820e-01  6.811e-02  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.172e+00  7.169e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/386424/cmap_HighResolution_617241601_617500801_4FGL_J2235.3-4836_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-28 16:16:52.556099', job_id='386424', GAL2='0.98', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632871012.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1458' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 386424: <4FGL_J2235.3-4836_daily_bin1458> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1458 338.841 -48.6015 617241601 617500801 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 :                                   564.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            680 sec.

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

