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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin440
RA = 353.869, Dec = -1.476
tmin = 353376001, tmax = 353635201
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='31288', job_status='RUN', time_executed='2021-09-30 00:17:40.047857', time_epoch_executed='1632986260.05' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31288/ft1_4FGL_J2335.4-0128_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31288/ft1_4FGL_J2335.4-0128_daily_bin440.fits outfile=/scratch/kocevski/31288/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin440.fits ra=353.869 dec=-1.476 rad=12.0 tmin=353376001.0 tmax=353635201.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.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/31288/ltcube_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.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/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits
.....................!
real 12.13
user 11.74
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/31288/ltcube_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits outfile=/scratch/kocevski/31288/expmap_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.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/31288/ltcube_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits
.....................!
real 190.51
user 185.56
sys 4.57

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/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits scfile=/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits outfile=/scratch/kocevski/31288/cmap_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits scfile=/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits outfile=/scratch/kocevski/31288/cmap_HighResolution_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31288/Model_4FGL_J2335.4-0128_daily_bin440.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/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits.....................!
real 55.35
user 53.89
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits', '/scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits', expMap='/scratch/kocevski/31288/expmap_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits', expCube='/scratch/kocevski/31288/ltcube_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31288/Model_4FGL_J2335.4-0128_daily_bin440.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/31288/ft1_filtered_4FGL_J2335.4-0128_daily_bin440.fits
Spacecraft file(s): /scratch/kocevski/31288/ft2_4FGL_J2335.4-0128_daily_bin440.fits
Exposure map: /scratch/kocevski/31288/expmap_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits
Exposure cube: /scratch/kocevski/31288/ltcube_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31288/Model_4FGL_J2335.4-0128_daily_bin440.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) = 5213.55175536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1095       1.0000         .10000E-03   10000.    
     5 'norm      '    12.124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .85113       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5143       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4085       1.0000         .10000E-03   10000.    
    14 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.609       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.932       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7914       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.042       1.0000         .10000E-03   10000.    
    24 'Prefactor '    131.18       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.787       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.895       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.056       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .58323       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0174       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=   5213.507     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3732 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.993        9.8575        .44581E-06    .25899E-05
   2  Prefactor     .10000E-03    29.110        .28208E-06** at limit **
   3  Prefactor     10.868        28.170       -.73114E-06   -.89113E-05
   4  Prefactor     1.1091        8.1929        .56283E-06   -.83226E-04
   5  norm          12.124        5.4081        .31880E-06   -.31824E-03
   6  Prefactor     .10000E-03    5.0767        .34158E-07** at limit **
   7  norm          .85077        3.1671        .26817E-06    .15723E-05
   8  norm          1.8985        6.9521        .66646E-05   -.83245E-03
   9  Prefactor     41.440        39.288        .17403E-05    .33871E-05
  10  Prefactor     3.4519        16.497        .20927E-05   -.22593E-03
  11  Prefactor     16.524        93.011        .37844E-04    .60851E-04
  12  Prefactor     4.5071        15.086       -.10311E-04   -.55822E-03
  13  norm          1.4085        1.0675        .20818E-06    .50848E-04
  14  norm          .10000E-03    4.7649        .54077E-07** at limit **
  15  Prefactor     21.609        11.056        .72690E-07   -.11165E-04
  16  Prefactor     32.935        48.610        .18194E-05    .57174E-05
  17  norm          .10000E-03    4.3270        .16877E-06** at limit **
  18  Prefactor     .10000E-03    88.618        .84569E-07** at limit **
  19  Prefactor     .10000E-03    5.7685       -.15267E-06** at limit **
  20  Prefactor     7.7906        22.459        .31917E-06   -.57040E-05
  21  norm          .10000E-03    11.818       -.58540E-07** at limit **
  22  Prefactor     .10000E-03    39.860        .39581E-06** at limit **
  23  Prefactor     25.042        8.3048       -.65077E-06   -.79994E-04
  24  Prefactor     131.20        60.697        .66694E-05    .58171E-04
  25  Prefactor     19.784        25.034       -.95549E-06   -.12979E-04
  26  Prefactor     25.895        25.783        .48119E-06   -.16741E-04
  27  Prefactor     37.057        13.358        .37433E-06   -.47646E-05
  28  Normalizat    .58319        .25689       -.46955E-05   -.36639E-04
  29  Prefactor     1.0174        .16573       -.39438E-06   -.65388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9933
  Prefactor  = 0.0001
  Prefactor  = 10.8685
  Prefactor  = 1.10907
  norm       = 12.124
  Prefactor  = 0.0001
  norm       = 0.850765
  norm       = 1.89852
  Prefactor  = 41.4402
  Prefactor  = 3.45187
  Prefactor  = 16.5244
  Prefactor  = 4.50711
  norm       = 1.40848
  norm       = 0.0001
  Prefactor  = 21.6085
  Prefactor  = 32.9349
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7906
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.042
  Prefactor  = 131.195
  Prefactor  = 19.7843
  Prefactor  = 25.8949
  Prefactor  = 37.0572
  Normalizat = 0.583191
  Prefactor  = 1.01738
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.507     FROM HESSE     STATUS=OK           563 CALLS     4295 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.993        9.8522        .11112E-03   -1.4987    
   2  Prefactor     .10000E-03    29.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.868        28.130        .12152E-03   -1.5048    
   4  Prefactor     1.1091        7.4312        .31866E-03   -1.5497    
   5  norm          12.124        5.4176        .42704E-03   -1.5011    
   6  Prefactor     .10000E-03    5.0778        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .85077        2.7476        .19140E-02   -1.5523    
   8  norm          1.8985        12.455        .15088E-02   -1.5432    
   9  Prefactor     41.440        39.269        .62272E-04   -1.4420    
  10  Prefactor     3.4519        17.255        .10883E-02   -1.5336    
  11  Prefactor     16.524        111.48        .98617E-04   -1.4895    
  12  Prefactor     4.5071        17.231        .94744E-03   -1.5283    
  13  norm          1.4085        1.0530        .61537E-04   -1.5471    
  14  norm          .10000E-03    4.8072        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.609        11.047        .86165E-04   -1.4778    
  16  Prefactor     32.935        48.586        .69826E-04   -1.4560    
  17  norm          .10000E-03    4.3511        .14660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    88.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7910        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7906        22.430        .14366E-03   -1.5150    
  21  norm          .10000E-03    11.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.042        8.2882        .80049E-04   -1.4707    
  24  Prefactor     131.20        60.395        .35155E-04   -1.3412    
  25  Prefactor     19.784        25.038        .90041E-04   -1.4818    
  26  Prefactor     25.895        25.796        .78722E-04   -1.4690    
  27  Prefactor     37.057        13.379        .65838E-04   -1.4490    
  28  Normalizat    .58319        .28181        .37112E-03   -1.0870    
  29  Prefactor     1.0174        .18553        .20936E-03   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90058e-09
Minuit parameter uncertainties:
  1  9.85347
  2  1.28372e-05
  3  28.1646
  4  5.74245
  5  5.41786
  6  9.24153e-08
  7  2.74804
  8  9.72828
  9  39.2931
  10  15.4421
  11  86.074
  12  17.2499
  13  1.05297
  14  2.21887e-05
  15  11.0479
  16  48.6448
  17  6.42872e-06
  18  2.88688e-05
  19  5.60419e-06
  20  22.454
  21  1.28119e-05
  22  5.284e-05
  23  8.28862
  24  60.4235
  25  25.0517
  26  25.807
  27  13.3801
  28  0.282503
  29  0.185651
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.281e-05  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:  1.017e+00  1.857e-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:  5.832e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31288/likelihoodResults_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.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) = 5213.50731781
delta logL = -0.0004018735317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5213.50691592
delta logL = 1.72258296516e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4939       1.0000          .0000       5.0000    
     3 'Normalizat'    .58318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5213.507     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    509.32        .18142E-01** at limit **
   2  alpha         1.9019        4.0373        .16461        .85641E-08
   3  Normalizat    .58319        .35211E-01    .37112E-03    .42886E-05
   4  Prefactor     1.0174        .25909E-01    .20936E-03    .34211E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90185
  Normalizat = 0.583191
  Prefactor  = 1.01738
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.507     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.601        .25917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9019        3.9770        .65843E-02   -.24160    
   3  Normalizat    .58319        .24475        .14845E-04   -1.0870    
   4  Prefactor     1.0174        .18031        .83743E-05   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19495e-12
Minuit parameter uncertainties:
  1  5.00076e-05
  2  604.841
  3  0.24521
  4  0.180421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31288': 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) = 5213.50691541
delta logL = 5.28697455593e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.001e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.902e+00  6.048e+02  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:  1.017e+00  1.804e-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:  5.832e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

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/31288/cmap_HighResolution_353376001_353635201_4FGL_J2335.4-0128_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-30 00:29:24.212607', job_id='31288', GAL2='1.02', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632986964.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='440' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 31288: <4FGL_J2335.4-0128_daily_bin440> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin440> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:19 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:21 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:15:21 2021
Terminated at Thu Sep 30 00:29:24 2021
Results reported at Thu Sep 30 00:29:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin440 353.869 -1.476 353376001 353635201 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 :                                   702.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

