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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin492
RA = 358.013, Dec = 17.8394
tmin = 366854401, tmax = 367113601
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='164479', job_status='RUN', time_executed='2021-09-30 07:25:46.491833', time_epoch_executed='1633011946.49' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164479

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164479/ft1_4FGL_J2352.0+1750_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164479/ft2_4FGL_J2352.0+1750_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164479/ft1_4FGL_J2352.0+1750_daily_bin492.fits outfile=/scratch/kocevski/164479/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin492.fits ra=358.013 dec=17.8394 rad=12.0 tmin=366854401.0 tmax=367113601.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.35
user 5.10
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164479/ft1_filtered_4FGL_J2352.0+1750_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/164479/ft2_4FGL_J2352.0+1750_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/164479/ltcube_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.fits outfile=/scratch/kocevski/164479/expmap_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.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/164479/ltcube_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.fits
.....................!
real 190.94
user 185.71
sys 4.80

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/164479/ft1_filtered_4FGL_J2352.0+1750_daily_bin492.fits scfile=/scratch/kocevski/164479/ft2_4FGL_J2352.0+1750_daily_bin492.fits outfile=/scratch/kocevski/164479/cmap_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.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/164479/ft1_filtered_4FGL_J2352.0+1750_daily_bin492.fits scfile=/scratch/kocevski/164479/ft2_4FGL_J2352.0+1750_daily_bin492.fits outfile=/scratch/kocevski/164479/cmap_HighResolution_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0580       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0319       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13601E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.245       1.0000         .10000E-03   10000.    
    15 'norm      '    10.346       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96014       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .73758       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96296       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=   5353.612     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1490 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5647        2.3410       -.16662E-06   -.68480E-04
   2  Prefactor     .10000E-03    7.4779        .10097E-05** at limit **
   3  Prefactor     4.0556        8.8267       -.71748E-06   -.55277E-03
   4  Prefactor     .10000E-03    35.119        .96348E-06** at limit **
   5  Prefactor     6.0335        4.5034       -.20987E-07   -.11373E-04
   6  norm          .10000E-03    7.2460       -.67700E-06** at limit **
   7  Prefactor     .10000E-03    17.444       -.28465E-08** at limit **
   8  Prefactor     .10000E-03    2.1627        .11275E-06** at limit **
   9  Prefactor     6.7820        5.2458       -.91500E-07   -.49151E-03
  10  Prefactor     .10000E-03    6.7061        .60794E-06** at limit **
  11  Prefactor     .10000E-03    7.2086       -.10248E-05** at limit **
  12  norm          .10000E-03    9.1185        .65664E-06** at limit **
  13  Prefactor     2.4678        3.2026        .71043E-06   -.14650E-02
  14  Prefactor     14.234        28.326       -.15325E-04   -.39792E-04
  15  norm          10.344        15.268       -.54864E-06    .27962E-05
  16  Prefactor     .96068        12.617       -.15765E-05   -.14605E-03
  17  Normalizat    .73769        .19546        .21494E-05    .10466E-04
  18  Prefactor     .96290        .12275        .66373E-07    .92765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56474
  Prefactor  = 0.0001
  Prefactor  = 4.05563
  Prefactor  = 0.0001
  Prefactor  = 6.03351
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.4678
  Prefactor  = 14.2338
  norm       = 10.3444
  Prefactor  = 0.960681
  Normalizat = 0.737689
  Prefactor  = 0.962902
 **********
 **   18 **HESSE 
 **********

 FCN=   5353.612     FROM HESSE     STATUS=OK           244 CALLS     1734 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5647        2.3079        .12928E-03   -1.5458    
   2  Prefactor     .10000E-03    7.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0556        9.4418        .10008E-02   -1.5305    
   4  Prefactor     .10000E-03    35.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0335        4.5052        .12505E-03   -1.5217    
   6  norm          .10000E-03    7.2848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1722        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7820        5.3143        .72008E-03   -1.5187    
  10  Prefactor     .10000E-03    6.7405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.3672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4678        6.7838        .13012E-02   -1.5394    
  14  Prefactor     14.234        28.522        .10612E-03   -1.4953    
  15  norm          10.344        15.275        .12457E-03   -1.5065    
  16  Prefactor     .96068        13.236        .48784E-03   -1.5512    
  17  Normalizat    .73769        .22953        .30073E-03   -1.0242    
  18  Prefactor     .96290        .14354        .17545E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05742e-09
Minuit parameter uncertainties:
  1  2.30802
  2  1.24685e-06
  3  9.44531
  4  3.02151e-05
  5  4.50549
  6  8.43658e-06
  7  2.04969e-05
  8  9.00715e-07
  9  5.3147
  10  7.05006e-05
  11  6.90013e-06
  12  0.000177293
  13  6.78591
  14  28.5498
  15  15.2808
  16  7.13335
  17  0.22983
  18  0.143599
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  9.607e-01  7.133e+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:  9.629e-01  1.436e-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:  7.377e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164479/likelihoodResults_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.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) = 5351.10242765
delta logL = 2.51005026309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5350.96898003
delta logL = 2.64349788935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51929E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4245       1.0000          .0000       10.000    
     3 'Normalizat'    .55415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0407       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=   5350.969     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      282 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51209E-02    .42182E-01    .62393E-03    .84748E-02
   2  Index         5.4294        1.8359        .59335E-01    .21677E-03
   3  Normalizat    .55462        .65168E-01    .77465E-01    .34676E-04
   4  Prefactor     1.0404        .42704E-01    .40490E-01    .13533E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00512085
  Index      = 5.42939
  Normalizat = 0.554619
  Prefactor  = 1.0404
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.969     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51209E-02    .71155E-01    .26859E-05   -1.5694    
   2  Index         5.4294        2.5367        .24659E-02    .85984E-01
   3  Normalizat    .55462        .20245        .34301E-03   -1.0995    
   4  Prefactor     1.0404        .13130        .16936E-03   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03772e-10
Minuit parameter uncertainties:
  1  0.0378028
  2  2.66151
  3  0.202724
  4  0.131341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164479': 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) = 5350.96897597
delta logL = 2.64350194561

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.040e+00  1.313e-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:  5.546e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 358.013 17.839
Photon Index (Free Index): 5.43 +/- 2.66
Photon Flux (Free Index): 1.22e-07 +/- 6.43e-08
Energy Flux (Free Index): 1.57e-05 +/- 8.94e-06

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/164479/cmap_HighResolution_366854401_367113601_4FGL_J2352.0+1750_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', comment='SUCCESS', energy_flux2='1.57e-05', dlogl='2.64e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-30 07:34:28.741294', photon_index_error2='2.66', photon_index2='5.43', ts='0.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.72e-08', energy_flux_error2='8.94e-06', EG='0.74', time_epoch_completed='1633012468.74', return_code='0', job_id='164479', GAL2='1.04', EG2='0.55', return_code2='102', photon_flux_error2='6.43e-08', ts2='6.29', photon_index='2.07' WHERE bin_id='492' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:34:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 164479: <4FGL_J2352.0+1750_daily_bin492> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin492> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:25:31 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:25:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:25:33 2021
Terminated at Thu Sep 30 07:34:29 2021
Results reported at Thu Sep 30 07:34:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin492 358.013 17.8394 366854401 367113601 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 :                                   518.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            538 sec.

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

