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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1283
RA = 338.841, Dec = -48.6015
tmin = 571881601, tmax = 572140801
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='385045', job_status='RUN', time_executed='2021-09-28 16:04:00.435228', time_epoch_executed='1632870240.44' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385045/ft1_4FGL_J2235.3-4836_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385045/ft1_4FGL_J2235.3-4836_daily_bin1283.fits outfile=/scratch/kocevski/385045/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1283.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=571881601.0 tmax=572140801.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.56
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385045/ft1_filtered_4FGL_J2235.3-4836_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/385045/ltcube_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.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/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits
.....................!
real 12.24
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385045/ft1_filtered_4FGL_J2235.3-4836_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/385045/ltcube_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.fits outfile=/scratch/kocevski/385045/expmap_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.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/385045/ltcube_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.fits
.....................!
real 190.31
user 185.16
sys 4.84

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/385045/ft1_filtered_4FGL_J2235.3-4836_daily_bin1283.fits scfile=/scratch/kocevski/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits outfile=/scratch/kocevski/385045/cmap_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385045/ft1_filtered_4FGL_J2235.3-4836_daily_bin1283.fits scfile=/scratch/kocevski/385045/ft2_4FGL_J2235.3-4836_daily_bin1283.fits outfile=/scratch/kocevski/385045/cmap_HighResolution_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8069       1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11131E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0918       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    181.80       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.927       1.0000         .10000E-03   10000.    
    15 'Prefactor '    74.483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.940       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.994       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21836E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.054       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13820E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.9705       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56710       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=   1887.860     FROM MIGRAD    STATUS=CONVERGED   1458 CALLS     4639 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    176.57        .18142E-02** at limit **
   2  Prefactor     .10000E-03    107.31        .18142E-02** at limit **
   3  Prefactor     6.8109        17.812        .15379E-03    .12456E-04
   4  norm          .10000E-03    30.162        .18142E-02** at limit **
   5  Prefactor     .10000E-03    281.92        .18142E-02** at limit **
   6  Prefactor     .10000E-03    31.910        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.7508        .13188E-02** at limit **
   8  Prefactor     .10020E-03    506.99        .29308    ** at limit **
   9  norm          .10000E-03    12.373        .14921E-02** at limit **
  10  Prefactor     2.1667        11.869        .28016E-03    .57613E-04
  11  Prefactor     182.03        189.60        .14970E-03    .13746E-04
  12  Prefactor     .10000E-03    5.7822        .10202E-02** at limit **
  13  Prefactor     .10000E-03    60.661        .18142E-02** at limit **
  14  Prefactor     27.928        88.153        .75810E-04   -.14771E-04
  15  Prefactor     74.482        50.659        .46523E-04   -.49387E-04
  16  Prefactor     .10000E-03    230.86        .18142E-02** at limit **
  17  Prefactor     .10000E-03    9.8326        .13300E-02** at limit **
  18  Prefactor     .10000E-03    34.212        .18142E-02** at limit **
  19  Prefactor     18.899        43.641        .92030E-04    .33384E-04
  20  norm          .10000E-03    9.4764        .13065E-02** at limit **
  21  norm          12.995        13.768        .11112E-03   -.71873E-05
  22  norm          3.6619        11.043        .21157E-03    .13823E-04
  23  Prefactor     .10000E-03    94.747        .37614E-02** at limit **
  24  Prefactor     70.785        134.08        .23812E-03   -.41298E-05
  25  Prefactor     .13211        70.210        .76576E-01    .51104E-04
  26  norm          .10000E-03    1.2595        .47193E-03** at limit **
  27  Prefactor     .10000E-03    9.9336        .13308E-02** at limit **
  28  Prefactor     .10000E-03    119.77        .18142E-02** at limit **
  29  Normalizat    1.9707        .54578        .24911E-03    .21701E-04
  30  Prefactor     .56685        .44260        .37986E-03    .13962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81094
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100199
  norm       = 0.0001
  Prefactor  = 2.16671
  Prefactor  = 182.035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9281
  Prefactor  = 74.4822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8986
  norm       = 0.0001
  norm       = 12.9953
  norm       = 3.66186
  Prefactor  = 0.0001
  Prefactor  = 70.7848
  Prefactor  = 0.132112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.97069
  Prefactor  = 0.566852
 **********
 **   18 **HESSE 
 **********

 FCN=   1887.860     FROM HESSE     STATUS=OK           576 CALLS     5215 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    176.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    107.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8109        17.811        .61514E-05   -1.5186    
   4  norm          .10000E-03    30.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    281.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7526        .26376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10020E-03    506.94        .29308       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.373        .29843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1667        11.863        .11206E-04   -1.5414    
  11  Prefactor     182.03        189.58        .29940E-04   -1.3001    
  12  Prefactor     .10000E-03    5.7822        .20405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.928        88.144        .30324E-05   -1.4651    
  15  Prefactor     74.482        50.651        .93045E-05   -1.3980    
  16  Prefactor     .10000E-03    230.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8328        .26601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.899        43.636        .36812E-05   -1.4838    
  20  norm          .10000E-03    9.4764        .26130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.995        13.752        .44448E-05   -1.4987    
  22  norm          3.6619        11.043        .84627E-05   -1.5325    
  23  Prefactor     .10000E-03    94.969        .75227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     70.785        134.09        .95248E-05   -1.4023    
  25  Prefactor     .13211        61.795        .82123E-01   -1.5635    
  26  norm          .10000E-03    1.2596        .94386E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.9353        .26615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    119.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.9707        .54584        .99642E-05   -.65287    
  30  Prefactor     .56685        .44293        .15195E-04   -1.0900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40501e-10
Minuit parameter uncertainties:
  1  0.000365117
  2  3.72938e-05
  3  17.8251
  4  1.56214e-05
  5  0.000842258
  6  0.000109107
  7  6.75773e-06
  8  0.0202418
  9  8.47519e-06
  10  10.1428
  11  190.221
  12  3.13704e-05
  13  2.25037e-05
  14  88.5588
  15  50.6808
  16  0.00015524
  17  2.60773e-05
  18  1.91341e-05
  19  43.7102
  20  7.84866e-06
  21  13.7552
  22  11.0489
  23  8.13893e-06
  24  134.666
  25  5.71828
  26  1.69701e-05
  27  2.18371e-05
  28  3.20391e-05
  29  0.547574
  30  0.445686
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.137e-05  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:  5.669e-01  4.457e-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.971e+00  5.476e-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.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385045/likelihoodResults_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.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) = 1887.86067877
delta logL = -0.000664771772108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1887.86001629
delta logL = -2.28483622777e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5027       1.0000          .0000       10.000    
     3 'Normalizat'    1.9698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56763       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=   1887.860     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      260 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.166        .10242E-01** at limit **
   2  Index         2.0889        5.4533        .50000        .50397E-07
   3  Normalizat    1.9707        .38103E-01    .24911E-03   -.20748E-03
   4  Prefactor     .56685        .33764E-01    .37981E-03   -.13024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08893
  Normalizat = 1.97069
  Prefactor  = 0.566851
 **********
 **   18 **HESSE 
 **********

 FCN=   1887.860     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    663.02        .10725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0889        6.0157        .50000       -.62145    
   3  Normalizat    1.9707        .12413        .49823E-04   -.65287    
   4  Prefactor     .56685        .10997        .15192E-04   -1.0900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66992e-09
Minuit parameter uncertainties:
  1  0.000932207
  2  1766.89
  3  0.124149
  4  0.110012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385045': 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) = 1887.86001318
delta logL = 8.21145476948e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  9.322e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.089e+00  1.767e+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:  5.669e-01  1.100e-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.971e+00  1.241e-01  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/385045/cmap_HighResolution_571881601_572140801_4FGL_J2235.3-4836_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.93e-07', time_completed='2021-09-28 16:12:15.726309', job_id='385045', GAL2='0.57', fit_tolerance='1e-08', EG2='1.97', EG='1.97', time_epoch_completed='1632870735.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='8.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1283' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:12:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 385045: <4FGL_J2235.3-4836_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1283> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:33 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:34 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:00:34 2021
Terminated at Tue Sep 28 16:12:16 2021
Results reported at Tue Sep 28 16:12:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1283 338.841 -48.6015 571881601 572140801 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 :                                   494.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

