/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 82 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1556
RA = 359.817, Dec = -31.5832
tmin = 642643201, tmax = 642902401
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='250513', job_status='RUN', time_executed='2021-09-30 12:22:27.648111', time_epoch_executed='1633029747.65' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250513/ft1_4FGL_J2359.2-3134_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250513/ft1_4FGL_J2359.2-3134_daily_bin1556.fits outfile=/scratch/kocevski/250513/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1556.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=642643201.0 tmax=642902401.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/250513/ltcube_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.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/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits
.....................!
real 11.71
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/250513/ltcube_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.fits outfile=/scratch/kocevski/250513/expmap_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.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/250513/ltcube_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.fits
.....................!
real 190.30
user 184.76
sys 5.23

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/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits scfile=/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits outfile=/scratch/kocevski/250513/cmap_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits scfile=/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits outfile=/scratch/kocevski/250513/cmap_HighResolution_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/250513/ft2_4FGL_J2359.2-3134_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250513/Model_4FGL_J2359.2-3134_daily_bin1556.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/250513/ft1_filtered_4FGL_J2359.2-3134_daily_bin1556.fits.....................!
real 44.21
user 43.00
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.069       1.0000         .10000E-03   10000.    
     7 'norm      '    8.1335       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12533E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.592       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2602       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30277E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .44558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.884       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96877       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0885       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=   5815.777     FROM MIGRAD    STATUS=FAILED       875 CALLS     2849 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.601        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.6605        .19255E-02** at limit **
   3  Prefactor     .10000E-03    13.101        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.085        .18142E-02** at limit **
   5  Prefactor     .10000E-03    7.2960        .18142E-02** at limit **
   6  Prefactor     37.068        28.606        .65827E-04   -.15889E-04
   7  norm          8.1335        4.4615        .11612E-03   -.25161E-04
   8  Prefactor     .10000E-03    2.9441        .12754E-02** at limit **
   9  norm          .10003E-03    13.280        .27942E-02** at limit **
  10  norm          18.244        13.058        .93769E-04   -.10766E-03
  11  Prefactor     50.927        94.947        .56237E-04   -.12283E-03
  12  Prefactor     23.599        51.076        .82469E-04   -.12820E-04
  13  norm          3.2533        7.9154        .20879E-03   -.58560E-03
  14  norm          1.7697        2.7209        .14964E-03   -.52955E-04
  15  Prefactor     .10004E-03    34.136        .11108    ** at limit **
  16  norm          .44596        8.5521        .27343E-02    .33154E-02
  17  Prefactor     .10000E-03    114.62        .18142E-02** at limit **
  18  Prefactor     30.876        32.251        .72098E-04   -.59920E-05
  19  Prefactor     3.5731        5.9887        .21379E-03    .21802E-05
  20  Prefactor     .10000E-03    90.809        .18142E-02** at limit **
  21  Normalizat    .96852        .21548        .23313E-03   -.23032E-03
  22  Prefactor     1.0888        .23355        .25409E-03   -.54481E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5815.777     FROM SIMPLEX   STATUS=UNCHANGED   1289 CALLS     4138 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.601        .65382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6605        .14239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.101        .40999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.085        .27269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2960        .44136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.068        28.606        .95328E-06   -1.4490    
   7  norm          8.1335        4.4615        .99608E-06   -1.5138    
   8  Prefactor     .10000E-03    2.9441        .18558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10003E-03    13.280        .21992E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.244        13.058        .97675E-06   -1.4853    
  11  Prefactor     50.927        94.947        .10293E-05   -1.4279    
  12  Prefactor     23.599        51.076        .10665E-05   -1.4736    
  13  norm          3.2533        7.9154        .10130E-05   -1.5347    
  14  norm          1.7697        2.7209        .10155E-05   -1.5442    
  15  Prefactor     .10004E-03    34.136        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44596        8.5521        .10426E-05   -1.5574    
  17  Prefactor     .10000E-03    114.62        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.876        32.251        .96391E-06   -1.4596    
  19  Prefactor     3.5731        5.9887        .10066E-05   -1.5330    
  20  Prefactor     .10000E-03    90.809        .90313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96852        .21548        .61802E-06   -.94093    
  22  Prefactor     1.0888        .23355        .59030E-06   -.89826    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5815.777     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     4473 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.604        .36285E-03** at limit **
   2  Prefactor     .10000E-03    5.6856        .38509E-03** at limit **
   3  Prefactor     .10000E-03    13.102        .36285E-03** at limit **
   4  Prefactor     .10000E-03    13.091        .36285E-03** at limit **
   5  Prefactor     .10000E-03    7.2961        .36285E-03** at limit **
   6  Prefactor     37.068        28.607        .26331E-05     .0000    
   7  norm          8.1335        4.4614        .46448E-05     .0000    
   8  Prefactor     .10000E-03    2.9443        .25508E-03** at limit **
   9  norm          .10000E-03    13.397        .55883E-03** at limit **
  10  norm          18.244        13.056        .37507E-05   -.36373E-05
  11  Prefactor     50.927        94.388        .11247E-04   -.14353E-04
  12  Prefactor     23.600        51.057        .32988E-05    .68927E-06
  13  norm          3.2534        7.8848        .83517E-05   -.10536E-03
  14  norm          1.7697        2.7200        .59855E-05    .31150E-04
  15  Prefactor     .10003E-03    32.424        .11494    ** at limit **
  16  norm          .44596        8.4212        .54686E-03   -.50310E-05
  17  Prefactor     .10000E-03    114.63        .36285E-03** at limit **
  18  Prefactor     30.876        32.240        .28839E-05    .15768E-06
  19  Prefactor     3.5731        5.9877        .85516E-05   -.21271E-05
  20  Prefactor     .10000E-03    90.843        .36285E-03** at limit **
  21  Normalizat    .96851        .21566        .46627E-04    .76073E-05
  22  Prefactor     1.0888        .23378        .50818E-04   -.15660E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.0678
  norm       = 8.13351
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.2443
  Prefactor  = 50.9273
  Prefactor  = 23.5995
  norm       = 3.25336
  norm       = 1.76974
  Prefactor  = 0.000100033
  norm       = 0.44596
  Prefactor  = 0.0001
  Prefactor  = 30.8765
  Prefactor  = 3.57314
  Prefactor  = 0.0001
  Normalizat = 0.968513
  Prefactor  = 1.08879
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.777     FROM HESSE     STATUS=OK           332 CALLS     4805 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.604        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6867        .77019E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.102        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.091        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2961        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.068        28.610        .26331E-05   -1.4490    
   7  norm          8.1335        4.4615        .46448E-05   -1.5138    
   8  Prefactor     .10000E-03    2.9443        .51016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.402        .11177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.244        13.010        .75015E-06   -1.4853    
  11  Prefactor     50.927        94.012        .22495E-05   -1.4279    
  12  Prefactor     23.600        49.940        .65975E-06   -1.4736    
  13  norm          3.2534        7.8673        .16703E-05   -1.5347    
  14  norm          1.7697        2.7201        .11971E-05   -1.5442    
  15  Prefactor     .10003E-03    32.942        .11372       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44596        8.3811        .21874E-04   -1.5574    
  17  Prefactor     .10000E-03    114.63        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.876        32.240        .28839E-05   -1.4596    
  19  Prefactor     3.5731        5.9871        .17103E-05   -1.5330    
  20  Prefactor     .10000E-03    90.844        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96851        .21558        .93254E-05   -.94093    
  22  Prefactor     1.0888        .23377        .10164E-04   -.89826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10035e-11
Minuit parameter uncertainties:
  1  5.63059e-07
  2  9.92258e-07
  3  5.45269e-07
  4  4.12591e-07
  5  5.2896e-08
  6  28.6203
  7  4.46165
  8  1.80519e-08
  9  4.72551e-05
  10  13.0119
  11  94.2879
  12  50.0284
  13  7.86977
  14  2.72029
  15  0.00209443
  16  3.86678
  17  4.33903e-07
  18  32.2577
  19  5.98812
  20  3.54687e-06
  21  0.21577
  22  0.233987
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  3.547e-06  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:  1.089e+00  2.340e-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:  9.685e-01  2.158e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250513/likelihoodResults_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.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) = 5815.77666442
delta logL = -5.23557055203e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5815.77661301
delta logL = -9.38292032515e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16273E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9630       1.0000          .0000       10.000    
     3 'Normalizat'    .96851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0888       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=   5815.777     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11398E-03    58.408        .18142E-01** at limit **
   2  Index         2.7594        6.6972        .50000        .49143E-05
   3  Normalizat    .96851        .37382E-02    .23314E-03   -.13171E-03
   4  Prefactor     1.0888        .43121E-02    .25409E-03   -.41387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113979
  Index      = 2.75938
  Normalizat = 0.968512
  Prefactor  = 1.08879
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.777     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11398E-03    2021.2        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7594        6.2621        .50000       -.46467    
   3  Normalizat    .96851        .22984E-01    .93255E-05   -.94093    
   4  Prefactor     1.0888        .26513E-01    .10164E-04   -.89826    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29843e-07
Minuit parameter uncertainties:
  1  0.348684
  2  1823.19
  3  0.0229845
  4  0.0265132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250513': 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) = 5815.77661229
delta logL = -2.19689354708e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.140e-04  3.487e-01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.759e+00  1.823e+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:  1.089e+00  2.651e-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:  9.685e-01  2.298e-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/250513/cmap_HighResolution_642643201_642902401_4FGL_J2359.2-3134_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-30 12:35:24.018757', job_id='250513', GAL2='1.09', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1633030524.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1556' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 250513: <4FGL_J2359.2-3134_daily_bin1556> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1556> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:54 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:56 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:56 2021
Terminated at Thu Sep 30 12:35:24 2021
Results reported at Thu Sep 30 12:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1556 359.817 -31.5832 642643201 642902401 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

