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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1291
RA = 359.817, Dec = -31.5832
tmin = 573955201, tmax = 574214401
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='250118', job_status='RUN', time_executed='2021-09-30 12:22:16.100052', time_epoch_executed='1633029736.1' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250118/ft1_4FGL_J2359.2-3134_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250118/ft1_4FGL_J2359.2-3134_daily_bin1291.fits outfile=/scratch/kocevski/250118/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1291.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=573955201.0 tmax=574214401.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.63
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/250118/ltcube_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.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/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/250118/ltcube_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits outfile=/scratch/kocevski/250118/expmap_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.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/250118/ltcube_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits
.....................!
real 191.04
user 185.64
sys 5.06

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/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits scfile=/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits outfile=/scratch/kocevski/250118/cmap_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits scfile=/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits outfile=/scratch/kocevski/250118/cmap_HighResolution_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250118/Model_4FGL_J2359.2-3134_daily_bin1291.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/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits.....................!
real 38.56
user 37.26
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits', '/scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits', expMap='/scratch/kocevski/250118/expmap_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits', expCube='/scratch/kocevski/250118/ltcube_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250118/Model_4FGL_J2359.2-3134_daily_bin1291.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/250118/ft1_filtered_4FGL_J2359.2-3134_daily_bin1291.fits
Spacecraft file(s): /scratch/kocevski/250118/ft2_4FGL_J2359.2-3134_daily_bin1291.fits
Exposure map: /scratch/kocevski/250118/expmap_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits
Exposure cube: /scratch/kocevski/250118/ltcube_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250118/Model_4FGL_J2359.2-3134_daily_bin1291.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) = 4642.95860357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3186       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.411       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .80896       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1485       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.950       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9578       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1511       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78462       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=   4642.957     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2311 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.407        72.556       -.33641E-04    .45170E-06
   2  Prefactor     5.3177        4.2973       -.28544E-06    .31777E-04
   3  Prefactor     .10000E-03    27.288       -.50861E-05** at limit **
   4  Prefactor     .10000E-03    10.817       -.43338E-05** at limit **
   5  Prefactor     .10000E-03    21.956        .34009E-05** at limit **
   6  Prefactor     37.414        31.418        .25443E-05   -.15852E-04
   7  norm          2.6485        4.0499        .11623E-05   -.24156E-03
   8  Prefactor     .10000E-03    10.868        .42351E-05** at limit **
   9  norm          .80860        4.9630       -.34792E-05   -.99425E-03
  10  norm          .10000E-03    5.3703       -.76800E-07** at limit **
  11  Prefactor     .10000E-03    55.290        .28808E-05** at limit **
  12  Prefactor     .10000E-03    31.642        .86054E-05** at limit **
  13  norm          7.1457        5.4772        .14197E-05   -.70922E-04
  14  norm          .10000E-03    1.7611        .35843E-08** at limit **
  15  Prefactor     31.949        36.788       -.65590E-06    .61440E-05
  16  norm          3.2706        4.1538       -.41464E-06   -.21642E-03
  17  Prefactor     .10000E-03    57.268       -.62528E-05** at limit **
  18  Prefactor     69.367        69.575       -.49790E-05    .14017E-04
  19  Prefactor     7.9577        7.0324       -.66146E-07   -.56520E-04
  20  Prefactor     .10000E-03    23.762       -.48109E-05** at limit **
  21  Normalizat    1.1510        .19608        .18863E-05   -.44301E-04
  22  Prefactor     .78477        .21313        .67146E-06    .36396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4066
  Prefactor  = 5.31773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4137
  norm       = 2.64851
  Prefactor  = 0.0001
  norm       = 0.8086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.14566
  norm       = 0.0001
  Prefactor  = 31.9494
  norm       = 3.27062
  Prefactor  = 0.0001
  Prefactor  = 69.3673
  Prefactor  = 7.95769
  Prefactor  = 0.0001
  Normalizat = 1.15097
  Prefactor  = 0.784775
 **********
 **   18 **HESSE 
 **********

 FCN=   4642.957     FROM HESSE     STATUS=OK           340 CALLS     2651 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.407        71.756        .63040E-04   -1.4436    
   2  Prefactor     5.3177        4.2954        .12061E-03   -1.5247    
   3  Prefactor     .10000E-03    27.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.414        31.407        .65526E-04   -1.4484    
   7  norm          2.6485        4.0243        .16426E-03   -1.5382    
   8  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .80860        5.0905        .28384E-03   -1.5528    
  10  norm          .10000E-03    5.4040        .15420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    55.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1457        5.4945        .12279E-03   -1.5173    
  14  norm          .10000E-03    1.7712        .88234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.949        36.778        .70888E-04   -1.4577    
  16  norm          3.2706        4.1453        .14716E-03   -1.5346    
  17  Prefactor     .10000E-03    57.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.367        69.535        .48194E-04   -1.4040    
  19  Prefactor     7.9577        7.0484        .14214E-03   -1.5144    
  20  Prefactor     .10000E-03    23.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1510        .23283        .21511E-03   -.88132    
  22  Prefactor     .78477        .25207        .28444E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13423e-09
Minuit parameter uncertainties:
  1  71.9103
  2  4.2957
  3  1.93691e-05
  4  2.38113e-05
  5  2.09325e-05
  6  31.4212
  7  4.02474
  8  8.24669e-05
  9  4.05794
  10  1.42525e-05
  11  0.000169445
  12  3.84382e-05
  13  5.49488
  14  1.91379e-06
  15  36.8038
  16  4.14568
  17  1.12121e-05
  18  69.6165
  19  7.04911
  20  2.53111e-05
  21  0.233036
  22  0.252442
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  2.531e-05  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.848e-01  2.524e-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.151e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250118/likelihoodResults_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.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) = 4642.95698976
delta logL = -0.000200524312277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4642.95678976
delta logL = -5.26923940924e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4187       1.0000          .0000       10.000    
     3 'Normalizat'    1.1510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78478       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4642.957     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    11.643        .18142E-01** at limit **
   2  Index         3.3260        5.6919        .50000        .63374E-05
   3  Normalizat    1.1510        .35218E-02    .21511E-03    .26478E-04
   4  Prefactor     .78477        .39360E-02    .28444E-03    .76340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102151
  Index      = 3.32596
  Normalizat = 1.15097
  Prefactor  = 0.784773
 **********
 **   18 **HESSE 
 **********

 FCN=   4642.957     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10215E-03    155.35        .29606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3260        5.8621        .50000       -.34140    
   3  Normalizat    1.1510        .12857E-01    .86045E-05   -.88132    
   4  Prefactor     .78477        .14369E-01    .11378E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20181e-09
Minuit parameter uncertainties:
  1  0.0366549
  2  690.536
  3  0.0128571
  4  0.0143688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250118': 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) = 4642.95678966
delta logL = -4.22764969699e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.022e-04  3.665e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.326e+00  6.905e+02  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.848e-01  1.437e-02  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.151e+00  1.286e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.817 -31.583

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/250118/cmap_HighResolution_573955201_574214401_4FGL_J2359.2-3134_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-30 12:32:57.634418', job_id='250118', GAL2='0.78', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1633030377.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-4.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1291' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 250118: <4FGL_J2359.2-3134_daily_bin1291> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1291> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:21 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:23 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:23 2021
Terminated at Thu Sep 30 12:32:58 2021
Results reported at Thu Sep 30 12:32:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1291 359.817 -31.5832 573955201 574214401 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 :                                   558.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

