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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1334
RA = 359.817, Dec = -31.5832
tmin = 585100801, tmax = 585360001
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='250182', job_status='RUN', time_executed='2021-09-30 12:22:13.498273', time_epoch_executed='1633029733.5' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250182/ft1_4FGL_J2359.2-3134_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250182/ft1_4FGL_J2359.2-3134_daily_bin1334.fits outfile=/scratch/kocevski/250182/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1334.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=585100801.0 tmax=585360001.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.03
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/250182/ltcube_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.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/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits
.....................!
real 13.08
user 12.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/250182/ltcube_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.fits outfile=/scratch/kocevski/250182/expmap_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.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/250182/ltcube_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.fits
.....................!
real 192.00
user 185.90
sys 5.62

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/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits scfile=/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits outfile=/scratch/kocevski/250182/cmap_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits scfile=/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits outfile=/scratch/kocevski/250182/cmap_HighResolution_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/250182/ft2_4FGL_J2359.2-3134_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250182/Model_4FGL_J2359.2-3134_daily_bin1334.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/250182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1334.fits.....................!
real 41.32
user 39.96
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6359       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    99.993       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0790       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.965       1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.829       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91902       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=   5065.821     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2714 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.980       -.13603E-04** at limit **
   2  Prefactor     4.2478        4.0590        .43314E-06   -.27510E-03
   3  Prefactor     4.7823        18.536        .29712E-06   -.46619E-04
   4  Prefactor     .10000E-03    15.269        .10743E-04** at limit **
   5  Prefactor     13.745        28.003       -.19428E-05   -.26535E-04
   6  Prefactor     .10000E-03    25.590        .72975E-05** at limit **
   7  norm          5.6364        5.6758        .54557E-07   -.30413E-03
   8  Prefactor     .10000E-03    5.9882        .21132E-06** at limit **
   9  norm          .10000E-03    4.2573        .53278E-08** at limit **
  10  norm          4.0469        6.0727       -.42328E-06   -.11531E-03
  11  Prefactor     .10000E-03    24.880       -.20830E-05** at limit **
  12  Prefactor     99.997        68.268        .30450E-05   -.75852E-05
  13  norm          3.0789        4.2739        .15319E-06   -.26155E-03
  14  norm          .10000E-03    2.4823       -.70923E-06** at limit **
  15  Prefactor     .10000E-03    61.795       -.44860E-05** at limit **
  16  norm          1.0327        3.0477       -.30853E-06   -.75508E-03
  17  Prefactor     28.019        129.03        .98257E-04    .91627E-05
  18  Prefactor     61.251        61.985       -.49024E-06   -.11821E-04
  19  Prefactor     4.7180        8.7034        .10483E-05   -.22374E-03
  20  Prefactor     45.824        59.525       -.68819E-05   -.22297E-04
  21  Normalizat    1.0661        .19137       -.30602E-05    .50794E-04
  22  Prefactor     .91928        .20724       -.44796E-06   -.99834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.24776
  Prefactor  = 4.78226
  Prefactor  = 0.0001
  Prefactor  = 13.7451
  Prefactor  = 0.0001
  norm       = 5.63636
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.04688
  Prefactor  = 0.0001
  Prefactor  = 99.9968
  norm       = 3.0789
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.03272
  Prefactor  = 28.019
  Prefactor  = 61.251
  Prefactor  = 4.71798
  Prefactor  = 45.8239
  Normalizat = 1.06611
  Prefactor  = 0.919282
 **********
 **   18 **HESSE 
 **********

 FCN=   5065.821     FROM HESSE     STATUS=OK           346 CALLS     3060 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2478        4.0315        .12230E-03   -1.5296    
   3  Prefactor     4.7823        18.452        .18395E-03   -1.5271    
   4  Prefactor     .10000E-03    15.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.745        28.022        .10803E-03   -1.4966    
   6  Prefactor     .10000E-03    25.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6364        5.6757        .16333E-03   -1.5233    
   8  Prefactor     .10000E-03    6.1208        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2818        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0469        6.0610        .20043E-03   -1.5306    
  11  Prefactor     .10000E-03    24.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     99.997        68.320        .40203E-04   -1.3705    
  13  norm          3.0789        4.2250        .16551E-03   -1.5357    
  14  norm          .10000E-03    9.7572        .21667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    62.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0327        2.8614        .20486E-02   -1.5505    
  17  Prefactor     28.019        128.37        .75759E-04   -1.4649    
  18  Prefactor     61.251        61.965        .51269E-04   -1.4141    
  19  Prefactor     4.7180        8.6544        .18528E-03   -1.5274    
  20  Prefactor     45.824        59.261        .59226E-04   -1.4353    
  21  Normalizat    1.0661        .22334        .22355E-03   -.90847    
  22  Prefactor     .91928        .24203        .27097E-03   -.95471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59565e-10
Minuit parameter uncertainties:
  1  1.95221e-05
  2  4.03175
  3  18.4744
  4  2.93913e-05
  5  28.0485
  6  6.77438e-05
  7  5.67627
  8  3.49081e-05
  9  3.62076e-06
  10  6.06188
  11  2.96339e-05
  12  68.3735
  13  4.22538
  14  0.000100705
  15  0.000967409
  16  2.86175
  17  120.374
  18  62.0299
  19  8.65666
  20  59.3369
  21  0.223541
  22  0.242315
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.582e+01  5.934e+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:  9.193e-01  2.423e-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.066e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250182/likelihoodResults_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.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) = 5065.5626559
delta logL = 0.258105679172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5065.5556106
delta logL = 0.265150985383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.412       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2890       1.0000          .0000       10.000    
     3 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94123       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=   5065.556     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.396        53.372        .75161E-04    .11163E-03
   2  Index         3.2887        1.2129        .71202E-02    .56363E-04
   3  Normalizat    1.0372        .21818        .22609E-03   -.16916E-02
   4  Prefactor     .94115        .24286        .26811E-03   -.12593E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3959
  Index      = 3.28875
  Normalizat = 1.03718
  Prefactor  = 0.941152
 **********
 **   18 **HESSE 
 **********

 FCN=   5065.556     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.396        44.749        .30064E-05   -1.4642    
   2  Index         3.2887        1.0184        .28481E-03   -.34931    
   3  Normalizat    1.0372        .21840        .45218E-04   -.91795    
   4  Prefactor     .94115        .24290        .53621E-04   -.94718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55115e-09
Minuit parameter uncertainties:
  1  44.8023
  2  1.02651
  3  0.218591
  4  0.24318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250182': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5065.55560742
delta logL = 0.265154161405

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.840e+01  4.480e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.289e+00  1.027e+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:  9.412e-01  2.432e-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.037e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 3.29 +/- 1.03
Photon Flux (Free Index): 6.26e-08 +/- 5.96e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.04e-05

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/250182/cmap_HighResolution_585100801_585360001_4FGL_J2359.2-3134_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='2.65e-01', photon_flux2='6.26e-08', job_status='DONE', time_completed='2021-09-30 12:33:54.577663', photon_index_error2='1.03', photon_index2='3.29', ts='0.93', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.04e-05', EG='1.07', time_epoch_completed='1633030434.58', return_code='0', job_id='250182', GAL2='0.94', EG2='1.04', return_code2='0', photon_flux_error2='5.96e-08', ts2='1.52', photon_index='2.60' WHERE bin_id='1334' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 250182: <4FGL_J2359.2-3134_daily_bin1334> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1334> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:27 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:29 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:29 2021
Terminated at Thu Sep 30 12:33:55 2021
Results reported at Thu Sep 30 12:33:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1334 359.817 -31.5832 585100801 585360001 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 :                                   616.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

