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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin2
RA = 358.013, Dec = 17.8394
tmin = 239846401, tmax = 240105601
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='162813', job_status='RUN', time_executed='2021-09-30 07:20:54.205446', time_epoch_executed='1633011654.21' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162813/ft1_4FGL_J2352.0+1750_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162813/ft2_4FGL_J2352.0+1750_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162813/ft1_4FGL_J2352.0+1750_daily_bin2.fits outfile=/scratch/kocevski/162813/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin2.fits ra=358.013 dec=17.8394 rad=12.0 tmin=239846401.0 tmax=240105601.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.44
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162813/ft1_filtered_4FGL_J2352.0+1750_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/162813/ft2_4FGL_J2352.0+1750_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/162813/ltcube_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.fits outfile=/scratch/kocevski/162813/expmap_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.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/162813/ltcube_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.fits
.....................!
real 191.45
user 185.56
sys 5.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/162813/ft1_filtered_4FGL_J2352.0+1750_daily_bin2.fits scfile=/scratch/kocevski/162813/ft2_4FGL_J2352.0+1750_daily_bin2.fits outfile=/scratch/kocevski/162813/cmap_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162813/ft1_filtered_4FGL_J2352.0+1750_daily_bin2.fits scfile=/scratch/kocevski/162813/ft2_4FGL_J2352.0+1750_daily_bin2.fits outfile=/scratch/kocevski/162813/cmap_HighResolution_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.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 1.26
user 0.35
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1776       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60007E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5161       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0629       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0540       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=   11237.49     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1524 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8281        2.0203        .13353E-07   -.30355E-03
   2  Prefactor     4.5939        5.1509        .93810E-06   -.17044E-02
   3  Prefactor     6.1859        6.7604        .63219E-06   -.12143E-02
   4  Prefactor     .10000E-03    10.083        .19374E-05** at limit **
   5  Prefactor     .10000E-03    .82584       -.53999E-07** at limit **
   6  norm          .10000E-03    4.8720       -.57844E-06** at limit **
   7  Prefactor     .10000E-03    4.5703       -.91966E-06** at limit **
   8  Prefactor     .10000E-03    3.7857       -.33026E-07** at limit **
   9  Prefactor     .78912        2.7986       -.26660E-08    .10543E-04
  10  Prefactor     6.2597        11.003       -.35338E-05   -.15896E-03
  11  Prefactor     .10000E-03    7.6066        .15744E-06** at limit **
  12  norm          31.347        10.414        .14246E-05    .12814E-02
  13  Prefactor     .10001E-03    3.0612       -.68725E-06** at limit **
  14  Prefactor     .10000E-03    10.709       -.16282E-05** at limit **
  15  norm          .10000E-03    4.7381        .17136E-05** at limit **
  16  Prefactor     3.5183        3.1628       -.19846E-07   -.46158E-04
  17  Normalizat    1.0625        .16839       -.81493E-06    .17039E-03
  18  Prefactor     1.0542        .10332        .18612E-07    .13638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82811
  Prefactor  = 4.59388
  Prefactor  = 6.18591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.789117
  Prefactor  = 6.25972
  Prefactor  = 0.0001
  norm       = 31.347
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.51825
  Normalizat = 1.06254
  Prefactor  = 1.05416
 **********
 **   18 **HESSE 
 **********

 FCN=   11237.49     FROM HESSE     STATUS=OK           246 CALLS     1770 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8281        2.0037        .14915E-03   -1.5438    
   2  Prefactor     4.5939        6.3298        .93955E-03   -1.5279    
   3  Prefactor     6.1859        7.2045        .80759E-03   -1.5210    
   4  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .84301        .94047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78912        11.724        .31252E-02   -1.5530    
  10  Prefactor     6.2597        11.125        .16033E-03   -1.5208    
  11  Prefactor     .10000E-03    7.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.347        10.244        .71526E-04   -1.4588    
  13  Prefactor     .10001E-03    58.336        .32353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5183        3.1604        .17391E-03   -1.5333    
  17  Normalizat    1.0625        .19417        .31881E-03   -.90964    
  18  Prefactor     1.0542        .12008        .20267E-03   -.90945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24183e-09
Minuit parameter uncertainties:
  1  2.00381
  2  6.33072
  3  7.20554
  4  9.3969e-05
  5  1.14979e-07
  6  1.23969e-05
  7  2.83443e-05
  8  9.37992e-07
  9  6.08434
  10  11.1292
  11  1.21673e-05
  12  10.2441
  13  0.00176203
  14  7.50724e-05
  15  5.51031e-05
  16  3.16051
  17  0.194303
  18  0.120109
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  3.518e+00  3.161e+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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.054e+00  1.201e-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.063e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 358.013 17.839
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 9.15e-06 +/- 8.22e-06

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

Saving results to:
/scratch/kocevski/162813/likelihoodResults_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.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) = 11237.403662
delta logL = 0.0862594147948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11237.3988038
delta logL = 0.0911175604779

Fit tolerance = 1e-08

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

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

 FCN=   11237.40     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4013        98.633        .48003E-02    .61268E-04
   2  Index         1.8148        3.0773        .26979        .65621E-04
   3  Normalizat    1.0665        .62070E-01    .71928E-01    .36691E-04
   4  Prefactor     1.0529        .33412E-01    .39738E-01    .25732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40134
  Index      = 1.81482
  Normalizat = 1.06646
  Prefactor  = 1.05291
 **********
 **   18 **HESSE 
 **********

 FCN=   11237.40     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4013        4.3296        .19201E-03   -1.5288    
   2  Index         1.8148        .58132        .91792E-02   -.69065    
   3  Normalizat    1.0665        .18826        .31828E-03   -.90836    
   4  Prefactor     1.0529        .11991        .20277E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56889e-12
Minuit parameter uncertainties:
  1  4.32993
  2  0.583542
  3  0.188376
  4  0.119945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162813': 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) = 11237.3988031
delta logL = 0.0911183026947

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  4.401e+00  4.330e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.815e+00  5.835e-01  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.053e+00  1.199e-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.066e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 358.013 17.839
Photon Index (Free Index): 1.81 +/- 0.58
Photon Flux (Free Index): 1.20e-08 +/- 1.35e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.92e-05

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/162813/cmap_HighResolution_239846401_240105601_4FGL_J2352.0+1750_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='1.37e-05', photon_flux_error='1.39e-08', dlogl='9.11e-02', energy_flux='9.15e-06', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-09-30 07:33:05.841555', photon_index_error2='0.58', photon_index2='1.81', ts='3.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.31e-08', energy_flux_error2='1.92e-05', EG='1.06', time_epoch_completed='1633012385.84', return_code='0', job_id='162813', GAL2='1.05', EG2='1.07', return_code2='0', energy_flux_error='8.22e-06', photon_flux_error2='1.35e-08', ts2='3.18', photon_index='2.07' WHERE bin_id='2' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:33:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 162813: <4FGL_J2352.0+1750_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin2 358.013 17.8394 239846401 240105601 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 :                                   731.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

