/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7357
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin475
RA = 357.665, Dec = -30.087
tmin = 362448001, tmax = 362707201
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='158186', job_status='RUN', time_executed='2021-09-30 07:07:11.238432', time_epoch_executed='1633010831.24' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158186

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158186/ft1_4FGL_J2350.6-3005_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158186/ft1_4FGL_J2350.6-3005_daily_bin475.fits outfile=/scratch/kocevski/158186/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin475.fits ra=357.665 dec=-30.087 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.58
user 5.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.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/158186/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin475.fits evtable="EVENTS" outfile="/scratch/kocevski/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.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.72
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/158186/ltcube_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.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/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits
.....................!
real 11.49
user 11.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/158186/ltcube_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.fits outfile=/scratch/kocevski/158186/expmap_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.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/158186/ltcube_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.fits
.....................!
real 191.96
user 187.41
sys 4.17

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/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits outfile=/scratch/kocevski/158186/cmap_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits outfile=/scratch/kocevski/158186/cmap_HighResolution_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/158186/ft2_4FGL_J2350.6-3005_daily_bin475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158186/Model_4FGL_J2350.6-3005_daily_bin475.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/158186/ft1_filtered_4FGL_J2350.6-3005_daily_bin475.fits.....................!
real 35.35
user 32.83
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42291       1.0000         .10000E-03   10000.    
     9 'norm      '    .76479       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.638       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7309       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77963E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    92.098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.452       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93052       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95956       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3679.912     FROM MIGRAD    STATUS=FAILED       817 CALLS     2910 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.311        .18142E-02** at limit **
   2  Prefactor     .10000E-03    18.397        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.3123        .10708E-02** at limit **
   4  Prefactor     .10000E-03    11.856        .18142E-02** at limit **
   5  Prefactor     .10000E-03    10.848        .18142E-02** at limit **
   6  norm          .10000E-03    6.7835        .15325E-02** at limit **
   7  norm          5.4779        1.8676        .39567E-04   -.12249E-02
   8  Prefactor     .32137        328.70        .46561E-02    .38505E-03
   9  norm          .75106        22.625        .39899E-03   -.53425E-04
  10  norm          .10000E-03    3.7053        .11397E-02** at limit **
  11  Prefactor     88.569        75.334        .21338E-03   -.76081E-04
  12  norm          2.7451        8.4138        .10651E-02    .46143E-04
  13  norm          2.9140        4.4592        .14345E-03    .66693E-04
  14  Prefactor     .12713E-03    63.941        .11275    ** at limit **
  15  norm          .10000E-03    2.1478        .86740E-03** at limit **
  16  Prefactor     .10000E-03    41.507        .18142E-02** at limit **
  17  Prefactor     92.086        77.661        .20937E-03    .24081E-04
  18  Prefactor     1.5526        8.9016        .16679E-02   -.80029E-04
  19  Prefactor     90.390        71.570        .21125E-03    .89549E-04
  20  Normalizat    .93064        .26535        .24192E-03    .19817E-03
  21  Prefactor     .95940        .27739        .25980E-03    .17616E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3679.912     FROM SIMPLEX   STATUS=UNCHANGED   1145 CALLS     4055 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.311        .69738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.397        .57483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3123        .82597E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.856        .41359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.848        .40177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7835        .15713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4779        1.8676        .60609E-06   -1.5240    
   8  Prefactor     .32137        328.70        .16404E-05   -1.5595    
   9  norm          .75106        22.625        .64880E-06   -1.5535    
  10  norm          .10000E-03    3.7053        .21669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.569        75.334        .57363E-06   -1.3823    
  12  norm          2.7451        8.4138        .63950E-06   -1.5377    
  13  norm          2.9140        4.4592        .61967E-06   -1.5367    
  14  Prefactor     .12713E-03    63.941        .59526E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1478        .11023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.507        .88734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     92.086        77.661        .54696E-06   -1.3786    
  18  Prefactor     1.5526        8.9016        .61345E-06   -1.5459    
  19  Prefactor     90.390        71.570        .54822E-06   -1.3804    
  20  Normalizat    .93064        .26535        .37821E-06   -.95392    
  21  Prefactor     .95940        .27739        .37297E-06   -.94095    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3679.912     FROM MIGRAD    STATUS=CONVERGED    314 CALLS     4369 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.312        .36285E-03** at limit **
   2  Prefactor     .10000E-03    18.397        .36285E-03** at limit **
   3  Prefactor     .10000E-03    3.3128        .21417E-03** at limit **
   4  Prefactor     .10000E-03    11.856        .36285E-03** at limit **
   5  Prefactor     .10000E-03    10.849        .36285E-03** at limit **
   6  norm          .10000E-03    6.7861        .30650E-03** at limit **
   7  norm          5.4779        1.7915        .79135E-05   -.10344E-04
   8  Prefactor     .32136        310.86        .93122E-03   -.16847E-05
   9  norm          .75111        22.326        .15960E-04    .49864E-06
  10  norm          .10000E-03    3.7054        .22793E-03** at limit **
  11  Prefactor     88.570        75.333        .85353E-05   -.14652E-05
  12  norm          2.7451        8.3558        .42603E-04   -.10674E-05
  13  norm          2.9140        4.4570        .57378E-05   -.64196E-04
  14  Prefactor     .12679E-03    61.070        .11601    ** at limit **
  15  norm          .10000E-03    2.1478        .17348E-03** at limit **
  16  Prefactor     .10000E-03    41.508        .36285E-03** at limit **
  17  Prefactor     92.087        77.658        .83749E-05   -.19005E-05
  18  Prefactor     1.5527        8.8514        .66716E-04    .13632E-05
  19  Prefactor     90.390        71.472        .84501E-05   -.20181E-05
  20  Normalizat    .93064        .26545        .48383E-04   -.27210E-04
  21  Prefactor     .95940        .27755        .51959E-04   -.21224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.47787
  Prefactor  = 0.321362
  norm       = 0.751105
  norm       = 0.0001
  Prefactor  = 88.5701
  norm       = 2.74508
  norm       = 2.91399
  Prefactor  = 0.000126792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 92.0865
  Prefactor  = 1.55272
  Prefactor  = 90.39
  Normalizat = 0.930641
  Prefactor  = 0.959405
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.912     FROM HESSE     STATUS=OK           305 CALLS     4674 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.312        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.397        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3128        .42834E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.856        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.849        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7862        .61300E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4779        1.7737        .15827E-05   -1.5240    
   8  Prefactor     .32136        304.56        .37249E-04   -1.5595    
   9  norm          .75111        22.298        .31919E-05   -1.5535    
  10  norm          .10000E-03    3.7054        .45586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.570        75.271        .17071E-05   -1.3823    
  12  norm          2.7451        8.3502        .17041E-05   -1.5377    
  13  norm          2.9140        4.4572        .11476E-05   -1.5367    
  14  Prefactor     .12679E-03    62.142        .11475       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1478        .34696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.508        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     92.087        77.660        .16750E-05   -1.3786    
  18  Prefactor     1.5527        8.8466        .26686E-05   -1.5459    
  19  Prefactor     90.390        71.489        .16900E-05   -1.3804    
  20  Normalizat    .93064        .26547        .96766E-05   -.95392    
  21  Prefactor     .95940        .27758        .10392E-04   -.94095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37077e-12
Minuit parameter uncertainties:
  1  2.2256e-07
  2  2.34665e-07
  3  4.76829e-07
  4  4.96714e-07
  5  9.78286e-07
  6  5.74444e-07
  7  1.77374
  8  19.8852
  9  8.18777
  10  8.18232e-09
  11  75.3523
  12  8.35376
  13  4.45774
  14  0.0816919
  15  8.2007e-08
  16  4.16861e-07
  17  77.7454
  18  7.41392
  19  71.5575
  20  0.265845
  21  0.277988
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  9.209e+01  7.775e+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:  9.594e-01  2.780e-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.306e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 2.67e-05

TS (Fixed Index): 2.93
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158186/likelihoodResults_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.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) = 3679.69254512
delta logL = 0.219017114177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3679.68886793
delta logL = 0.222694299258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.842       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4213       1.0000          .0000       10.000    
     3 'Normalizat'    .90381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97650       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=   3679.689     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.890        79.860        .53208E-04   -.14418E-03
   2  Index         2.4215        .68424        .39903E-02   -.97971E-04
   3  Normalizat    .90410        .25628        .24485E-03   -.25035E-03
   4  Prefactor     .97558        .27640        .25775E-03    .12488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8898
  Index      = 2.4215
  Normalizat = 0.904101
  Prefactor  = 0.97558
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.689     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.890        72.391        .10642E-04   -1.4198    
   2  Index         2.4215        .61984        .15961E-03   -.54182    
   3  Normalizat    .90410        .25588        .48970E-04   -.96316    
   4  Prefactor     .97558        .27622        .51551E-04   -.93548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09589e-09
Minuit parameter uncertainties:
  1  72.5032
  2  0.622021
  3  0.25622
  4  0.276617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158186': 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) = 3679.68885504
delta logL = 0.222707189555

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  5.689e+01  7.250e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.422e+00  6.220e-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:  9.756e-01  2.766e-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.041e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.42 +/- 0.62
Photon Flux (Free Index): 7.42e-08 +/- 6.52e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.93e-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/158186/cmap_HighResolution_362448001_362707201_4FGL_J2350.6-3005_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='2.36e-05', photon_flux_error='4.07e-08', dlogl='2.23e-01', energy_flux='3.16e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-30 07:17:38.693317', photon_index_error2='0.62', photon_index2='2.42', ts='2.93', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.93e-05', EG='0.93', time_epoch_completed='1633011458.69', return_code='0', job_id='158186', GAL2='0.98', EG2='0.90', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='6.52e-08', ts2='3.38', photon_index='2.02' WHERE bin_id='475' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 158186: <4FGL_J2350.6-3005_daily_bin475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin475 357.665 -30.087 362448001 362707201 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 :                                   594.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

