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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1547
RA = 359.817, Dec = -31.5832
tmin = 640310401, tmax = 640569601
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='250498', job_status='RUN', time_executed='2021-09-30 12:21:30.191708', time_epoch_executed='1633029690.19' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250498/ft1_4FGL_J2359.2-3134_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250498/ft1_4FGL_J2359.2-3134_daily_bin1547.fits outfile=/scratch/kocevski/250498/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1547.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=640310401.0 tmax=640569601.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.01
user 4.77
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.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/250498/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/250498/ltcube_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.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/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits
.....................!
real 11.59
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/250498/ltcube_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits outfile=/scratch/kocevski/250498/expmap_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.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/250498/ltcube_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits
.....................!
real 191.26
user 186.06
sys 4.89

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

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits outfile=/scratch/kocevski/250498/cmap_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.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=359.817 yref=-31.5832 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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits outfile=/scratch/kocevski/250498/cmap_HighResolution_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.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=359.817 yref=-31.5832 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/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250498/Model_4FGL_J2359.2-3134_daily_bin1547.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/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits.....................!
real 43.62
user 42.39
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits', '/scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits', expMap='/scratch/kocevski/250498/expmap_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits', expCube='/scratch/kocevski/250498/ltcube_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250498/Model_4FGL_J2359.2-3134_daily_bin1547.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.2-3134'

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250498/ft1_filtered_4FGL_J2359.2-3134_daily_bin1547.fits
Spacecraft file(s): /scratch/kocevski/250498/ft2_4FGL_J2359.2-3134_daily_bin1547.fits
Exposure map: /scratch/kocevski/250498/expmap_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits
Exposure cube: /scratch/kocevski/250498/ltcube_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250498/Model_4FGL_J2359.2-3134_daily_bin1547.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) = 5445.3651204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.632       1.0000         .10000E-03   10000.    
     7 'norm      '    53.448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.346       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1067       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.394       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    103.03       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96637E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5445.344     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2351 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.579        60.591        .11976E-05    .55415E-04
   2  Prefactor     2.5576        4.2826        .66547E-06    .47942E-03
   3  Prefactor     .10000E-03    47.309       -.10343E-05** at limit **
   4  Prefactor     .10000E-03    6.5003       -.42065E-06** at limit **
   5  Prefactor     .10000E-03    12.555        .14162E-06** at limit **
   6  Prefactor     30.645        29.274        .32202E-06    .26300E-04
   7  norm          53.450        12.076        .11035E-06    .29451E-04
   8  Prefactor     .10000E-03    3.0886       -.24930E-06** at limit **
   9  norm          .10000E-03    1.5402       -.61264E-07** at limit **
  10  norm          15.694        9.4458        .14349E-06    .16033E-03
  11  Prefactor     .10000E-03    16.412       -.19907E-06** at limit **
  12  Prefactor     28.390        52.490        .27559E-05    .83598E-04
  13  norm          2.1069        2.5213        .25888E-07    .73058E-04
  14  norm          1.4542        3.0959        .82386E-06    .38935E-03
  15  Prefactor     29.398        27.786       -.36923E-07    .27872E-04
  16  norm          .10000E-03    1.1315       -.10365E-06** at limit **
  17  Prefactor     22.652        75.163       -.24241E-06    .22481E-04
  18  Prefactor     102.98        69.068        .36501E-06    .12004E-03
  19  Prefactor     .10006E-03    4.0658       -.15572E-05** at limit **
  20  Prefactor     12.912        52.496        .53962E-05    .15012E-03
  21  Normalizat    1.1910        .22531       -.52543E-05    .64177E-03
  22  Prefactor     .72137        .23160        .74202E-05    .32231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.5793
  Prefactor  = 2.55762
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6451
  norm       = 53.4504
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.6941
  Prefactor  = 0.0001
  Prefactor  = 28.3897
  norm       = 2.10692
  norm       = 1.45422
  Prefactor  = 29.398
  norm       = 0.0001
  Prefactor  = 22.6519
  Prefactor  = 102.981
  Prefactor  = 0.000100058
  Prefactor  = 12.9117
  Normalizat = 1.19099
  Prefactor  = 0.72137
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.344     FROM HESSE     STATUS=OK           342 CALLS     2693 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.579        60.574        .51149E-04   -1.4137    
   2  Prefactor     2.5576        4.2152        .17488E-03   -1.5388    
   3  Prefactor     .10000E-03    48.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.645        29.263        .72393E-04   -1.4600    
   7  norm          53.450        12.072        .54863E-04   -1.4244    
   8  Prefactor     .10000E-03    3.1027        .12669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5411        .89440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.694        9.4408        .10111E-03   -1.4915    
  11  Prefactor     .10000E-03    16.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.390        52.449        .75249E-04   -1.4642    
  13  norm          2.1069        2.5147        .12449E-03   -1.5418    
  14  norm          1.4542        3.0793        .17914E-03   -1.5467    
  15  Prefactor     29.398        27.637        .73898E-04   -1.4623    
  16  norm          .10000E-03    1.1351        .76661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.652        74.916        .42257E-03   -1.4756    
  18  Prefactor     102.98        69.000        .19806E-03   -1.3675    
  19  Prefactor     .10006E-03    20.341        .25632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.912        51.018        .11147E-03   -1.4989    
  21  Normalizat    1.1910        .22617        .21623E-03   -.86882    
  22  Prefactor     .72137        .23406        .30028E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42882e-09
Minuit parameter uncertainties:
  1  60.6351
  2  4.21569
  3  0.00040308
  4  3.04434e-05
  5  1.27573e-05
  6  29.2769
  7  12.0728
  8  1.0122e-05
  9  2.14007e-06
  10  9.44166
  11  1.51911e-05
  12  52.5343
  13  2.51482
  14  3.07967
  15  27.6489
  16  2.66734e-06
  17  75.2295
  18  69.0538
  19  0.00216473
  20  51.1912
  21  0.226357
  22  0.234384
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.291e+01  5.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  7.214e-01  2.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.191e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250498/likelihoodResults_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.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) = 5444.77003561
delta logL = 0.57407874943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5444.75405051
delta logL = 0.590063849136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56500E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.2966       1.0000          .0000       10.000    
     3 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5444.754     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      358 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53385E-02    .92092E-01    .95145E-03    .17789E-01
   2  Index         8.3306        7.4260        .23905        .11907E-03
   3  Normalizat    1.1306        .38504E-01    .36883E-01   -.15633E-03
   4  Prefactor     .77184        .42913E-01    .65861E-01   -.97700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00533851
  Index      = 8.33059
  Normalizat = 1.1306
  Prefactor  = 0.771843
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.754     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      391 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53385E-02    .27129        .53403E-04   -1.5693    
   2  Index         8.3306        9.1282        .91339E-02    .72899    
   3  Normalizat    1.1306        .14795        .22100E-03   -.88775    
   4  Prefactor     .77184        .16212        .29137E-03   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77601e-10
Minuit parameter uncertainties:
  1  0.0753974
  2  7.93312
  3  0.148007
  4  0.162223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250498': 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): 102
logL (Free Index) = 5444.75403041
delta logL = 0.590083954398

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  5.339e-03  7.540e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  8.331e+00  7.933e+00  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  7.718e-01  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.131e+00  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 8.33 +/- 7.93
Photon Flux (Free Index): 5.20e-08 +/- 4.85e-08
Energy Flux (Free Index): 5.99e-06 +/- 5.88e-06

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/250498/cmap_HighResolution_640310401_640569601_4FGL_J2359.2-3134_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', energy_flux2='5.99e-06', dlogl='5.90e-01', photon_flux2='5.20e-08', job_status='DONE', time_completed='2021-09-30 12:32:52.101757', photon_index_error2='7.93', photon_index2='8.33', ts='0.08', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='5.88e-06', EG='1.19', time_epoch_completed='1633030372.1', return_code='0', job_id='250498', GAL2='0.77', EG2='1.13', return_code2='102', photon_flux_error2='4.85e-08', ts2='1.35', photon_index='2.60' WHERE bin_id='1547' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 250498: <4FGL_J2359.2-3134_daily_bin1547> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1547> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:53 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 12:20:55 2021
Terminated at Thu Sep 30 12:32:52 2021
Results reported at Thu Sep 30 12:32:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1547 359.817 -31.5832 640310401 640569601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.2-3134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   624.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

