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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1454
RA = 338.841, Dec = -48.6015
tmin = 616204801, tmax = 616464001
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='386417', job_status='RUN', time_executed='2021-09-28 16:06:42.092016', time_epoch_executed='1632870402.09' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386417/ft1_4FGL_J2235.3-4836_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386417/ft2_4FGL_J2235.3-4836_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386417/ft1_4FGL_J2235.3-4836_daily_bin1454.fits outfile=/scratch/kocevski/386417/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1454.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=616204801.0 tmax=616464001.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 3.97
user 3.72
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386417/ft1_filtered_4FGL_J2235.3-4836_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/386417/ft2_4FGL_J2235.3-4836_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/386417/ltcube_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.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/386417/ft2_4FGL_J2235.3-4836_daily_bin1454.fits
.....................!
real 11.73
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386417/ft1_filtered_4FGL_J2235.3-4836_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/386417/ft2_4FGL_J2235.3-4836_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/386417/ltcube_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.fits outfile=/scratch/kocevski/386417/expmap_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.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/386417/ltcube_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.fits
.....................!
real 191.03
user 185.33
sys 5.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/386417/ft1_filtered_4FGL_J2235.3-4836_daily_bin1454.fits scfile=/scratch/kocevski/386417/ft2_4FGL_J2235.3-4836_daily_bin1454.fits outfile=/scratch/kocevski/386417/cmap_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.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.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8708       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11367E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.781       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.0854       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .68987       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.522       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .48174       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1132       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=   3324.677     FROM MIGRAD    STATUS=CONVERGED   1351 CALLS     4501 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8907        .11102E-02** at limit **
   2  Prefactor     .59126        219.45        .54587E-02    .11359E-03
   3  Prefactor     2.8712        4.9223        .79697E-03    .42502E-04
   4  norm          .10000E-03    2.0239        .80041E-03** at limit **
   5  Prefactor     .10000E-03    20.377        .18142E-02** at limit **
   6  Prefactor     1.1853        12.210        .18870E-02    .61166E-03
   7  Prefactor     .36642        7.5950        .21281E-02    .77440E-03
   8  Prefactor     .10000E-03    100.86        .18142E-02** at limit **
   9  norm          12.912        11.067        .11148E-03    .68174E-04
  10  Prefactor     6.5648        5.0729        .10734E-03   -.13965E-03
  11  Prefactor     .10000E-03    32.805        .18142E-02** at limit **
  12  Prefactor     5.1834        7.9700        .17661E-03    .67849E-04
  13  Prefactor     1.0493        171.46        .57164E-02   -.96174E-04
  14  Prefactor     .10000E-03    31.756        .18142E-02** at limit **
  15  Prefactor     23.994        15.296        .81782E-04    .59775E-04
  16  Prefactor     .10000E-03    84.292        .18142E-02** at limit **
  17  Prefactor     .10000E-03    5.4103        .13059E-02** at limit **
  18  Prefactor     66.772        57.805        .49114E-04    .44282E-04
  19  Prefactor     .10000E-03    4.2183        .11564E-02** at limit **
  20  norm          9.0925        14.372        .13297E-03    .89774E-05
  21  norm          .10000E-03    3.5227        .10562E-02** at limit **
  22  norm          .10000E-03    3.2571        .10158E-02** at limit **
  23  Prefactor     6.9657        7.5057        .15195E-03    .24065E-03
  24  Prefactor     .10000E-03    42.163        .18142E-02** at limit **
  25  Prefactor     .10000E-03    14.435        .18142E-02** at limit **
  26  norm          .69100        .94441        .64512E-03   -.52410E-03
  27  Prefactor     .10000E-03    2.9385        .96235E-03** at limit **
  28  Prefactor     21.497        29.541        .86339E-04    .10269E-03
  29  Normalizat    .48159        .25705        .28759E-03    .15213E-03
  30  Prefactor     1.1134        .24187        .19131E-03    .26641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.591259
  Prefactor  = 2.87115
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18526
  Prefactor  = 0.366424
  Prefactor  = 0.0001
  norm       = 12.9117
  Prefactor  = 6.56479
  Prefactor  = 0.0001
  Prefactor  = 5.18335
  Prefactor  = 1.04931
  Prefactor  = 0.0001
  Prefactor  = 23.9944
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 66.7724
  Prefactor  = 0.0001
  norm       = 9.09248
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.96571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.690999
  Prefactor  = 0.0001
  Prefactor  = 21.4972
  Normalizat = 0.481592
  Prefactor  = 1.11337
 **********
 **   18 **HESSE 
 **********

 FCN=   3324.677     FROM HESSE     STATUS=OK           568 CALLS     5069 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8908        .22204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59126        222.88        .21835E-03   -1.5554    
   3  Prefactor     2.8712        4.9174        .31879E-04   -1.5369    
   4  norm          .10000E-03    2.0239        .16008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1853        12.153        .37740E-03   -1.5490    
   7  Prefactor     .36642        7.5614        .85123E-04   -1.5587    
   8  Prefactor     .10000E-03    100.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.912        11.064        .44592E-05   -1.4989    
  10  Prefactor     6.5648        5.0708        .42934E-05   -1.5195    
  11  Prefactor     .10000E-03    32.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1834        7.9643        .70643E-05   -1.5253    
  13  Prefactor     1.0493        170.01        .22866E-03   -1.5503    
  14  Prefactor     .10000E-03    31.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.994        15.292        .32713E-05   -1.4728    
  16  Prefactor     .10000E-03    84.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4108        .26117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.772        57.794        .98227E-05   -1.4072    
  19  Prefactor     .10000E-03    4.2183        .23129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.0925        14.370        .53187E-05   -1.5105    
  21  norm          .10000E-03    3.5227        .21124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.2572        .20315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9657        7.4987        .60782E-05   -1.5180    
  24  Prefactor     .10000E-03    42.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .69100        .94341        .25805E-04   -1.5542    
  27  Prefactor     .10000E-03    2.9387        .19247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     21.497        29.529        .17268E-04   -1.4780    
  29  Normalizat    .48159        .25596        .11504E-04   -1.1328    
  30  Prefactor     1.1134        .24166        .38262E-04   -.89040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16781e-09
Minuit parameter uncertainties:
  1  9.62178e-07
  2  23.0441
  3  4.91814
  4  1.36562e-06
  5  4.99731e-05
  6  7.59228
  7  3.32909
  8  0.000425081
  9  11.0662
  10  5.07118
  11  3.61536e-05
  12  7.96596
  13  26.7889
  14  4.86965e-05
  15  15.294
  16  0.000810914
  17  1.31817e-05
  18  57.8424
  19  2.65054e-06
  20  14.3755
  21  2.54094e-06
  22  2.07365e-06
  23  7.49971
  24  0.00012364
  25  7.24336e-05
  26  0.943429
  27  3.15295e-06
  28  29.5492
  29  0.256589
  30  0.241896
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.183e+00  7.966e+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:  1.113e+00  2.419e-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:  4.816e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386417/likelihoodResults_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.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) = 3324.1246683
delta logL = 0.551964371224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3324.07347272
delta logL = 0.603159951248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9045       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2810       1.0000          .0000       10.000    
     3 'Normalizat'    .51692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0904       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=   3324.073     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8871        3.6802        .59604E-02   -.25586E-04
   2  Index         1.2792        .44151        .17791       -.50131E-04
   3  Normalizat    .51727        .20383        .62788E-01    .18118E-04
   4  Prefactor     1.0902        .20126        .37963E-01   -.86030E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88705
  Index      = 1.27924
  Normalizat = 0.517274
  Prefactor  = 1.0902
 **********
 **   18 **HESSE 
 **********

 FCN=   3324.073     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8871        5.7059        .11653E-03   -1.5368    
   2  Index         1.2792        .75306        .71387E-02   -.83927    
   3  Normalizat    .51727        .23908        .27784E-03   -1.1162    
   4  Prefactor     1.0902        .23647        .19294E-03   -.89780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26737e-12
Minuit parameter uncertainties:
  1  5.70702
  2  0.75959
  3  0.239561
  4  0.236693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386417': 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) = 3324.07346749
delta logL = 0.603165185566

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.887e+00  5.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.279e+00  7.596e-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:  1.090e+00  2.367e-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:  5.173e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.28 +/- 0.76
Photon Flux (Free Index): 8.99e-09 +/- 1.48e-08
Energy Flux (Free Index): 5.88e-05 +/- 1.05e-04

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/386417/cmap_HighResolution_616204801_616464001_4FGL_J2235.3-4836_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='5.88e-05', dlogl='6.03e-01', photon_flux2='8.99e-09', job_status='DONE', time_completed='2021-09-28 16:17:05.836753', photon_index_error2='0.76', photon_index2='1.28', ts='0.53', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.05e-04', EG='0.48', time_epoch_completed='1632871025.84', return_code='0', job_id='386417', GAL2='1.09', EG2='0.52', return_code2='0', photon_flux_error2='1.48e-08', ts2='1.73', photon_index='2.51' WHERE bin_id='1454' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 386417: <4FGL_J2235.3-4836_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1454 338.841 -48.6015 616204801 616464001 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

