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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1543
RA = 358.013, Dec = 17.8394
tmin = 639273601, tmax = 639532801
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='168738', job_status='RUN', time_executed='2021-09-30 07:40:34.347020', time_epoch_executed='1633012834.35' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168738/ft1_4FGL_J2352.0+1750_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168738/ft1_4FGL_J2352.0+1750_daily_bin1543.fits outfile=/scratch/kocevski/168738/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1543.fits ra=358.013 dec=17.8394 rad=12.0 tmin=639273601.0 tmax=639532801.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.28
user 5.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.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/168738/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.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/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/168738/ltcube_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.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/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits
.....................!
real 11.49
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/168738/ltcube_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.fits outfile=/scratch/kocevski/168738/expmap_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.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/168738/ltcube_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.fits
.....................!
real 190.00
user 184.69
sys 4.96

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/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits outfile=/scratch/kocevski/168738/cmap_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits outfile=/scratch/kocevski/168738/cmap_HighResolution_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/168738/ft2_4FGL_J2352.0+1750_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168738/Model_4FGL_J2352.0+1750_daily_bin1543.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/168738/ft1_filtered_4FGL_J2352.0+1750_daily_bin1543.fits.....................!
real 78.06
user 76.63
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36360E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.244       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7171       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30976E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96090       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=   6569.767     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1510 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.2675       -.72512E-06** at limit **
   2  Prefactor     13.243        13.368       -.28096E-06    .14760E-03
   3  Prefactor     .10000E-03    6.1892       -.28489E-07** at limit **
   4  Prefactor     5.2584        111.04       -.25466E-05   -.59553E-04
   5  Prefactor     4.7178        4.6853        .12662E-06    .82609E-04
   6  norm          5.0119        8.2050        .30468E-05    .17952E-03
   7  Prefactor     .10000E-03    12.676        .46011E-07** at limit **
   8  Prefactor     .10000E-03    6.6121       -.11741E-07** at limit **
   9  Prefactor     .10000E-03    5.2596        .70264E-06** at limit **
  10  Prefactor     .10000E-03    7.5168        .21824E-06** at limit **
  11  Prefactor     .10000E-03    9.3141       -.52372E-07** at limit **
  12  norm          .10000E-03    5.9260        .92690E-07** at limit **
  13  Prefactor     8.8893        8.8939        .28452E-06   -.10226E-04
  14  Prefactor     .10000E-03    53.437        .27105E-06** at limit **
  15  norm          .10000E-03    4.5765        .35212E-07** at limit **
  16  Prefactor     .10000E-03    2.6695        .47613E-07** at limit **
  17  Normalizat    1.0419        .21277       -.25969E-07    .22446E-04
  18  Prefactor     .96106        .12462       -.50391E-06    .27607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  Prefactor  = 13.2434
  Prefactor  = 0.0001
  Prefactor  = 5.25839
  Prefactor  = 4.71775
  norm       = 5.01191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.88932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04193
  Prefactor  = 0.961064
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.767     FROM HESSE     STATUS=OK           244 CALLS     1754 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    6.2204        .20946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.243        13.058        .11006E-03   -1.4980    
   3  Prefactor     .10000E-03    6.2048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2584        111.94        .17480E-03   -1.5249    
   5  Prefactor     4.7178        4.6778        .16646E-03   -1.5274    
   6  norm          5.0119        8.3152        .89809E-03   -1.5260    
   7  Prefactor     .10000E-03    12.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.099        .35187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.3408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.9643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8893        8.8937        .13443E-03   -1.5112    
  14  Prefactor     .10000E-03    54.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5787        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6772        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0419        .24833        .31446E-03   -.91639    
  18  Prefactor     .96106        .14650        .19694E-03   -.94039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9207e-09
Minuit parameter uncertainties:
  1  0.000486928
  2  13.0608
  3  1.02287e-05
  4  48.6257
  5  4.67817
  6  8.3171
  7  1.08571e-05
  8  1.25398e-05
  9  0.000450715
  10  4.40907e-05
  11  3.03132e-05
  12  1.491e-05
  13  8.895
  14  2.47563e-05
  15  4.26162e-06
  16  3.43798e-06
  17  0.248612
  18  0.146559
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  3.438e-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:  9.611e-01  1.466e-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:  1.042e+00  2.486e-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: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168738/likelihoodResults_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.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) = 6569.76874584
delta logL = -0.00177420529417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6569.76697167
delta logL = -3.60241756425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0620       1.0000          .0000       10.000    
     3 'Normalizat'    1.0419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96106       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=   6569.767     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .71E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    544.57        .12941E-02** at limit **
   2  Index         2.0232        8.4727        .20000        .10698E-04
   3  Normalizat    1.0419        .12635        .31445E-03   -.17028E-04
   4  Prefactor     .96106        .76778E-01    .19694E-03   -.16741E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6569.767     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      404 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    544.57        .31257E-03** at limit **
   2  Index         2.0232        8.4727        .16307E-04    .10698E-04
   3  Normalizat    1.0419        .12635        .64462E-06   -.17028E-04
   4  Prefactor     .96106        .76778E-01    .29792E-06   -.16741E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6569.767     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      442 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7766        .25882E-03** at limit **
   2  Index         1.7851        8.5175        .80000E-01   -.99476E-08
   3  Normalizat    1.0419        .24046        .12578E-04    .22777E-04
   4  Prefactor     .96106        .14626        .78776E-05    .35502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78507
  Normalizat = 1.04193
  Prefactor  = 0.961064
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.767     FROM HESSE     STATUS=OK            23 CALLS      465 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7464        .51764E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7851        8.2357        .32000E-02   -.69839    
   3  Normalizat    1.0419        .24032        .25156E-05   -.91639    
   4  Prefactor     .96106        .14620        .15755E-05   -.94039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92731e-12
Minuit parameter uncertainties:
  1  4.86875e-06
  2  259.278
  3  0.240571
  4  0.146256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168738': 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) = 6569.76697116
delta logL = 4.69550286653e-07

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  4.869e-06  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.785e+00  2.593e+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:  9.611e-01  1.463e-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:  1.042e+00  2.406e-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/168738/cmap_HighResolution_639273601_639532801_4FGL_J2352.0+1750_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-30 07:49:57.548693', job_id='168738', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1633013397.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1543' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 168738: <4FGL_J2352.0+1750_daily_bin1543> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin1543> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:22 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:24 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:40:24 2021
Terminated at Thu Sep 30 07:49:58 2021
Results reported at Thu Sep 30 07:49:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1543 358.013 17.8394 639273601 639532801 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 :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            576 sec.

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

