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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1429
RA = 353.869, Dec = -1.476
tmin = 609724801, tmax = 609984001
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='34783', job_status='RUN', time_executed='2021-09-30 00:29:50.748114', time_epoch_executed='1632986990.75' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34783/ft1_4FGL_J2335.4-0128_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34783/ft1_4FGL_J2335.4-0128_daily_bin1429.fits outfile=/scratch/kocevski/34783/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1429.fits ra=353.869 dec=-1.476 rad=12.0 tmin=609724801.0 tmax=609984001.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.67
user 2.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/34783/ltcube_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.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/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits
.....................!
real 12.58
user 12.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/34783/ltcube_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.fits outfile=/scratch/kocevski/34783/expmap_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.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/34783/ltcube_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.fits
.....................!
real 190.41
user 185.24
sys 4.81

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/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits scfile=/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits outfile=/scratch/kocevski/34783/cmap_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits scfile=/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits outfile=/scratch/kocevski/34783/cmap_HighResolution_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/34783/ft2_4FGL_J2335.4-0128_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34783/Model_4FGL_J2335.4-0128_daily_bin1429.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/34783/ft1_filtered_4FGL_J2335.4-0128_daily_bin1429.fits......................!
real 42.64
user 41.28
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.786       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.091       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    39.498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4033       1.0000         .10000E-03   10000.    
    14 'norm      '    .62020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5554       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.937       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
    24 'Prefactor '    135.41       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.702       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57646       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87078       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=   3883.344     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3700 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.806       -.54722E-06** at limit **
   2  Prefactor     88.768        101.63       -.10689E-05   -.31931E-04
   3  Prefactor     .10000E-03    31.885       -.13785E-05** at limit **
   4  Prefactor     13.091        13.231        .56115E-06    .52797E-05
   5  norm          .10000E-03    1.7117       -.10114E-07** at limit **
   6  Prefactor     .10000E-03    11.937       -.29095E-08** at limit **
   7  norm          .10000E-03    3.9351        .11085E-07** at limit **
   8  norm          39.501        17.649        .16193E-06   -.24600E-04
   9  Prefactor     6.9886        26.970        .43337E-05    .13600E-04
  10  Prefactor     15.471        18.107        .17727E-06    .19031E-05
  11  Prefactor     21.080        52.702        .13421E-05   -.62137E-06
  12  Prefactor     .10000E-03    5.3329        .65306E-06** at limit **
  13  norm          1.4035        1.0741       -.95657E-07   -.41062E-03
  14  norm          .62841        7.4513        .13066E-05   -.18593E-03
  15  Prefactor     13.376        17.902        .14855E-06    .52666E-05
  16  Prefactor     .10000E-03    38.042        .10406E-05** at limit **
  17  norm          24.300        19.043        .16051E-06    .66012E-05
  18  Prefactor     .10000E-03    93.455       -.83393E-07** at limit **
  19  Prefactor     23.708        18.275        .50039E-08   -.39495E-04
  20  Prefactor     .10000E-03    35.230       -.30217E-06** at limit **
  21  norm          3.5535        36.653        .42330E-06   -.22609E-05
  22  Prefactor     55.954        70.363        .88148E-06    .10729E-04
  23  Prefactor     10.027        7.3708        .62193E-07   -.65999E-04
  24  Prefactor     135.41        73.783        .29123E-06   -.20701E-04
  25  Prefactor     .10000E-03    24.175        .26311E-06** at limit **
  26  Prefactor     34.707        32.519        .75804E-06    .13616E-04
  27  Prefactor     .10000E-03    6.7530       -.18177E-06** at limit **
  28  Normalizat    .57637        .26993       -.46380E-05   -.59244E-04
  29  Prefactor     .87084        .17169        .12318E-05   -.17000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 88.7678
  Prefactor  = 0.0001
  Prefactor  = 13.091
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 39.5012
  Prefactor  = 6.98861
  Prefactor  = 15.4706
  Prefactor  = 21.0805
  Prefactor  = 0.0001
  norm       = 1.40345
  norm       = 0.62841
  Prefactor  = 13.3757
  Prefactor  = 0.0001
  norm       = 24.3
  Prefactor  = 0.0001
  Prefactor  = 23.7083
  Prefactor  = 0.0001
  norm       = 3.55353
  Prefactor  = 55.9539
  Prefactor  = 10.0266
  Prefactor  = 135.409
  Prefactor  = 0.0001
  Prefactor  = 34.7073
  Prefactor  = 0.0001
  Normalizat = 0.576371
  Prefactor  = 0.870836
 **********
 **   18 **HESSE 
 **********

 FCN=   3883.344     FROM HESSE     STATUS=OK           553 CALLS     4253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     88.768        102.09        .42641E-04   -1.3821    
   3  Prefactor     .10000E-03    32.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.091        13.203        .11071E-03   -1.4984    
   5  norm          .10000E-03    1.7177        .79589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9391        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.501        17.655        .63777E-04   -1.4450    
   9  Prefactor     6.9886        27.399        .75877E-03   -1.5179    
  10  Prefactor     15.471        18.114        .10182E-03   -1.4921    
  11  Prefactor     21.080        53.199        .87291E-04   -1.4789    
  12  Prefactor     .10000E-03    5.3524        .14052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4035        1.0583        .52921E-04   -1.5471    
  14  norm          .62841        13.079        .29199E-02   -1.5549    
  15  Prefactor     13.376        17.885        .10951E-03   -1.4976    
  16  Prefactor     .10000E-03    38.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.300        19.020        .81262E-04   -1.4722    
  18  Prefactor     .10000E-03    93.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.708        18.153        .82270E-04   -1.4734    
  20  Prefactor     .10000E-03    35.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5535        36.058        .21435E-03   -1.5331    
  22  Prefactor     55.954        70.579        .53635E-04   -1.4211    
  23  Prefactor     10.027        7.3552        .12654E-03   -1.5075    
  24  Prefactor     135.41        73.784        .34610E-04   -1.3375    
  25  Prefactor     .10000E-03    24.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.707        32.562        .68027E-04   -1.4529    
  27  Prefactor     .10000E-03    6.8404        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57637        .28737        .33874E-03   -1.0900    
  29  Prefactor     .87084        .18821        .20464E-03   -.97168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27032e-10
Minuit parameter uncertainties:
  1  2.27313e-05
  2  102.292
  3  0.000105629
  4  13.2057
  5  1.99799e-06
  6  6.27691e-06
  7  2.16376e-07
  8  17.6571
  9  27.4486
  10  18.1207
  11  53.3186
  12  2.59576e-06
  13  1.05835
  14  5.73477
  15  17.8926
  16  0.000192972
  17  19.0244
  18  1.31136e-05
  19  18.1574
  20  8.83569e-06
  21  22.6566
  22  70.6848
  23  7.35591
  24  73.8346
  25  6.64902e-05
  26  32.5785
  27  2.40301e-05
  28  0.288116
  29  0.188348
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.554e+00  2.266e+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:  8.708e-01  1.883e-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.764e-01  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34783/likelihoodResults_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.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) = 3883.26833434
delta logL = 0.0756129770839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3883.22342071
delta logL = 0.120526606725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4216       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3399       1.0000          .0000       5.0000    
     3 'Normalizat'    .57936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86875       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=   3883.223     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4217        23.499        .32641E-02   -.10798E-02
   2  alpha         1.3398        1.6223        .48958       -.10978E-04
   3  Normalizat    .57935        .22179        .76321E-01    .20915E-04
   4  Prefactor     .86879        .16356        .44605E-01    .28700E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.42166
  alpha      = 1.33977
  Normalizat = 0.579354
  Prefactor  = 0.868794
 **********
 **   18 **HESSE 
 **********

 FCN=   3883.223     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4217        21.886        .13056E-03   -1.5094    
   2  alpha         1.3398        1.5620        .45584E-02   -.48261    
   3  Normalizat    .57935        .24607        .33794E-03   -1.0887    
   4  Prefactor     .86879        .18198        .20480E-03   -.97240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08598e-09
Minuit parameter uncertainties:
  1  21.9046
  2  1.73373
  3  0.246533
  4  0.182108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34783': 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) = 3883.22342061
delta logL = 0.120526709605

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  9.422e+00  2.190e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.340e+00  1.734e+00  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:  8.688e-01  1.821e-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.794e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/34783/cmap_HighResolution_609724801_609984001_4FGL_J2335.4-0128_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-30 00:39:43.028783', job_id='34783', GAL2='0.87', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632987583.03', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.21e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1429' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:39:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 34783: <4FGL_J2335.4-0128_daily_bin1429> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1429> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:55 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:56 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:25:56 2021
Terminated at Thu Sep 30 00:39:46 2021
Results reported at Thu Sep 30 00:39:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1429 353.869 -1.476 609724801 609984001 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 :                                   579.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            831 sec.

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

