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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1465
RA = 358.931, Dec = -33.8607
tmin = 619056001, tmax = 619315201
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='197395', job_status='RUN', time_executed='2021-09-30 09:23:09.195216', time_epoch_executed='1633018989.2' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197395/ft1_4FGL_J2355.7-3351_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197395/ft1_4FGL_J2355.7-3351_daily_bin1465.fits outfile=/scratch/kocevski/197395/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1465.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=619056001.0 tmax=619315201.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.59
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.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/197395/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/197395/ltcube_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.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/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits
.....................!
real 12.29
user 11.47
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/197395/ltcube_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits outfile=/scratch/kocevski/197395/expmap_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.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/197395/ltcube_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits
.....................!
real 190.45
user 185.71
sys 4.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2355.7-3351 @ 358.931 -33.8607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits outfile=/scratch/kocevski/197395/cmap_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.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=358.931 yref=-33.8607 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits outfile=/scratch/kocevski/197395/cmap_HighResolution_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.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=358.931 yref=-33.8607 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197395/Model_4FGL_J2355.7-3351_daily_bin1465.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/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits.....................!
real 35.76
user 34.44
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits', '/scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits', expMap='/scratch/kocevski/197395/expmap_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits', expCube='/scratch/kocevski/197395/ltcube_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197395/Model_4FGL_J2355.7-3351_daily_bin1465.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2355.7-3351'

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.680e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197395/ft1_filtered_4FGL_J2355.7-3351_daily_bin1465.fits
Spacecraft file(s): /scratch/kocevski/197395/ft2_4FGL_J2355.7-3351_daily_bin1465.fits
Exposure map: /scratch/kocevski/197395/expmap_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits
Exposure cube: /scratch/kocevski/197395/ltcube_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197395/Model_4FGL_J2355.7-3351_daily_bin1465.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) = 4049.87008016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.193       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3656       1.0000         .10000E-03   10000.    
    10 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16619       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35348E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.412       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.627       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13470E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.364       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2317       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4049.862     FROM MIGRAD    STATUS=FAILED       851 CALLS     2639 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.269        .18142E-02** at limit **
   2  Prefactor     2.8678        3.6186        .12696E-03    .18008E-03
   3  Prefactor     19.655        31.076        .90348E-04    .93242E-04
   4  Prefactor     .10000E-03    15.728        .18142E-02** at limit **
   5  Prefactor     .10000E-03    13.235        .18142E-02** at limit **
   6  Prefactor     .81860        13.811        .30235E-02    .18947E-02
   7  Prefactor     64.253        40.180        .50087E-04   -.26509E-03
   8  Prefactor     10.520        10.255        .12351E-03   -.35439E-04
   9  norm          5.3802        5.6883        .14672E-03   -.25183E-05
  10  norm          .10000E-03    11.470        .18142E-02** at limit **
  11  Prefactor     .19926E-02    45.659        .10666    ** at limit **
  12  Prefactor     .10000E-03    23.495        .18142E-02** at limit **
  13  norm          .10000E-03    8.9957        .24169E-02** at limit **
  14  Prefactor     35.346        62.637        .67344E-04    .15784E-04
  15  norm          .10000E-03    1.4646        .75105E-03** at limit **
  16  Prefactor     66.786        190.59        .24585E-03    .16208E-04
  17  Prefactor     .10000E-03    38.195        .18142E-02** at limit **
  18  Prefactor     .10000E-03    10.939        .18142E-02** at limit **
  19  Prefactor     46.459        66.598        .58885E-04    .17077E-03
  20  Normalizat    1.2320        .26677        .22014E-03    .93035E-04
  21  Prefactor     .78432        .27490        .29140E-03   -.46855E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4049.862     FROM SIMPLEX   STATUS=UNCHANGED    975 CALLS     3614 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.269        .59142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8678        3.6186        .60659E-06   -1.5369    
   3  Prefactor     19.655        31.076        .58513E-06   -1.4821    
   4  Prefactor     .10000E-03    15.728        .23578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.235        .48756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .81860        13.811        .63051E-06   -1.5527    
   7  Prefactor     64.253        40.180        .56999E-06   -1.4103    
   8  Prefactor     10.520        10.255        .60480E-06   -1.5059    
   9  norm          5.3802        5.6883        .60819E-06   -1.5244    
  10  norm          .10000E-03    11.470        .50824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19926E-02    45.659        .13548E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.495        .61671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9957        .12860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.346        62.637        .57191E-06   -1.4518    
  15  norm          .10000E-03    1.4646        .15682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.786        190.59        .56034E-06   -1.4072    
  17  Prefactor     .10000E-03    38.195        .62289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.939        .58500E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.459        66.598        .56813E-06   -1.4344    
  20  Normalizat    1.2320        .26677        .33992E-06   -.85620    
  21  Prefactor     .78432        .27490        .39647E-06   -1.0031    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4049.862     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     3924 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.270        .36285E-03** at limit **
   2  Prefactor     2.8678        3.6183        .50783E-05   -.22387E-06
   3  Prefactor     19.655        31.074        .36139E-05   -.31458E-06
   4  Prefactor     .10000E-03    15.730        .36285E-03** at limit **
   5  Prefactor     .10000E-03    13.235        .36285E-03** at limit **
   6  Prefactor     .81861        13.570        .60470E-03    .74980E-04
   7  Prefactor     64.254        39.845        .10017E-04   -.11349E-05
   8  Prefactor     10.520        10.255        .49403E-05   -.18410E-06
   9  norm          5.3802        5.6792        .58687E-05   -.26152E-04
  10  norm          .10000E-03    11.478        .36285E-03** at limit **
  11  Prefactor     .19923E-02    42.736        .11131    ** at limit **
  12  Prefactor     .10000E-03    23.495        .36285E-03** at limit **
  13  norm          .10000E-03    9.0100        .48339E-03** at limit **
  14  Prefactor     35.346        62.621        .26938E-05     .0000    
  15  norm          .10000E-03    1.4647        .15021E-03** at limit **
  16  Prefactor     66.786        190.54        .98340E-05   -.23121E-07
  17  Prefactor     .10000E-03    38.196        .36285E-03** at limit **
  18  Prefactor     .10000E-03    10.945        .36285E-03** at limit **
  19  Prefactor     46.458        66.587        .11777E-04   -.86879E-06
  20  Normalizat    1.2320        .26697        .44028E-04   -.19624E-05
  21  Prefactor     .78432        .27518        .11656E-04   -.17556E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.86776
  Prefactor  = 19.6551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.818611
  Prefactor  = 64.2538
  Prefactor  = 10.5197
  norm       = 5.38021
  norm       = 0.0001
  Prefactor  = 0.00199227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.3462
  norm       = 0.0001
  Prefactor  = 66.7858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.458
  Normalizat = 1.23199
  Prefactor  = 0.784319
 **********
 **   18 **HESSE 
 **********

 FCN=   4049.862     FROM HESSE     STATUS=OK           307 CALLS     4231 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.270        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8678        3.6200        .10157E-05   -1.5369    
   3  Prefactor     19.655        31.183        .72278E-06   -1.4821    
   4  Prefactor     .10000E-03    15.731        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.235        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .81861        13.516        .12094E-03   -1.5527    
   7  Prefactor     64.254        39.780        .20035E-05   -1.4103    
   8  Prefactor     10.520        10.255        .49403E-05   -1.5059    
   9  norm          5.3802        5.6793        .11737E-05   -1.5244    
  10  norm          .10000E-03    11.479        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19923E-02    43.635        .10980       -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.495        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.0105        .96677E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.346        62.624        .26938E-05   -1.4518    
  15  norm          .10000E-03    1.4647        .30042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.786        190.53        .98340E-05   -1.4072    
  17  Prefactor     .10000E-03    38.196        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.945        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.458        66.604        .23554E-05   -1.4344    
  20  Normalizat    1.2320        .26702        .88056E-05   -.85620    
  21  Prefactor     .78432        .27520        .23312E-05   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33726e-12
Minuit parameter uncertainties:
  1  7.6053e-08
  2  3.62029
  3  31.2086
  4  5.84233e-07
  5  8.36225e-07
  6  6.6539
  7  39.7966
  8  10.2567
  9  5.67983
  10  1.39782e-07
  11  0.575114
  12  5.38468e-07
  13  8.98268e-08
  14  62.7408
  15  8.42804e-10
  16  192.312
  17  3.02876e-06
  18  6.07871e-06
  19  66.7113
  20  0.26732
  21  0.275686
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  6.079e-06  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.843e-01  2.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.232e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197395/likelihoodResults_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.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) = 4049.86260626
delta logL = -0.000435857072716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4049.8621702
delta logL = 2.01017428481e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    1.2319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   4049.862     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      291 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    16.093        .36285E-03** at limit **
   2  Index         2.6833        6.3409        .50000       -.47232E-04
   3  Normalizat    1.2320        .24950        .22014E-03   -.34705E-04
   4  Prefactor     .78432        .27064        .29141E-03   -.15586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Index      = 2.68326
  Normalizat = 1.23199
  Prefactor  = 0.784319
 **********
 **   18 **HESSE 
 **********

 FCN=   4049.862     FROM HESSE     STATUS=OK            29 CALLS      320 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    14.294        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6833        6.3323        .50000       -.48177    
   3  Normalizat    1.2320        .24977        .88054E-05   -.85620    
   4  Prefactor     .78432        .27094        .11656E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24038e-09
Minuit parameter uncertainties:
  1  0.00138172
  2  4.44299
  3  0.250018
  4  0.271399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197395': 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) = 4049.86216934
delta logL = 1.06997185867e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.382e-03  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.683e+00  4.443e+00  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.843e-01  2.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.232e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.931 -33.861

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/197395/cmap_HighResolution_619056001_619315201_4FGL_J2355.7-3351_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-30 09:33:17.899942', job_id='197395', GAL2='0.78', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1633019597.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1465' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:33:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 197395: <4FGL_J2355.7-3351_daily_bin1465> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1465> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 09:20:28 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:20:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 09:20:30 2021
Terminated at Thu Sep 30 09:33:18 2021
Results reported at Thu Sep 30 09:33:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1465 358.931 -33.8607 619056001 619315201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2355.7-3351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

