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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1143
RA = 338.841, Dec = -48.6015
tmin = 535593601, tmax = 535852801
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='384837', job_status='RUN', time_executed='2021-09-28 16:00:26.146140', time_epoch_executed='1632870026.15' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384837/ft1_4FGL_J2235.3-4836_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384837/ft1_4FGL_J2235.3-4836_daily_bin1143.fits outfile=/scratch/kocevski/384837/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1143.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.02
user 4.78
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/384837/ltcube_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.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/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits
.....................!
real 11.64
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/384837/ltcube_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.fits outfile=/scratch/kocevski/384837/expmap_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.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/384837/ltcube_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.fits
.....................!
real 190.52
user 185.02
sys 4.99

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/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits scfile=/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits outfile=/scratch/kocevski/384837/cmap_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.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/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits scfile=/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits outfile=/scratch/kocevski/384837/cmap_HighResolution_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/384837/ft2_4FGL_J2235.3-4836_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384837/Model_4FGL_J2235.3-4836_daily_bin1143.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/384837/ft1_filtered_4FGL_J2235.3-4836_daily_bin1143.fits.....................!
real 49.46
user 48.10
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18282E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8910       1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.85       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.474       1.0000         .10000E-03   10000.    
    21 'norm      '    .64208       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.645       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15026       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1619       1.0000         .10000E-03   10000.    
    26 'norm      '    .85260       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4730       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72117       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=   6813.085     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     4003 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1035        .88560E-07** at limit **
   2  Prefactor     .10000E-03    7.4569        .10168E-07** at limit **
   3  Prefactor     .10000E-03    1.1841        .11194E-07** at limit **
   4  norm          17.723        5.9316        .13496E-07   -.14619E-04
   5  Prefactor     .10000E-03    20.338        .29367E-07** at limit **
   6  Prefactor     .10000E-03    3.2064        .24849E-07** at limit **
   7  Prefactor     2.5586        2.5121        .25140E-07   -.53404E-04
   8  Prefactor     .10000E-03    88.601        .17171E-06** at limit **
   9  norm          5.2291        5.9472        .23237E-06   -.22209E-03
  10  Prefactor     6.4647        4.5078        .44415E-07   -.24901E-03
  11  Prefactor     .10000E-03    66.862       -.74028E-07** at limit **
  12  Prefactor     5.4941        7.5217        .24878E-06   -.17074E-03
  13  Prefactor     .10221E-03    22.091        .17296E-05** at limit **
  14  Prefactor     3.6999        110.09        .55243E-07    .13491E-04
  15  Prefactor     1.8638        16.726        .18344E-05   -.15813E-03
  16  Prefactor     102.90        72.099       -.60575E-05   -.30207E-03
  17  Prefactor     2.0116        5.7014        .50569E-06   -.25307E-03
  18  Prefactor     .10000E-03    22.089        .10080E-09** at limit **
  19  Prefactor     .10000E-03    7.2092       -.24075E-07** at limit **
  20  norm          13.476        11.708       -.80827E-07   -.30441E-04
  21  norm          .64141        7.1809        .31696E-05   -.51017E-03
  22  norm          .10000E-03    2.3568        .23259E-08** at limit **
  23  Prefactor     18.650        13.143       -.20845E-05   -.48406E-03
  24  Prefactor     .10723E-03    61.042       -.96660E-06** at limit **
  25  Prefactor     1.1591        118.61        .12464E-04   -.32108E-04
  26  norm          .85255        .84162       -.11015E-06   -.20184E-03
  27  Prefactor     .10000E-03    3.0525       -.17613E-07** at limit **
  28  Prefactor     .10000E-03    35.948       -.12471E-06** at limit **
  29  Normalizat    1.4730        .18809       -.42965E-06   -.23975E-03
  30  Prefactor     .72112        .15395        .67250E-07   -.19309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55861
  Prefactor  = 0.0001
  norm       = 5.22915
  Prefactor  = 6.46474
  Prefactor  = 0.0001
  Prefactor  = 5.4941
  Prefactor  = 0.000102214
  Prefactor  = 3.69994
  Prefactor  = 1.86376
  Prefactor  = 102.903
  Prefactor  = 2.01162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4756
  norm       = 0.64141
  norm       = 0.0001
  Prefactor  = 18.6496
  Prefactor  = 0.000107235
  Prefactor  = 1.15913
  norm       = 0.852547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.47303
  Prefactor  = 0.721123
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.085     FROM HESSE     STATUS=OK           608 CALLS     4611 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.986        .35884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1993        .87685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.723        5.9245        .95135E-04   -1.4866    
   5  Prefactor     .10000E-03    20.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2324        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5586        2.5114        .12504E-03   -1.5388    
   8  Prefactor     .10000E-03    88.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2291        5.9558        .87894E-03   -1.5251    
  10  Prefactor     6.4647        4.5126        .13806E-03   -1.5199    
  11  Prefactor     .10000E-03    67.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4941        7.3752        .17118E-03   -1.5239    
  13  Prefactor     .10221E-03    27.177        .10579       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6999        93.690        .21355E-03   -1.5323    
  15  Prefactor     1.8638        14.261        .30258E-03   -1.5435    
  16  Prefactor     102.90        74.700        .19823E-03   -1.3676    
  17  Prefactor     2.0116        5.6844        .29183E-03   -1.5424    
  18  Prefactor     .10000E-03    22.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.476        11.708        .10912E-03   -1.4974    
  21  norm          .64141        7.7660        .43509E-03   -1.5548    
  22  norm          .10000E-03    2.3584        .12375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.650        13.438        .92755E-04   -1.4844    
  24  Prefactor     .10723E-03    52.133        .15668       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1591        126.38        .42724E-02   -1.5493    
  26  norm          .85255        .84796        .71372E-04   -1.5523    
  27  Prefactor     .10000E-03    3.0818        .14077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    36.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4730        .22695        .22855E-03   -.78539    
  30  Prefactor     .72112        .18338        .27782E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90586e-08
Minuit parameter uncertainties:
  1  1.59346e-05
  2  5.24427e-07
  3  1.47834e-07
  4  5.92474
  5  1.15828e-06
  6  5.10317e-07
  7  2.51148
  8  1.61413e-05
  9  5.95652
  10  4.51287
  11  5.58602e-05
  12  7.37644
  13  0.0155215
  14  37.3017
  15  10.3141
  16  74.7687
  17  5.68588
  18  2.26645e-06
  19  3.63204e-06
  20  11.7099
  21  4.4641
  22  4.39288e-07
  23  13.44
  24  0.0388751
  25  24.258
  26  0.847973
  27  2.07762e-06
  28  8.79755e-06
  29  0.22711
  30  0.183532
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.494e+00  7.376e+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:  7.211e-01  1.835e-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.473e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384837/likelihoodResults_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.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) = 6811.90933867
delta logL = 1.17546809722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6811.87305427
delta logL = 1.21175249443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9230       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0501       1.0000          .0000       10.000    
     3 'Normalizat'    1.3915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76696       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=   6811.873     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9173        17.877        .74904E-02    .42354E-03
   2  Index         4.0518        3.0804        .14511        .10674E-03
   3  Normalizat    1.3914        .53532E-01    .52855E-01   -.29358E-04
   4  Prefactor     .76710        .47419E-01    .43286E-01   -.17815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91731
  Index      = 4.05184
  Normalizat = 1.39141
  Prefactor  = 0.767095
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.873     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9173        1217.1        .66843E-04   -1.5431    
   2  Index         4.0518        6.2994        .53571E-02   -.19079    
   3  Normalizat    1.3914        .21438        .23369E-03   -.80877    
   4  Prefactor     .76710        .26481        .27001E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37882e-05
Minuit parameter uncertainties:
  1  98.6974
  2  33.781
  3  0.214517
  4  0.265249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384837': 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) = 6811.8730526
delta logL = 1.21175416359

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.917e+00  9.870e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.052e+00  3.378e+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:  7.671e-01  2.652e-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.391e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.05 +/- 33.78
Photon Flux (Free Index): 9.80e-08 +/- 1.39e-07
Energy Flux (Free Index): 1.45e-05 +/- 9.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384837/cmap_HighResolution_535593601_535852801_4FGL_J2235.3-4836_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='1.21e+00', photon_flux2='9.80e-08', job_status='DONE', time_completed='2021-09-28 16:16:04.213452', photon_index_error2='33.78', photon_index2='4.05', ts='0.79', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.73e-05', EG='1.47', time_epoch_completed='1632870964.21', return_code='0', job_id='384837', GAL2='0.77', EG2='1.39', return_code2='0', photon_flux_error2='1.39e-07', ts2='3.41', photon_index='2.51' WHERE bin_id='1143' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 384837: <4FGL_J2235.3-4836_daily_bin1143> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1143 338.841 -48.6015 535593601 535852801 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 :                                   935.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            948 sec.

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

