/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 2 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin163
RA = 353.869, Dec = -1.476
tmin = 281577601, tmax = 281836801
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='29876', job_status='RUN', time_executed='2021-09-30 00:10:25.614727', time_epoch_executed='1632985825.61' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29876

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29876/ft1_4FGL_J2335.4-0128_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29876/ft1_4FGL_J2335.4-0128_daily_bin163.fits outfile=/scratch/kocevski/29876/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin163.fits ra=353.869 dec=-1.476 rad=12.0 tmin=281577601.0 tmax=281836801.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.63
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.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/29876/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/29876/ltcube_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.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/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits
.....................!
real 12.25
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/29876/ltcube_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits outfile=/scratch/kocevski/29876/expmap_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.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/29876/ltcube_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits
.....................!
real 192.65
user 186.57
sys 5.59

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2335.4-0128 @ 353.869 -1.476

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits outfile=/scratch/kocevski/29876/cmap_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.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=353.869 yref=-1.476 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits outfile=/scratch/kocevski/29876/cmap_HighResolution_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.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=353.869 yref=-1.476 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/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29876/Model_4FGL_J2335.4-0128_daily_bin163.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/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits.....................!
real 71.33
user 69.93
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits', '/scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits', expMap='/scratch/kocevski/29876/expmap_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits', expCube='/scratch/kocevski/29876/ltcube_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29876/Model_4FGL_J2335.4-0128_daily_bin163.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2335.4-0128'

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.347e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/29876/ft1_filtered_4FGL_J2335.4-0128_daily_bin163.fits
Spacecraft file(s): /scratch/kocevski/29876/ft2_4FGL_J2335.4-0128_daily_bin163.fits
Exposure map: /scratch/kocevski/29876/expmap_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits
Exposure cube: /scratch/kocevski/29876/ltcube_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29876/Model_4FGL_J2335.4-0128_daily_bin163.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) = 7472.08224454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65174E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1894       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
     7 'norm      '    .88329       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13892E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16755E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8408       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.461       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6373       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.945       1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.515       1.0000         .10000E-03   10000.    
    21 'norm      '    25.142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9334       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86583       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7472.021     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3871 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.530        .16789E-04** at limit **
   2  Prefactor     3.2974        73.837        .26872E-05    .65113E-04
   3  Prefactor     4.3768        7.4575       -.84023E-06   -.87992E-04
   4  Prefactor     3.1894        3.6671        .20950E-07    .12060E-03
   5  norm          .10000E-03    .67048        .14971E-06** at limit **
   6  Prefactor     10.479        10.473        .66613E-07    .87235E-04
   7  norm          .88296        2.4093       -.23486E-06    .75073E-04
   8  norm          .10000E-03    2.6086       -.84934E-07** at limit **
   9  Prefactor     16.256        31.121        .41620E-06    .21123E-04
  10  Prefactor     3.3988        12.278       -.31248E-05    .10128E-03
  11  Prefactor     1.7207        66.111       -.28702E-05   -.11130E-03
  12  Prefactor     .10001E-03    5.0284       -.10006E-05** at limit **
  13  norm          .10000E-03    .36222       -.56470E-06** at limit **
  14  norm          .30037E-01    7.5980        .46004E-05   -.32119E-03
  15  Prefactor     5.8436        10.543       -.10417E-05    .12440E-03
  16  Prefactor     32.460        32.934        .11225E-06    .30524E-04
  17  norm          6.6300        12.995       -.33916E-06   -.64053E-04
  18  Prefactor     .10000E-03    59.892       -.31527E-05** at limit **
  19  Prefactor     17.949        12.966        .53678E-07    .33641E-03
  20  Prefactor     83.516        36.138        .36295E-06    .78015E-04
  21  norm          25.143        21.910       -.99507E-08    .93527E-04
  22  Prefactor     .10000E-03    20.918       -.17050E-06** at limit **
  23  Prefactor     .10000E-03    2.5738       -.33281E-07** at limit **
  24  Prefactor     .10000E-03    10.413       -.14605E-06** at limit **
  25  Prefactor     .10000E-03    31.293       -.67722E-06** at limit **
  26  Prefactor     7.9313        11.115       -.22039E-07    .87786E-04
  27  Prefactor     .10000E-03    2.8885       -.12591E-06** at limit **
  28  Normalizat    .86614        .16471        .31958E-06    .35487E-03
  29  Prefactor     .92031        .12050        .80571E-06    .60313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.29743
  Prefactor  = 4.37676
  Prefactor  = 3.18942
  norm       = 0.0001
  Prefactor  = 10.4794
  norm       = 0.882962
  norm       = 0.0001
  Prefactor  = 16.2562
  Prefactor  = 3.39879
  Prefactor  = 1.72068
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0300373
  Prefactor  = 5.84361
  Prefactor  = 32.46
  norm       = 6.62996
  Prefactor  = 0.0001
  Prefactor  = 17.949
  Prefactor  = 83.5163
  norm       = 25.1425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.93132
  Prefactor  = 0.0001
  Normalizat = 0.866138
  Prefactor  = 0.920308
 **********
 **   18 **HESSE 
 **********

 FCN=   7472.021     FROM HESSE     STATUS=OK           583 CALLS     4454 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2759        .58816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2974        73.543        .22386E-03   -1.5345    
   3  Prefactor     4.3768        7.4532        .19249E-03   -1.5290    
   4  Prefactor     3.1894        3.5908        .16038E-03   -1.5351    
   5  norm          .10000E-03    .68334        .69169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.479        10.360        .12377E-03   -1.5060    
   7  norm          .88296        2.2850        .19470E-03   -1.5520    
   8  norm          .10000E-03    2.6145        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.256        31.113        .99310E-04   -1.4901    
  10  Prefactor     3.3988        12.350        .10967E-02   -1.5339    
  11  Prefactor     1.7207        71.746        .32220E-03   -1.5446    
  12  Prefactor     .10001E-03    13.462        .31805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1674        .15562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30037E-01    5.8037        .42557E-01   -1.5673    
  15  Prefactor     5.8436        10.518        .83087E-03   -1.5224    
  16  Prefactor     32.460        32.937        .70330E-04   -1.4568    
  17  norm          6.6300        12.902        .15576E-03   -1.5193    
  18  Prefactor     .10000E-03    59.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.949        13.054        .94548E-04   -1.4860    
  20  Prefactor     83.516        35.945        .43955E-04   -1.3878    
  21  norm          25.143        21.966        .79890E-04   -1.4705    
  22  Prefactor     .10000E-03    20.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6021        .13485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.9313        11.120        .14236E-03   -1.5145    
  27  Prefactor     .10000E-03    2.9441        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86614        .19038        .27027E-03   -.97660    
  29  Prefactor     .92031        .13970        .20173E-03   -.95435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54666e-07
Minuit parameter uncertainties:
  1  5.58783e-05
  2  31.1881
  3  7.45479
  4  3.59105
  5  1.08828e-05
  6  10.3617
  7  2.28522
  8  1.03508e-05
  9  31.144
  10  12.3596
  11  22.2497
  12  0.000809696
  13  1.76701e-05
  14  0.833743
  15  10.5218
  16  32.9554
  17  12.9071
  18  0.000332257
  19  13.0556
  20  35.9542
  21  21.9735
  22  4.58952e-05
  23  4.79977e-07
  24  3.27755e-05
  25  0.000383469
  26  11.1229
  27  1.88248e-05
  28  0.190527
  29  0.139758
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.514e+01  2.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.203e-01  1.398e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  8.661e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.62
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.12e-05

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) = 7470.79693292
delta logL = 1.22375908449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7470.7948584
delta logL = 1.22583360284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.643       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1418       1.0000          .0000       5.0000    
     3 'Normalizat'    .88516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7470.795     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.643        20.027        .20173E-02    .21611E-02
   2  alpha         1.1418        .64673        .50000       -.23498E-04
   3  Normalizat    .88506        .15464        .44712E-01    .17879E-03
   4  Prefactor     .91557        .11926        .45203E-01    .10347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.6434
  alpha      = 1.14182
  Normalizat = 0.885057
  Prefactor  = 0.915566
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.795     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.643        24.489        .80693E-04   -1.4715    
   2  alpha         1.1418        .77416        .26288E-02   -.57433    
   3  Normalizat    .88506        .17855        .26785E-03   -.96987    
   4  Prefactor     .91557        .13787        .20230E-03   -.95599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13571e-08
Minuit parameter uncertainties:
  1  24.4988
  2  0.792887
  3  0.178664
  4  0.137926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29876': 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) = 7470.79485802
delta logL = 1.22583398229

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.464e+01  2.450e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.142e+00  7.929e-01  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.156e-01  1.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  8.851e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.14 +/- 0.79
Photon Flux (Free Index): 9.22e-09 +/- 9.71e-09
Energy Flux (Free Index): 2.03e-05 +/- 1.94e-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/29876/cmap_HighResolution_281577601_281836801_4FGL_J2335.4-0128_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='2.03e-05', photon_flux_error='2.71e-08', dlogl='1.23e+00', energy_flux='1.29e-05', photon_flux2='9.22e-09', job_status='DONE', time_completed='2021-09-30 00:23:20.489309', photon_index_error2='0.79', photon_index2='1.14', ts='4.62', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.87', time_epoch_completed='1632986600.49', return_code='0', job_id='29876', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='9.71e-09', ts2='7.11', photon_index='2.50' WHERE bin_id='163' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:23:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 29876: <4FGL_J2335.4-0128_daily_bin163> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin163> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:12 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:10:15 2021
Terminated at Thu Sep 30 00:23:21 2021
Results reported at Thu Sep 30 00:23:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin163 353.869 -1.476 281577601 281836801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2335.4-0128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            789 sec.

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

