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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin384
RA = 358.013, Dec = 17.8394
tmin = 338860801, tmax = 339120001
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='164317', job_status='RUN', time_executed='2021-09-30 07:25:26.903678', time_epoch_executed='1633011926.9' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164317

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164317/ft1_4FGL_J2352.0+1750_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164317/ft1_4FGL_J2352.0+1750_daily_bin384.fits outfile=/scratch/kocevski/164317/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin384.fits ra=358.013 dec=17.8394 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.77
user 4.44
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.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/164317/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin384.fits evtable="EVENTS" outfile="/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/164317/ltcube_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.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/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits
.....................!
real 11.79
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/164317/ltcube_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits outfile=/scratch/kocevski/164317/expmap_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.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/164317/ltcube_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits
.....................!
real 190.99
user 185.14
sys 5.47

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

Setting source of interest to:
4FGL J2352.0+1750 @ 358.013 17.8394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits outfile=/scratch/kocevski/164317/cmap_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.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=358.013 yref=17.8394 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits outfile=/scratch/kocevski/164317/cmap_HighResolution_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.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=358.013 yref=17.8394 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/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164317/Model_4FGL_J2352.0+1750_daily_bin384.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/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits.....................!
real 73.27
user 71.92
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits', '/scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits', expMap='/scratch/kocevski/164317/expmap_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits', expCube='/scratch/kocevski/164317/ltcube_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164317/Model_4FGL_J2352.0+1750_daily_bin384.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2352.0+1750'

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.218e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164317/ft1_filtered_4FGL_J2352.0+1750_daily_bin384.fits
Spacecraft file(s): /scratch/kocevski/164317/ft2_4FGL_J2352.0+1750_daily_bin384.fits
Exposure map: /scratch/kocevski/164317/expmap_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits
Exposure cube: /scratch/kocevski/164317/ltcube_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164317/Model_4FGL_J2352.0+1750_daily_bin384.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) = 6533.45879795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48268       1.0000         .10000E-03   10000.    
     6 'norm      '    .10657E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12502E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29968E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .89731       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6533.332     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1512 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7387         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.9188         .0000    ** at limit **
   3  Prefactor     .10000E-03    3.8965         .0000    ** at limit **
   4  Prefactor     .10002E-03    21.007         .0000    ** at limit **
   5  Prefactor     .48195        3.2963         .0000        .15768E-02
   6  norm          .10003E-03    13.993         .0000    ** at limit **
   7  Prefactor     .10001E-03    34.097         .0000    ** at limit **
   8  Prefactor     .10000E-03    2.8702         .0000    ** at limit **
   9  Prefactor     4.9535        4.3911         .0000        .19217E-03
  10  Prefactor     .10002E-03    20.895         .0000    ** at limit **
  11  Prefactor     .10000E-03    5.3894         .0000    ** at limit **
  12  norm          1.8007        13.679         .0000        .95183E-02
  13  Prefactor     .10016E-03    5.1660         .0000    ** at limit **
  14  Prefactor     .10002E-03    10.312         .0000    ** at limit **
  15  norm          15.156        14.171         .0000       -.11407E-02
  16  Prefactor     .10000E-03    1.9748         .0000    ** at limit **
  17  Normalizat    .89734        .18871         .0000       -.74531E-03
  18  Prefactor     1.0892        .12237         .0000       -.10433E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 0.481947
  norm       = 0.000100027
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 4.9535
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  norm       = 1.8007
  Prefactor  = 0.000100159
  Prefactor  = 0.00010002
  norm       = 15.156
  Prefactor  = 0.0001
  Normalizat = 0.897337
  Prefactor  = 1.08917
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.332     FROM HESSE     STATUS=OK           236 CALLS     1748 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1381        .20401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9290        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9191        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    21.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48195        3.4006        .28022E-03   -1.5569    
   6  norm          .10003E-03    14.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    34.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8858        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9535        4.3850        .15438E-03   -1.5263    
  10  Prefactor     .10002E-03    21.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8007        11.460        .15709E-02   -1.5440    
  13  Prefactor     .10016E-03    9.7090        .32513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    10.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.156        14.167        .10295E-03   -1.4929    
  16  Prefactor     .10000E-03    1.9789        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .89734        .21294        .30255E-03   -.96554    
  18  Prefactor     1.0892        .14054        .18329E-03   -.89813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51407e-08
Minuit parameter uncertainties:
  1  1.3508e-05
  2  1.61091e-05
  3  9.04225e-05
  4  0.00120799
  5  2.56033
  6  0.00124019
  7  0.00120549
  8  3.98256e-05
  9  4.38525
  10  0.00123349
  11  0.000150151
  12  9.08756
  13  0.00248662
  14  0.000899399
  15  14.1697
  16  1.36608e-05
  17  0.213144
  18  0.140583
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  1.366e-05  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.089e+00  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.973e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.013 17.839
Photon Flux Upper Limit: 4.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164317/likelihoodResults_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.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) = 6533.33478071
delta logL = -0.00237740994817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6533.33240323
delta logL = 6.74690454616e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0533       1.0000          .0000       10.000    
     3 'Normalizat'    .89729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   6533.332     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    193.77        .11165E-02** at limit **
   2  Index         2.0404        8.6789        .50000        .50878E-04
   3  Normalizat    .89734        .54549E-01    .30255E-03    .75603E-04
   4  Prefactor     1.0892        .36295E-01    .18329E-03   -.17674E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6533.332     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      420 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    193.77        .23553E-03** at limit **
   2  Index         2.0404        8.6789        .96217E-05    .50878E-04
   3  Normalizat    .89734        .54549E-01    .58328E-06    .75603E-04
   4  Prefactor     1.0892        .36295E-01    .17435E-06   -.17674E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6533.332     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      454 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.6925        .22331E-03** at limit **
   2  Index         2.0400        5.1764        .50000        .50840E-04
   3  Normalizat    .89734        .21016        .12102E-04    .78721E-04
   4  Prefactor     1.0892        .13992        .36659E-04   -.17174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.03999
  Normalizat = 0.897344
  Prefactor  = 1.08917
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.332     FROM HESSE     STATUS=OK            29 CALLS      483 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.0588        .44662E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0400        6.0127        .50000       -.63354    
   3  Normalizat    .89734        .21029        .24204E-05   -.96554    
   4  Prefactor     1.0892        .14000        .73318E-05   -.89813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62977e-09
Minuit parameter uncertainties:
  1  0.000207512
  2  4.08454
  3  0.210484
  4  0.140043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164317': 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) = 6533.33240297
delta logL = 3.33594471158e-07

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  2.075e-04  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.040e+00  4.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.089e+00  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.973e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.013 17.839

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/164317/cmap_HighResolution_338860801_339120001_4FGL_J2352.0+1750_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-30 07:34:56.588028', job_id='164317', GAL2='1.09', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1633012496.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='384' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:34:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 164317: <4FGL_J2352.0+1750_daily_bin384> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin384> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:25:17 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:25:19 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:25:19 2021
Terminated at Thu Sep 30 07:34:57 2021
Results reported at Thu Sep 30 07:34:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin384 358.013 17.8394 338860801 339120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2352.0+1750 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

