/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 194 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin380
RA = 357.665, Dec = -30.087
tmin = 337824001, tmax = 338083201
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='158046', job_status='RUN', time_executed='2021-09-30 07:08:43.399220', time_epoch_executed='1633010923.4' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158046

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158046/ft1_4FGL_J2350.6-3005_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158046/ft1_4FGL_J2350.6-3005_daily_bin380.fits outfile=/scratch/kocevski/158046/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin380.fits ra=357.665 dec=-30.087 rad=12.0 tmin=337824001.0 tmax=338083201.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.46
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.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/158046/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin380.fits evtable="EVENTS" outfile="/scratch/kocevski/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.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/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/158046/ltcube_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.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/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/158046/ltcube_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits outfile=/scratch/kocevski/158046/expmap_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.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/158046/ltcube_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits
.....................!
real 191.07
user 185.15
sys 5.55

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/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits outfile=/scratch/kocevski/158046/cmap_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits outfile=/scratch/kocevski/158046/cmap_HighResolution_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158046/Model_4FGL_J2350.6-3005_daily_bin380.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/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits.....................!
real 44.26
user 42.96
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits', '/scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits', expMap='/scratch/kocevski/158046/expmap_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits', expCube='/scratch/kocevski/158046/ltcube_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158046/Model_4FGL_J2350.6-3005_daily_bin380.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/158046/ft1_filtered_4FGL_J2350.6-3005_daily_bin380.fits
Spacecraft file(s): /scratch/kocevski/158046/ft2_4FGL_J2350.6-3005_daily_bin380.fits
Exposure map: /scratch/kocevski/158046/expmap_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits
Exposure cube: /scratch/kocevski/158046/ltcube_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158046/Model_4FGL_J2350.6-3005_daily_bin380.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) = 5838.12795603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14750E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .51961       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14143E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    14.115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.795       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4947       1.0000         .10000E-03   10000.    
    15 'norm      '    6.4221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90291       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0371       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=   5838.118     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2188 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.010        28.039        .39996E-05   -.32419E-05
   2  Prefactor     .10000E-03    84.791        .27217E-05** at limit **
   3  Prefactor     .10001E-03    3.5982       -.16390E-05** at limit **
   4  Prefactor     23.904        27.731        .20335E-04    .11337E-03
   5  Prefactor     .10000E-03    8.4265       -.12505E-05** at limit **
   6  norm          .10000E-03    4.3959        .93264E-09** at limit **
   7  norm          .51952        .40777        .20403E-07   -.14434E-03
   8  Prefactor     .10000E-03    3.5025       -.14001E-07** at limit **
   9  norm          .10008E-03    4.7900        .18698E-05** at limit **
  10  norm          14.119        8.3519        .16629E-06   -.77121E-04
  11  Prefactor     .10000E-03    10.253        .20897E-05** at limit **
  12  norm          10.800        5.0369       -.36645E-05   -.79836E-03
  13  norm          1.8968        2.2730       -.77519E-07   -.54679E-03
  14  Prefactor     1.5388        80.773        .57848E-05   -.73374E-04
  15  norm          6.4214        4.7457        .26915E-05   -.31676E-03
  16  Prefactor     .10000E-03    22.171        .10510E-04** at limit **
  17  Prefactor     16.481        29.243        .37180E-05   -.14217E-05
  18  Prefactor     .10000E-03    1.6327       -.65348E-07** at limit **
  19  Prefactor     .10000E-03    19.685       -.96811E-05** at limit **
  20  Normalizat    .90298        .15990       -.20302E-05    .65239E-04
  21  Prefactor     1.0371        .18358       -.74325E-06   -.90261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0099
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 23.9045
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.519521
  Prefactor  = 0.0001
  norm       = 0.000100082
  norm       = 14.1185
  Prefactor  = 0.0001
  norm       = 10.8003
  norm       = 1.89677
  Prefactor  = 1.5388
  norm       = 6.42137
  Prefactor  = 0.0001
  Prefactor  = 16.481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.902981
  Prefactor  = 1.03713
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.118     FROM HESSE     STATUS=OK           321 CALLS     2509 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.010        28.025        .75706E-04   -1.4649    
   2  Prefactor     .10000E-03    85.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    3.7532        .28374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.904        27.670        .81982E-04   -1.4730    
   5  Prefactor     .10000E-03    8.4883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4492        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .51952        .39259        .42080E-03   -1.5564    
   8  Prefactor     .10000E-03    3.5161        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10008E-03    24.365        .31744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.119        8.3513        .10661E-03   -1.4956    
  11  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.800        4.9464        .10891E-03   -1.5051    
  13  norm          1.8968        2.2437        .11978E-03   -1.5433    
  14  Prefactor     1.5388        80.507        .35049E-03   -1.5460    
  15  norm          6.4214        4.7265        .13523E-03   -1.5201    
  16  Prefactor     .10000E-03    22.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.481        29.242        .98668E-04   -1.4896    
  18  Prefactor     .10000E-03    1.6376        .95328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90298        .18746        .22795E-03   -.96355    
  21  Prefactor     1.0371        .21553        .24528E-03   -.91502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59189e-09
Minuit parameter uncertainties:
  1  28.0378
  2  0.000141913
  3  0.000316362
  4  27.6845
  5  1.12641e-05
  6  8.99752e-06
  7  0.392597
  8  6.60993e-06
  9  0.00283368
  10  8.35199
  11  9.24474e-06
  12  4.94654
  13  2.24379
  14  22.2916
  15  4.7268
  16  3.55549e-06
  17  29.267
  18  7.00828e-06
  19  0.000162986
  20  0.187591
  21  0.215715
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.648e+01  2.927e+01  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:  1.037e+00  2.157e-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:  9.030e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/158046/likelihoodResults_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.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) = 5838.0725473
delta logL = 0.0454427222194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.07075175
delta logL = 0.0472382722328

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5838.071     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      299 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.082        47.630        .79993E-04    .90957E-05
   2  Index         1.7785        .74953        .10283E-01    .12588E-04
   3  Normalizat    .90560        .18539        .22764E-03   -.93891E-04
   4  Prefactor     1.0340        .21386        .24557E-03    .22546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0823
  Index      = 1.77846
  Normalizat = 0.905596
  Prefactor  = 1.03402
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.071     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.082        45.634        .31997E-05   -1.4706    
   2  Index         1.7785        .71879        .41131E-03   -.70012    
   3  Normalizat    .90560        .18556        .91055E-05   -.96264    
   4  Prefactor     1.0340        .21406        .98227E-05   -.91604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70098e-11
Minuit parameter uncertainties:
  1  45.698
  2  0.723092
  3  0.185691
  4  0.214235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158046': 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) = 5838.07075059
delta logL = 0.0472394335802

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  2.508e+01  4.570e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.778e+00  7.231e-01  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:  1.034e+00  2.142e-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:  9.056e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/158046/cmap_HighResolution_337824001_338083201_4FGL_J2350.6-3005_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-30 07:18:43.703027', job_id='158046', GAL2='1.03', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1633011523.7', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.72e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='380' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:18:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 158046: <4FGL_J2350.6-3005_daily_bin380> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin380> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:05:19 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:05:21 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:05:21 2021
Terminated at Thu Sep 30 07:18:44 2021
Results reported at Thu Sep 30 07:18:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin380 357.665 -30.087 337824001 338083201 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

