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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin972
RA = 357.665, Dec = -30.087
tmin = 491270401, tmax = 491529601
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='160011', job_status='RUN', time_executed='2021-09-30 07:14:37.371387', time_epoch_executed='1633011277.37' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160011/ft1_4FGL_J2350.6-3005_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160011/ft1_4FGL_J2350.6-3005_daily_bin972.fits outfile=/scratch/kocevski/160011/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin972.fits ra=357.665 dec=-30.087 rad=12.0 tmin=491270401.0 tmax=491529601.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.58
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.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/160011/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin972.fits evtable="EVENTS" outfile="/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/160011/ltcube_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.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/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits
.....................!
real 11.66
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/160011/ltcube_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits outfile=/scratch/kocevski/160011/expmap_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.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/160011/ltcube_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits
.....................!
real 189.50
user 185.07
sys 4.07

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

Setting source of interest to:
4FGL J2350.6-3005 @ 357.665 -30.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits outfile=/scratch/kocevski/160011/cmap_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.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=357.665 yref=-30.087 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits outfile=/scratch/kocevski/160011/cmap_HighResolution_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.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=357.665 yref=-30.087 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/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/160011/Model_4FGL_J2350.6-3005_daily_bin972.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/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits.....................!
real 35.55
user 34.05
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits', '/scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits', expMap='/scratch/kocevski/160011/expmap_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits', expCube='/scratch/kocevski/160011/ltcube_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/160011/Model_4FGL_J2350.6-3005_daily_bin972.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2350.6-3005'

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  8.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/160011/ft1_filtered_4FGL_J2350.6-3005_daily_bin972.fits
Spacecraft file(s): /scratch/kocevski/160011/ft2_4FGL_J2350.6-3005_daily_bin972.fits
Exposure map: /scratch/kocevski/160011/expmap_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits
Exposure cube: /scratch/kocevski/160011/ltcube_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/160011/Model_4FGL_J2350.6-3005_daily_bin972.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) = 3916.16164038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.503       1.0000         .10000E-03   10000.    
     6 'norm      '    15.645       1.0000         .10000E-03   10000.    
     7 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5400       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.786       1.0000         .10000E-03   10000.    
    12 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4881       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    119.96       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13253E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8230       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.362       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2152       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .46441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3916.144     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2213 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3086        28.454        .49090E-05    .70804E-04
   2  Prefactor     15.808        61.735       -.29911E-05   -.64700E-04
   3  Prefactor     1.5328        2.2772        .19266E-07    .16277E-04
   4  Prefactor     .10000E-03    7.5321        .11264E-06** at limit **
   5  Prefactor     19.497        13.774       -.22277E-06    .34952E-04
   6  norm          15.643        8.1875       -.55091E-07   -.88797E-05
   7  norm          .10000E-03    .55132        .42904E-06** at limit **
   8  Prefactor     6.5487        12.385       -.17023E-05   -.30230E-03
   9  norm          .10000E-03    3.1805        .12566E-06** at limit **
  10  norm          1.8661        21.834        .23414E-05    .42842E-04
  11  Prefactor     58.741        61.090       -.23645E-05   -.83278E-04
  12  norm          .10000E-03    5.1748        .77817E-06** at limit **
  13  norm          .10000E-03    2.8935       -.36359E-05** at limit **
  14  Prefactor     6.4397        62.238        .99798E-05    .20606E-03
  15  norm          .10000E-03    2.0212        .95197E-07** at limit **
  16  Prefactor     119.86        137.13       -.40679E-05   -.16386E-04
  17  Prefactor     .10000E-03    67.506       -.27776E-06** at limit **
  18  Prefactor     2.8190        5.1664       -.14186E-07    .48224E-04
  19  Prefactor     36.353        35.304       -.54680E-06   -.90699E-05
  20  Normalizat    1.2159        .21341        .64622E-05    .20166E-03
  21  Prefactor     .46381        .21783       -.10526E-04    .19491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30864
  Prefactor  = 15.8076
  Prefactor  = 1.5328
  Prefactor  = 0.0001
  Prefactor  = 19.4969
  norm       = 15.6428
  norm       = 0.000100002
  Prefactor  = 6.54869
  norm       = 0.0001
  norm       = 1.86608
  Prefactor  = 58.7405
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 6.43974
  norm       = 0.0001
  Prefactor  = 119.864
  Prefactor  = 0.0001
  Prefactor  = 2.81898
  Prefactor  = 36.353
  Normalizat = 1.21593
  Prefactor  = 0.463806
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.144     FROM HESSE     STATUS=OK           319 CALLS     2532 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3086        28.503        .74179E-03   -1.5167    
   2  Prefactor     15.808        61.888        .10048E-03   -1.4913    
   3  Prefactor     1.5328        2.2488        .11138E-03   -1.5460    
   4  Prefactor     .10000E-03    7.5340        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.497        13.777        .90694E-04   -1.4825    
   6  norm          15.643        8.1856        .10126E-03   -1.4917    
   7  norm          .10000E-03    4.6838        .84220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5487        11.834        .15693E-03   -1.5196    
   9  norm          .10000E-03    3.1840        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8661        21.573        .30217E-03   -1.5435    
  11  Prefactor     58.741        61.027        .52326E-04   -1.4174    
  12  norm          .10000E-03    5.3337        .27798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8533        .18115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4397        66.590        .15756E-03   -1.5200    
  15  norm          .10000E-03    2.0260        .86881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     119.86        137.33        .18371E-03   -1.3514    
  17  Prefactor     .10000E-03    67.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8190        5.1437        .18304E-03   -1.5372    
  19  Prefactor     36.353        35.266        .33230E-03   -1.4501    
  20  Normalizat    1.2159        .22463        .19506E-03   -.86112    
  21  Prefactor     .46381        .22418        .31506E-03   -1.1367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73993e-09
Minuit parameter uncertainties:
  1  28.5565
  2  62.1415
  3  2.24897
  4  4.57559e-06
  5  13.7796
  6  8.18623
  7  0.000194989
  8  11.8383
  9  4.85259e-06
  10  12.695
  11  61.0924
  12  3.05218e-05
  13  0.00021456
  14  41.4753
  15  2.04723e-06
  16  137.699
  17  6.40545e-05
  18  5.14448
  19  35.2861
  20  0.224807
  21  0.224604
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  6.405e-05  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  4.638e-01  2.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.216e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160011/likelihoodResults_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.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) = 3916.14442851
delta logL = -7.0249395776e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3916.14436113
delta logL = -2.86176054942e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58613E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2458       1.0000          .0000       10.000    
     3 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3916.144     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.461        .10538E-01** at limit **
   2  Index         2.2467        6.3106        .50000       -.21980E-05
   3  Normalizat    1.2159        .23983E-02    .34512E-01    .34038E-06
   4  Prefactor     .46381        .25032E-02    .71158E-01    .19298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.24673
  Normalizat = 1.21593
  Prefactor  = 0.463808
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.144     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.59        .21076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2467        8.8750        .50000       -.58315    
   3  Normalizat    1.2159        .71184E-02    .19505E-03   -.86112    
   4  Prefactor     .46381        .74119E-02    .31507E-03   -1.1367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.2647e-09
Minuit parameter uncertainties:
  1  0.00114569
  2  148.507
  3  0.00711838
  4  0.00741194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160011': 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) = 3916.14435814
delta logL = 1.23049176182e-07

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  1.146e-03  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.247e+00  1.485e+02  0.000e+00  1.000e+01 (-1.000e+00)
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  4.638e-01  7.412e-03  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.216e+00  7.118e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.665 -30.087

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/160011/cmap_HighResolution_491270401_491529601_4FGL_J2350.6-3005_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-30 07:22:58.023375', job_id='160011', GAL2='0.46', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1633011778.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='1.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='972' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:22:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 160011: <4FGL_J2350.6-3005_daily_bin972> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin972> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 07:11:03 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:11:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:11:04 2021
Terminated at Thu Sep 30 07:22:58 2021
Results reported at Thu Sep 30 07:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin972 357.665 -30.087 491270401 491529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2350.6-3005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   496.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            715 sec.

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

