/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 112 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2352.0+1750_daily_bin11
RA = 358.013, Dec = 17.8394
tmin = 242179201, tmax = 242438401
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='162829', job_status='RUN', time_executed='2021-09-30 07:22:25.630479', time_epoch_executed='1633011745.63' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162829/ft1_4FGL_J2352.0+1750_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162829/ft1_4FGL_J2352.0+1750_daily_bin11.fits outfile=/scratch/kocevski/162829/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin11.fits ra=358.013 dec=17.8394 rad=12.0 tmin=242179201.0 tmax=242438401.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 1.45
user 1.29
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.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/162829/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/162829/ltcube_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.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/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits
.....................!
real 12.63
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/162829/ltcube_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.fits outfile=/scratch/kocevski/162829/expmap_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.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/162829/ltcube_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.fits
.....................!
real 190.49
user 185.24
sys 4.93

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/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits outfile=/scratch/kocevski/162829/cmap_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits outfile=/scratch/kocevski/162829/cmap_HighResolution_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.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/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/162829/ft2_4FGL_J2352.0+1750_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/162829/Model_4FGL_J2352.0+1750_daily_bin11.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/162829/ft1_filtered_4FGL_J2352.0+1750_daily_bin11.fits.....................!
real 74.57
user 73.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.9612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7578       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4981       1.0000         .10000E-03   10000.    
    12 'norm      '    30.039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.774       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .60267       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2702       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=   6550.014     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1723 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2212         .0000    ** at limit **
   2  Prefactor     .10000E-03    5.1891         .0000    ** at limit **
   3  Prefactor     .10000E-03    13.759         .0000    ** at limit **
   4  Prefactor     .10000E-03    27.897         .0000    ** at limit **
   5  Prefactor     .10000E-03    1.4927         .0000    ** at limit **
   6  norm          5.9609        9.1574         .0000        .20791E-02
   7  Prefactor     .10000E-03    9.1187         .0000    ** at limit **
   8  Prefactor     3.7577        8.9844         .0000        .52820E-02
   9  Prefactor     .10000E-03    2.0517         .0000    ** at limit **
  10  Prefactor     9.9176        9.8016         .0000       -.66657E-04
  11  Prefactor     5.4989        11.116         .0000        .90732E-04
  12  norm          30.038        13.464         .0000        .22801E-03
  13  Prefactor     21.118        10.715         .0000       -.13018E-03
  14  Prefactor     36.775        29.050         .0000       -.32002E-03
  15  norm          .10000E-03    3.5911         .0000    ** at limit **
  16  Prefactor     .10000E-03    3.1649         .0000    ** at limit **
  17  Normalizat    .60267        .20355         .0000        .34614E-04
  18  Prefactor     1.2702        .13568         .0000        .33895E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96092
  Prefactor  = 0.0001
  Prefactor  = 3.75766
  Prefactor  = 0.0001
  Prefactor  = 9.9176
  Prefactor  = 5.49887
  norm       = 30.038
  Prefactor  = 21.1175
  Prefactor  = 36.7748
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.602665
  Prefactor  = 1.27022
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.014     FROM HESSE     STATUS=OK           242 CALLS     1965 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2693        .17449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2195        .18002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5147        .96523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.9609        9.1522        .82232E-03   -1.5220    
   7  Prefactor     .10000E-03    9.1286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7577        8.9810        .10414E-02   -1.5320    
   9  Prefactor     .10000E-03    2.0639        .11319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9176        9.7987        .12724E-03   -1.5078    
  11  Prefactor     5.4989        11.101        .17135E-03   -1.5239    
  12  norm          30.038        13.471        .73103E-04   -1.4611    
  13  Prefactor     21.118        10.721        .87162E-04   -1.4789    
  14  Prefactor     36.775        29.043        .66089E-04   -1.4494    
  15  norm          .10000E-03    3.5917        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2057        .14059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .60267        .22092        .38433E-03   -1.0787    
  18  Prefactor     1.2702        .14844        .18313E-03   -.84197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24615e-10
Minuit parameter uncertainties:
  1  2.90574e-07
  2  3.42148e-06
  3  4.75925e-06
  4  1.67708e-05
  5  4.62008e-07
  6  9.15436
  7  4.89089e-06
  8  8.98426
  9  2.97997e-07
  10  9.80032
  11  11.1051
  12  13.4719
  13  10.7222
  14  29.0541
  15  1.49563e-06
  16  1.04849e-06
  17  0.221239
  18  0.148488
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  1.048e-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.270e+00  1.485e-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:  6.027e-01  2.212e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162829/likelihoodResults_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.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) = 6550.01572934
delta logL = -0.00148131425067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6550.01424953
delta logL = -1.51107087731e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0390       1.0000          .0000       10.000    
     3 'Normalizat'    .60257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2703       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=   6550.014     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    29.763        .14473E-02** at limit **
   2  Index         1.9838        8.3428        .50000        .53606E-04
   3  Normalizat    .60267        .15071E-01    .38433E-03    .50288E-06
   4  Prefactor     1.2702        .10163E-01    .18313E-03   -.26011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101267
  Index      = 1.98381
  Normalizat = 0.602665
  Prefactor  = 1.27022
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.014     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10127E-03    128.57        .28947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9838        8.1022        .50000       -.64755    
   3  Normalizat    .60267        .32396E-01    .15373E-04   -1.0787    
   4  Prefactor     1.2702        .21843E-01    .73253E-05   -.84197    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.48053e-08
Minuit parameter uncertainties:
  1  0.0255824
  2  288.32
  3  0.0323968
  4  0.0218434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162829': 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) = 6550.01424694
delta logL = 1.08025324153e-06

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.013e-04  2.558e-02  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.984e+00  2.883e+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.270e+00  2.184e-02  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:  6.027e-01  3.240e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/162829/cmap_HighResolution_242179201_242438401_4FGL_J2352.0+1750_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-30 07:31:43.403781', job_id='162829', GAL2='1.27', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1633012303.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='11' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 162829: <4FGL_J2352.0+1750_daily_bin11> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin11> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:20:24 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:20:26 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:20:26 2021
Terminated at Thu Sep 30 07:31:44 2021
Results reported at Thu Sep 30 07:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin11 358.013 17.8394 242179201 242438401 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 :                                   556.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            680 sec.

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

