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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1461
RA = 353.869, Dec = -1.476
tmin = 618019201, tmax = 618278401
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='35419', job_status='RUN', time_executed='2021-09-30 00:32:36.913592', time_epoch_executed='1632987156.91' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35419/ft1_4FGL_J2335.4-0128_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35419/ft1_4FGL_J2335.4-0128_daily_bin1461.fits outfile=/scratch/kocevski/35419/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1461.fits ra=353.869 dec=-1.476 rad=12.0 tmin=618019201.0 tmax=618278401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.13
user 4.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/35419/ltcube_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.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/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits
.....................!
real 11.91
user 11.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/35419/ltcube_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.fits outfile=/scratch/kocevski/35419/expmap_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.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/35419/ltcube_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.fits
.....................!
real 191.58
user 187.23
sys 4.03

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/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits scfile=/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits outfile=/scratch/kocevski/35419/cmap_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits scfile=/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits outfile=/scratch/kocevski/35419/cmap_HighResolution_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.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/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/35419/ft2_4FGL_J2335.4-0128_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35419/Model_4FGL_J2335.4-0128_daily_bin1461.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/35419/ft1_filtered_4FGL_J2335.4-0128_daily_bin1461.fits.....................!
real 50.82
user 49.54
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5737       1.0000         .10000E-03   10000.    
     8 'norm      '    192.75       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0767       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    139.92       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.048       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    152.82       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13229E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0257       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87442       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79886       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=   4922.943     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3711 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.180        12.681       -.21493E-06    .38735E-04
   2  Prefactor     .10000E-03    28.669       -.51263E-06** at limit **
   3  Prefactor     13.082        21.664        .50133E-06    .14888E-04
   4  Prefactor     .10000E-03    5.1110       -.23084E-07** at limit **
   5  norm          4.3592        4.1995        .22774E-07    .38866E-04
   6  Prefactor     .10000E-03    11.522       -.82362E-07** at limit **
   7  norm          3.5732        4.3564        .11482E-06    .28434E-04
   8  norm          192.74        31.080        .27441E-07    .48837E-04
   9  Prefactor     32.678        39.072        .12487E-05    .81240E-05
  10  Prefactor     .10000E-03    12.340        .31150E-06** at limit **
  11  Prefactor     1.2573        648.23       -.84015E-06    .17118E-05
  12  Prefactor     .10000E-03    6.0802        .22969E-07** at limit **
  13  norm          1.0769        1.1159       -.21568E-06    .27353E-03
  14  norm          .10000E-03    2.2032       -.50255E-07** at limit **
  15  Prefactor     .94650        16.395        .10265E-05    .45547E-05
  16  Prefactor     .10000E-03    40.913       -.60427E-06** at limit **
  17  norm          5.7483        9.6967        .79353E-06    .19118E-04
  18  Prefactor     139.48        236.71        .26051E-04    .52501E-04
  19  Prefactor     7.0448        13.096       -.13953E-05    .28747E-03
  20  Prefactor     34.018        37.341       -.44953E-07    .39991E-05
  21  norm          .10000E-03    13.045       -.20279E-06** at limit **
  22  Prefactor     152.77        97.868        .19498E-05    .55080E-04
  23  Prefactor     .10013E-03    2.8021       -.13999E-05** at limit **
  24  Prefactor     .10000E-03    27.540       -.81511E-06** at limit **
  25  Prefactor     .10000E-03    33.627        .12802E-05** at limit **
  26  Prefactor     19.511        18.375       -.33715E-07    .73665E-04
  27  Prefactor     2.0239        10.565        .51901E-05    .57646E-04
  28  Normalizat    .87484        .24809       -.14559E-05    .20157E-03
  29  Prefactor     .79863        .15999        .26732E-06    .16104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1799
  Prefactor  = 0.0001
  Prefactor  = 13.082
  Prefactor  = 0.0001
  norm       = 4.3592
  Prefactor  = 0.0001
  norm       = 3.5732
  norm       = 192.741
  Prefactor  = 32.6785
  Prefactor  = 0.0001
  Prefactor  = 1.25727
  Prefactor  = 0.0001
  norm       = 1.07692
  norm       = 0.0001
  Prefactor  = 0.946501
  Prefactor  = 0.0001
  norm       = 5.74827
  Prefactor  = 139.477
  Prefactor  = 7.0448
  Prefactor  = 34.0185
  norm       = 0.0001
  Prefactor  = 152.768
  Prefactor  = 0.000100131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5113
  Prefactor  = 2.02391
  Normalizat = 0.874842
  Prefactor  = 0.798628
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.943     FROM HESSE     STATUS=OK           559 CALLS     4270 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.180        12.702        .99564E-04   -1.4903    
   2  Prefactor     .10000E-03    28.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.082        21.602        .11074E-03   -1.4984    
   4  Prefactor     .10000E-03    5.1325        .15456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3592        4.1890        .11494E-03   -1.5290    
   6  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5732        4.3351        .15434E-03   -1.5330    
   8  norm          192.74        31.078        .29093E-04   -1.2922    
   9  Prefactor     32.678        39.071        .70093E-04   -1.4564    
  10  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2573        652.36        .35325E-03   -1.5484    
  12  Prefactor     .10000E-03    6.0823        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0769        1.0768        .70382E-03   -1.5500    
  14  norm          .10000E-03    2.2052        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .94650        16.136        .52002E-03   -1.5513    
  16  Prefactor     .10000E-03    40.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7483        9.5849        .83762E-03   -1.5228    
  18  Prefactor     139.48        237.02        .17028E-03   -1.3340    
  19  Prefactor     7.0448        12.702        .15100E-03   -1.5177    
  20  Prefactor     34.018        37.254        .68676E-04   -1.4541    
  21  norm          .10000E-03    13.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     152.77        98.084        .16304E-03   -1.3230    
  23  Prefactor     .10013E-03    22.591        .20879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    33.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.511        18.414        .90651E-04   -1.4824    
  27  Prefactor     2.0239        10.650        .14535E-02   -1.5423    
  28  Normalizat    .87484        .28942        .30583E-03   -.97350    
  29  Prefactor     .79863        .18784        .22675E-03   -.99779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6809e-09
Minuit parameter uncertainties:
  1  12.7044
  2  1.24015e-05
  3  21.6152
  4  2.37646e-06
  5  4.18931
  6  3.96457e-06
  7  4.33551
  8  31.0808
  9  39.1016
  10  1.97077e-06
  11  57.9215
  12  4.40182e-07
  13  1.07685
  14  1.91979e-06
  15  7.81821
  16  1.41469e-05
  17  9.58744
  18  238.668
  19  12.7068
  20  37.2798
  21  1.05228e-05
  22  98.1889
  23  0.00344446
  24  6.46777e-06
  25  2.11452e-05
  26  18.4193
  27  9.28785
  28  0.289939
  29  0.187991
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.052e-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:  7.986e-01  1.880e-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.748e-01  2.899e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35419/likelihoodResults_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.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) = 4922.94321132
delta logL = -0.000364890897799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4922.94284641
delta logL = 1.34241417982e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4943       1.0000          .0000       5.0000    
     3 'Normalizat'    .87484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79863       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=   4922.943     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      237 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    617.91        .18142E-01** at limit **
   2  alpha         1.7991        3.0388        .16461        .60778E-08
   3  Normalizat    .87484        .37609E-01    .30583E-03    .49738E-04
   4  Prefactor     .79863        .26942E-01    .22675E-03    .73300E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.79912
  Normalizat = 0.87484
  Prefactor  = 0.798629
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.943     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.440        .26803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7991        3.3967        .65843E-02   -.28416    
   3  Normalizat    .87484        .25744        .12233E-04   -.97350    
   4  Prefactor     .79863        .18452        .90701E-05   -.99779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27039e-10
Minuit parameter uncertainties:
  1  0.00045799
  2  636.203
  3  0.257798
  4  0.184666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35419': 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) = 4922.94284585
delta logL = 5.74423211219e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.580e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.799e+00  6.362e+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:  7.986e-01  1.847e-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.748e-01  2.578e-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/35419/cmap_HighResolution_618019201_618278401_4FGL_J2335.4-0128_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-30 00:43:50.866108', job_id='35419', GAL2='0.80', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632987830.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1461' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:43:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 35419: <4FGL_J2335.4-0128_daily_bin1461> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1461> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:18 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:20 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:30:20 2021
Terminated at Thu Sep 30 00:43:51 2021
Results reported at Thu Sep 30 00:43:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1461 353.869 -1.476 618019201 618278401 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 :                                   669.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

