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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1252
RA = 338.841, Dec = -48.6015
tmin = 563846401, tmax = 564105601
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='384999', job_status='RUN', time_executed='2021-09-28 16:01:43.011365', time_epoch_executed='1632870103.01' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384999/ft1_4FGL_J2235.3-4836_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384999/ft2_4FGL_J2235.3-4836_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384999/ft1_4FGL_J2235.3-4836_daily_bin1252.fits outfile=/scratch/kocevski/384999/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1252.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=563846401.0 tmax=564105601.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.83
user 2.64
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384999/ft1_filtered_4FGL_J2235.3-4836_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/384999/ft2_4FGL_J2235.3-4836_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/384999/ltcube_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.fits outfile=/scratch/kocevski/384999/expmap_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.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/384999/ltcube_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.fits
.....................!
real 189.47
user 185.00
sys 4.15

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/384999/ft1_filtered_4FGL_J2235.3-4836_daily_bin1252.fits scfile=/scratch/kocevski/384999/ft2_4FGL_J2235.3-4836_daily_bin1252.fits outfile=/scratch/kocevski/384999/cmap_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384999/ft1_filtered_4FGL_J2235.3-4836_daily_bin1252.fits scfile=/scratch/kocevski/384999/ft2_4FGL_J2235.3-4836_daily_bin1252.fits outfile=/scratch/kocevski/384999/cmap_HighResolution_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384999/ft1_filtered_4FGL_J2235.3-4836_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/384999/ft2_4FGL_J2235.3-4836_daily_bin1252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384999/Model_4FGL_J2235.3-4836_daily_bin1252.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/384999/ft1_filtered_4FGL_J2235.3-4836_daily_bin1252.fits.....................!
real 52.74
user 51.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    87.147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3663       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40445E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.043       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9653       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2349       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.201       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9339       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3904       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83322       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=   7056.271     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3926 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.508        14.917       -.45218E-07   -.15631E-04
   2  Prefactor     87.149        38.604        .23333E-06    .78279E-04
   3  Prefactor     2.3661        4.1362       -.87092E-06   -.56118E-03
   4  norm          8.4578        5.0657        .10661E-06    .17377E-03
   5  Prefactor     .10001E-03    45.313        .47343E-05** at limit **
   6  Prefactor     .10004E-03    71.845       -.80719E-05** at limit **
   7  Prefactor     6.6412        4.3946        .27170E-06    .44009E-03
   8  Prefactor     57.024        66.446       -.27057E-05   -.11458E-03
   9  norm          .10000E-03    1.6639       -.58473E-07** at limit **
  10  Prefactor     .10000E-03    2.4616        .66031E-08** at limit **
  11  Prefactor     .10000E-03    12.081       -.72912E-06** at limit **
  12  Prefactor     .10000E-03    2.6765       -.91681E-07** at limit **
  13  Prefactor     2.5824        23.730       -.94105E-06   -.32034E-04
  14  Prefactor     .10000E-03    11.665       -.21856E-05** at limit **
  15  Prefactor     1.4962        16.022       -.19532E-05   -.16681E-03
  16  Prefactor     74.493        83.996        .14860E-06   -.11631E-04
  17  Prefactor     .10000E-03    4.4247       -.12166E-05** at limit **
  18  Prefactor     10.907        34.940       -.60831E-06   -.79796E-05
  19  Prefactor     4.9641        14.674       -.31899E-06    .15475E-03
  20  norm          6.2351        6.6880        .61201E-07    .11327E-03
  21  norm          .10000E-03    2.6348       -.20632E-06** at limit **
  22  norm          .10000E-03    2.4835       -.13408E-06** at limit **
  23  Prefactor     .10003E-03    8.1669       -.22732E-05** at limit **
  24  Prefactor     12.200        43.790       -.41324E-06    .24508E-04
  25  Prefactor     .10000E-03    18.700       -.22706E-05** at limit **
  26  norm          .10000E-03    .45010       -.73225E-07** at limit **
  27  Prefactor     3.9338        3.8123       -.19931E-07    .10718E-03
  28  Prefactor     .10000E-03    14.760        .17803E-05** at limit **
  29  Normalizat    1.3904        .18435        .38511E-06    .52693E-03
  30  Prefactor     .83307        .16209        .22190E-06    .40694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5081
  Prefactor  = 87.1488
  Prefactor  = 2.36607
  norm       = 8.45778
  Prefactor  = 0.000100009
  Prefactor  = 0.000100039
  Prefactor  = 6.64116
  Prefactor  = 57.0236
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58239
  Prefactor  = 0.000100002
  Prefactor  = 1.49623
  Prefactor  = 74.4927
  Prefactor  = 0.000100002
  Prefactor  = 10.9074
  Prefactor  = 4.96414
  norm       = 6.2351
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 12.2005
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.93381
  Prefactor  = 0.000100001
  Normalizat = 1.39045
  Prefactor  = 0.833072
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.271     FROM HESSE     STATUS=OK           588 CALLS     4514 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.508        14.901        .75035E-04   -1.4640    
   2  Prefactor     87.149        38.612        .43037E-04   -1.3838    
   3  Prefactor     2.3661        4.2041        .21882E-03   -1.5400    
   4  norm          8.4578        5.0629        .13784E-03   -1.5126    
   5  Prefactor     .10001E-03    46.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    74.395        .35645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6412        4.3784        .13527E-03   -1.5193    
   8  Prefactor     57.024        65.813        .26558E-03   -1.4196    
   9  norm          .10000E-03    1.6643        .10583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5053        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6945        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5824        23.737        .25400E-03   -1.5387    
  14  Prefactor     .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4962        16.295        .35148E-03   -1.5463    
  16  Prefactor     74.493        83.695        .46522E-04   -1.3980    
  17  Prefactor     .10000E-03    9.9381        .31963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.907        34.943        .12131E-03   -1.5047    
  19  Prefactor     4.9641        14.469        .18048E-03   -1.5262    
  20  norm          6.2351        6.6901        .16077E-03   -1.5209    
  21  norm          .10000E-03    2.6458        .13313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4870        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    12.913        .32467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.200        44.011        .11468E-03   -1.5009    
  25  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .46565        .10914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.9338        3.8104        .15614E-03   -1.5311    
  28  Prefactor     .10000E-03    14.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3904        .21677        .23802E-03   -.80905    
  30  Prefactor     .83307        .19020        .27071E-03   -.98521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79331e-09
Minuit parameter uncertainties:
  1  14.9031
  2  38.6234
  3  4.20467
  4  5.06315
  5  0.00130194
  6  0.00340288
  7  4.37861
  8  65.8968
  9  3.58982e-06
  10  2.13544e-06
  11  0.000103353
  12  6.80891e-06
  13  15.6666
  14  0.000319253
  15  9.87854
  16  83.8275
  17  0.000250567
  18  35.0091
  19  14.4789
  20  6.69088
  21  8.13224e-06
  22  8.0899e-06
  23  0.00132987
  24  44.1281
  25  0.000246798
  26  2.11481e-06
  27  3.81063
  28  0.00027567
  29  0.216916
  30  0.190351
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.809e-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:  8.331e-01  1.904e-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.390e+00  2.169e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384999/likelihoodResults_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.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) = 7056.27287378
delta logL = -0.00176481911058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7056.271109
delta logL = -3.94729795516e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5149       1.0000          .0000       10.000    
     3 'Normalizat'    1.3905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83310       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=   7056.271     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    138.13        .13425E-02** at limit **
   2  Index         2.5530        7.5391        .50000       -.10502E-04
   3  Normalizat    1.3904        .33889E-01    .23802E-03   -.60106E-04
   4  Prefactor     .83307        .30893E-01    .27071E-03   -.29817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100225
  Index      = 2.55297
  Normalizat = 1.39044
  Prefactor  = 0.833072
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    510.83        .26849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5530        8.7222        .50000       -.51141    
   3  Normalizat    1.3904        .93531E-01    .47604E-04   -.80905    
   4  Prefactor     .83307        .85169E-01    .10828E-04   -.98521    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.34615e-08
Minuit parameter uncertainties:
  1  0.021633
  2  1634.57
  3  0.0935429
  4  0.0851826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384999': 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) = 7056.27110888
delta logL = 7.407652447e-08

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.002e-04  2.163e-02  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.553e+00  1.635e+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:  8.331e-01  8.518e-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.390e+00  9.354e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384999/cmap_HighResolution_563846401_564105601_4FGL_J2235.3-4836_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-28 16:16:57.464866', job_id='384999', GAL2='0.83', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632871017.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1252' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 384999: <4FGL_J2235.3-4836_daily_bin1252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1252 338.841 -48.6015 563846401 564105601 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 :                                   913.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

