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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1545
RA = 359.817, Dec = -31.5832
tmin = 639792001, tmax = 640051201
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='250496', job_status='RUN', time_executed='2021-09-30 12:21:39.790555', time_epoch_executed='1633029699.79' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250496/ft1_4FGL_J2359.2-3134_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250496/ft1_4FGL_J2359.2-3134_daily_bin1545.fits outfile=/scratch/kocevski/250496/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1545.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=639792001.0 tmax=640051201.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.54
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.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/250496/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/250496/ltcube_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.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/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/250496/ltcube_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.fits outfile=/scratch/kocevski/250496/expmap_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.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/250496/ltcube_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.fits
.....................!
real 190.75
user 185.24
sys 5.19

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/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits outfile=/scratch/kocevski/250496/cmap_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits outfile=/scratch/kocevski/250496/cmap_HighResolution_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.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/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/250496/ft2_4FGL_J2359.2-3134_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250496/Model_4FGL_J2359.2-3134_daily_bin1545.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/250496/ft1_filtered_4FGL_J2359.2-3134_daily_bin1545.fits....................!
real 46.45
user 45.19
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15697E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0933       1.0000         .10000E-03   10000.    
     9 'norm      '    .34322       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8357       1.0000         .10000E-03   10000.    
    16 'norm      '    .13088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    105.54       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19024E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .40026       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5987.300     FROM MIGRAD    STATUS=FAILED       881 CALLS     2836 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.890        33.441        .69864E-04    .12237E-04
   2  Prefactor     2.7456        2.4687        .10729E-03   -.15757E-03
   3  Prefactor     .47717        63.912        .44520E-02    .11371E-02
   4  Prefactor     6.2433        10.980        .80331E-03   -.10161E-03
   5  Prefactor     .10000E-03    19.551        .18142E-02** at limit **
   6  Prefactor     .10001E-03    222.19        .36285E-02** at limit **
   7  norm          37.660        9.1090        .65310E-04    .72171E-04
   8  Prefactor     2.0934        5.4919        .28421E-03   -.12884E-03
   9  norm          .33879        4.0143        .29832E-03   -.42034E-04
  10  norm          1.5394        4.3570        .26524E-03   -.33433E-05
  11  Prefactor     .10000E-03    13.667        .18142E-02** at limit **
  12  Prefactor     .10000E-03    50.361        .18142E-02** at limit **
  13  norm          .10000E-03    2.8647        .18124E-02** at limit **
  14  norm          .10000E-03    .85127        .69564E-03** at limit **
  15  Prefactor     3.8487        43.517        .20607E-03    .23668E-04
  16  norm          .10000E-03    5.9475        .22900E-02** at limit **
  17  Prefactor     105.54        87.753        .39144E-04   -.13069E-04
  18  Prefactor     .10000E-03    8.5732        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.8829        .38162E-01** at limit **
  20  Prefactor     .10000E-03    13.243        .18142E-02** at limit **
  21  Normalizat    1.3400        .17801        .18159E-03   -.41014E-03
  22  Prefactor     .40028        .18873        .34454E-03   -.16835E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5987.300     FROM SIMPLEX   STATUS=UNCHANGED    945 CALLS     3781 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.890        33.441        .97989E-06   -1.4560    
   2  Prefactor     2.7456        2.4687        .30201E-06   -1.5377    
   3  Prefactor     .47717        63.912        .15525E-04   -1.5570    
   4  Prefactor     6.2433        10.980        .79040E-06   -1.5208    
   5  Prefactor     .10000E-03    19.551        .57762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    222.19        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.660        9.1090        .19121E-06   -1.4480    
   8  Prefactor     2.0934        5.4919        .20906E-06   -1.5419    
   9  norm          .33879        4.0143        .22194E-06   -1.5592    
  10  norm          1.5394        4.3570        .21289E-06   -1.5460    
  11  Prefactor     .10000E-03    13.667        .62380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.361        .66766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8647        .16758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .85127        .13761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8487        43.517        .20704E-06   -1.5316    
  16  norm          .10000E-03    5.9475        .14896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     105.54        87.753        .18167E-06   -1.3650    
  18  Prefactor     .10000E-03    8.5732        .47582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8829        .30807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.243        .56968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3400        .17801        .10823E-06   -.82382    
  22  Prefactor     .40028        .18873        .15334E-06   -1.1679    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5987.300     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     4118 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.890        33.440        .13973E-04    .48818E-06
   2  Prefactor     2.7456        2.4526        .42915E-05    .74175E-05
   3  Prefactor     .47716        64.009        .89040E-03    .44742E-04
   4  Prefactor     6.2433        10.977        .32133E-04    .21228E-06
   5  Prefactor     .10000E-03    19.556        .36285E-03** at limit **
   6  Prefactor     .10000E-03    223.87        .72569E-03** at limit **
   7  norm          37.660        9.1087        .13062E-04    .17407E-06
   8  Prefactor     2.0935        5.4913        .11368E-04    .10000E-05
   9  norm          .33880        3.9987        .11933E-04   -.60974E-05
  10  norm          1.5394        4.3566        .10609E-04    .42863E-06
  11  Prefactor     .10000E-03    13.668        .36285E-03** at limit **
  12  Prefactor     .10000E-03    50.377        .36285E-03** at limit **
  13  norm          .10000E-03    2.8655        .36249E-03** at limit **
  14  norm          .10000E-03    .85129        .13913E-03** at limit **
  15  Prefactor     3.8486        43.487        .82428E-05    .55169E-07
  16  norm          .10000E-03    5.9942        .45801E-03** at limit **
  17  Prefactor     105.54        87.742        .78288E-05    .29043E-06
  18  Prefactor     .10000E-03    8.5733        .36285E-03** at limit **
  19  Prefactor     .10000E-03    3.3125        .42905E-01** at limit **
  20  Prefactor     .10000E-03    13.244        .36285E-03** at limit **
  21  Normalizat    1.3400        .17814        .36318E-04    .12772E-04
  22  Prefactor     .40028        .18880        .13782E-04    .52794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8899
  Prefactor  = 2.74562
  Prefactor  = 0.477157
  Prefactor  = 6.24331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.6601
  Prefactor  = 2.09346
  norm       = 0.338796
  norm       = 1.5394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.84856
  norm       = 0.0001
  Prefactor  = 105.54
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33995
  Prefactor  = 0.400281
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.300     FROM HESSE     STATUS=OK           332 CALLS     4450 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.890        33.444        .27946E-05   -1.4560    
   2  Prefactor     2.7456        2.4490        .85830E-06   -1.5377    
   3  Prefactor     .47716        63.843        .17808E-03   -1.5570    
   4  Prefactor     6.2433        10.977        .64265E-05   -1.5208    
   5  Prefactor     .10000E-03    19.556        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    223.94        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.660        9.1087        .26124E-05   -1.4480    
   8  Prefactor     2.0935        5.4902        .22737E-05   -1.5419    
   9  norm          .33880        3.9984        .23866E-05   -1.5592    
  10  norm          1.5394        4.3564        .21219E-05   -1.5460    
  11  Prefactor     .10000E-03    13.668        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8655        .72497E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .85129        .27826E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8486        43.485        .82428E-05   -1.5316    
  16  norm          .10000E-03    5.9961        .91602E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     105.54        87.568        .15658E-05   -1.3650    
  18  Prefactor     .10000E-03    8.5733        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4417        .41688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.244        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3400        .17811        .72636E-05   -.82382    
  22  Prefactor     .40028        .18883        .27564E-05   -1.1679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69909e-13
Minuit parameter uncertainties:
  1  33.4627
  2  2.44905
  3  11.0496
  4  10.9809
  5  5.18429e-07
  6  7.47119e-05
  7  9.10904
  8  5.49148
  9  2.32762
  10  4.35731
  11  4.93352e-07
  12  4.86771e-06
  13  9.10642e-07
  14  1.00449e-08
  15  25.8966
  16  2.42229e-06
  17  87.6757
  18  1.12566e-07
  19  7.11021e-05
  20  5.32336e-07
  21  0.178189
  22  0.189119
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  5.323e-07  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:  4.003e-01  1.891e-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.340e+00  1.782e-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: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250496/likelihoodResults_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.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) = 5987.30009071
delta logL = -0.000359466658665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5987.29973122
delta logL = 2.60515662376e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5886       1.0000          .0000       10.000    
     3 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40028       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=   5987.300     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      248 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10220E-03    230.80        .18142E-02** at limit **
   2  Index         2.4948        5.2238        .50000        .80758E-05
   3  Normalizat    1.3400        .15034E-01    .18159E-03   -.22413E-04
   4  Prefactor     .40028        .16430E-01    .34454E-03   -.13792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102199
  Index      = 2.49481
  Normalizat = 1.33995
  Prefactor  = 0.400281
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.300     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10220E-03    899.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4948        5.4743        .50000       -.52480    
   3  Normalizat    1.3400        .31955E-01    .72636E-05   -.82382    
   4  Prefactor     .40028        .34921E-01    .13782E-04   -1.1679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.55867e-08
Minuit parameter uncertainties:
  1  0.0903606
  2  1630.39
  3  0.0319556
  4  0.0349228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250496': 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) = 5987.29973108
delta logL = 1.59798219102e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.022e-04  9.036e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.495e+00  1.630e+03  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:  4.003e-01  3.492e-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.340e+00  3.196e-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/250496/cmap_HighResolution_639792001_640051201_4FGL_J2359.2-3134_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-30 12:35:33.840358', job_id='250496', GAL2='0.40', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1633030533.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='1.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1545' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 250496: <4FGL_J2359.2-3134_daily_bin1545> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1545> 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) <bullet0126>, 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:35:34 2021
Results reported at Thu Sep 30 12:35:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1545 359.817 -31.5832 639792001 640051201 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 :                                   772.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

