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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1379
RA = 358.013, Dec = 17.8394
tmin = 596764801, tmax = 597024001
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='167577', job_status='RUN', time_executed='2021-09-30 07:40:08.160453', time_epoch_executed='1633012808.16' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167577/ft1_4FGL_J2352.0+1750_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167577/ft1_4FGL_J2352.0+1750_daily_bin1379.fits outfile=/scratch/kocevski/167577/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1379.fits ra=358.013 dec=17.8394 rad=12.0 tmin=596764801.0 tmax=597024001.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.51
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/167577/ltcube_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.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/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/167577/ltcube_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits outfile=/scratch/kocevski/167577/expmap_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.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/167577/ltcube_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits
.....................!
real 192.26
user 187.33
sys 4.57

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/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits scfile=/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits outfile=/scratch/kocevski/167577/cmap_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits scfile=/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits outfile=/scratch/kocevski/167577/cmap_HighResolution_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.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/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167577/Model_4FGL_J2352.0+1750_daily_bin1379.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/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits.....................!
real 80.09
user 78.74
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits', '/scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits', expMap='/scratch/kocevski/167577/expmap_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits', expCube='/scratch/kocevski/167577/ltcube_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/167577/Model_4FGL_J2352.0+1750_daily_bin1379.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/167577/ft1_filtered_4FGL_J2352.0+1750_daily_bin1379.fits
Spacecraft file(s): /scratch/kocevski/167577/ft2_4FGL_J2352.0+1750_daily_bin1379.fits
Exposure map: /scratch/kocevski/167577/expmap_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits
Exposure cube: /scratch/kocevski/167577/ltcube_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/167577/Model_4FGL_J2352.0+1750_daily_bin1379.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) = 7127.50042003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.818       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3668       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96233       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0364       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.

 FCN=   7126.819     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1476 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2859        1.0466        .65511E-07   -.13317E-02
   2  Prefactor     .10000E-03    10.791        .77759E-07** at limit **
   3  Prefactor     9.4579        10.302       -.51249E-07   -.72913E-05
   4  Prefactor     .10000E-03    35.923       -.32298E-06** at limit **
   5  Prefactor     43.819        7.5551        .66282E-07    .75252E-04
   6  norm          .10000E-03    4.2850        .84237E-07** at limit **
   7  Prefactor     .10000E-03    17.255       -.53467E-05** at limit **
   8  Prefactor     .10000E-03    2.3467        .45490E-07** at limit **
   9  Prefactor     .10000E-03    1.7152       -.18505E-08** at limit **
  10  Prefactor     4.8917        11.597       -.18180E-06   -.14184E-03
  11  Prefactor     .10000E-03    17.923        .59864E-05** at limit **
  12  norm          9.8025        8.9100       -.24595E-06   -.90428E-04
  13  Prefactor     .10000E-03    4.5537       -.13808E-05** at limit **
  14  Prefactor     5.3693        42.035        .63643E-05    .60640E-05
  15  norm          7.0672        10.492        .24667E-07   -.68624E-05
  16  Prefactor     .10000E-03    4.5863        .12020E-05** at limit **
  17  Normalizat    .96227        .20422        .82413E-07   -.53048E-04
  18  Prefactor     1.0365        .12944       -.36362E-06   -.24722E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2859
  Prefactor  = 0.0001
  Prefactor  = 9.45795
  Prefactor  = 0.0001
  Prefactor  = 43.8192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89166
  Prefactor  = 0.0001
  norm       = 9.80246
  Prefactor  = 0.0001
  Prefactor  = 5.36932
  norm       = 7.06715
  Prefactor  = 0.0001
  Normalizat = 0.962269
  Prefactor  = 1.03645
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.819     FROM HESSE     STATUS=OK           242 CALLS     1718 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2859        3.2854        .85488E-03   -1.5406    
   2  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4579        10.312        .13031E-03   -1.5093    
   4  Prefactor     .10000E-03    36.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.819        7.5699        .60564E-04   -1.4383    
   6  norm          .10000E-03    4.2911        .17067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3592        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7214        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8917        11.862        .90918E-03   -1.5266    
  11  Prefactor     .10000E-03    18.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8025        8.8990        .63998E-03   -1.5082    
  13  Prefactor     .10000E-03    4.6169        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3693        41.993        .17347E-03   -1.5244    
  15  norm          7.0672        10.490        .15090E-03   -1.5176    
  16  Prefactor     .10000E-03    4.6431        .17645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .96227        .24147        .32738E-03   -.94305    
  18  Prefactor     1.0365        .15079        .20146E-03   -.91524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24738e-10
Minuit parameter uncertainties:
  1  3.2857
  2  3.27319e-06
  3  10.3142
  4  4.47589e-06
  5  7.57006
  6  6.75138e-07
  7  1.85406e-06
  8  4.12876e-07
  9  1.62769e-07
  10  11.8673
  11  1.79369e-05
  12  8.90017
  13  1.38363e-06
  14  30.0604
  15  10.4922
  16  1.51024e-06
  17  0.241741
  18  0.150851
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  1.510e-06  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.036e+00  1.509e-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:  9.623e-01  2.417e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/167577/likelihoodResults_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.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) = 7126.82040503
delta logL = -0.00102676156894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7126.81937853
delta logL = -2.59899024968e-07

Fit tolerance = 1e-08

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

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

 FCN=   7126.819     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      252 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10835E-03    .90267E-01    .66829E-01** at limit **
   2  Index         1.8716        8.9527        .50000        .42514E-04
   3  Normalizat    .96227        .80716E-03    .32738E-03   -.65668E-04
   4  Prefactor     1.0365        .51690E-03    .20146E-03   -.30111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108347
  Index      = 1.87164
  Normalizat = 0.962271
  Prefactor  = 1.03645
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.819     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10835E-03    31.644        .31887E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8716        5.7218        .50000       -.67599    
   3  Normalizat    .96227        .12157E-01    .13095E-04   -.94305    
   4  Prefactor     1.0365        .77852E-02    .40293E-04   -.91524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56817e-08
Minuit parameter uncertainties:
  1  0.0325222
  2  253.348
  3  0.012157
  4  0.00778525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167577': 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) = 7126.81937675
delta logL = 1.51593576447e-06

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.083e-04  3.252e-02  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.872e+00  2.533e+02  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.036e+00  7.785e-03  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:  9.623e-01  1.216e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/167577/cmap_HighResolution_596764801_597024001_4FGL_J2352.0+1750_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-30 07:50:11.432466', job_id='167577', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1633013411.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1379' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 167577: <4FGL_J2352.0+1750_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin1379> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:36:10 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:36:11 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:36:11 2021
Terminated at Thu Sep 30 07:50:12 2021
Results reported at Thu Sep 30 07:50:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1379 358.013 17.8394 596764801 597024001 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

