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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1305
RA = 359.755, Dec = 39.3669
tmin = 577584001, tmax = 577843201
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='240490', job_status='RUN', time_executed='2021-09-30 11:57:36.141241', time_epoch_executed='1633028256.14' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240490/ft1_4FGL_J2359.0+3922_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240490/ft1_4FGL_J2359.0+3922_daily_bin1305.fits outfile=/scratch/kocevski/240490/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1305.fits ra=359.755 dec=39.3669 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.85
user 2.61
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.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/240490/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/240490/ltcube_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.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/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits
.....................!
real 12.17
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/240490/ltcube_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits outfile=/scratch/kocevski/240490/expmap_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.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/240490/ltcube_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits
.....................!
real 192.05
user 187.68
sys 4.03

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits outfile=/scratch/kocevski/240490/cmap_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.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=359.755 yref=39.3669 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits outfile=/scratch/kocevski/240490/cmap_HighResolution_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.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=359.755 yref=39.3669 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240490/Model_4FGL_J2359.0+3922_daily_bin1305.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits.....................!
real 33.01
user 31.19
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits', '/scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits', expMap='/scratch/kocevski/240490/expmap_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits', expCube='/scratch/kocevski/240490/ltcube_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240490/Model_4FGL_J2359.0+3922_daily_bin1305.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/240490/ft1_filtered_4FGL_J2359.0+3922_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/240490/ft2_4FGL_J2359.0+3922_daily_bin1305.fits
Exposure map: /scratch/kocevski/240490/expmap_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits
Exposure cube: /scratch/kocevski/240490/ltcube_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240490/Model_4FGL_J2359.0+3922_daily_bin1305.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) = 1983.20014076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.251       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10423       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1164       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44472E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69330E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8071       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1587.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.893       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2705       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.891       1.0000         .10000E-03   10000.    
    19 'norm      '    8.5105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16716E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    74.171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0591       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1704       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1981.624     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     2442 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.789        29.989       -.57981E-04   -.26388E-02
   2  Prefactor     .10000E-03    119.34        .70833E-04** at limit **
   3  norm          .10000E-03    16.800       -.18013E-04** at limit **
   4  Prefactor     .10000E-03    7.5512       -.23651E-05** at limit **
   5  norm          .10000E-03    4.5459        .23296E-05** at limit **
   6  Prefactor     7.0176        12.644       -.18792E-04   -.10576E-02
   7  Prefactor     .10000E-03    15.575        .10684E-04** at limit **
   8  Prefactor     .10000E-03    99.802        .52763E-04** at limit **
   9  Prefactor     .10015E-03    144.28        .31115E-03** at limit **
  10  Prefactor     .11380E-03    797.82        .48310E-03** at limit **
  11  norm          .10000E-03    19.505       -.34167E-05** at limit **
  12  Prefactor     1588.0        7.7829        .37589E-05   -.21770E-01
  13  Prefactor     15.205        24.230        .31658E-04    .26802E-03
  14  norm          .10000E-03    .62135        .79220E-06** at limit **
  15  Prefactor     1.2629        54.592       -.13116E-03    .18184E-04
  16  norm          .10000E-03    3.1755       -.40587E-05** at limit **
  17  norm          .10000E-03    5.1300        .16567E-05** at limit **
  18  Prefactor     22.732        29.458       -.52034E-04    .57465E-03
  19  norm          8.5108        4.4364       -.85124E-06    .58675E-04
  20  Prefactor     .10000E-03    26.438       -.47538E-05** at limit **
  21  Prefactor     .23175E-03    3.2821        .46166E-04** at limit **
  22  Prefactor     22.413        13.141        .35792E-04    .28798E-02
  23  Prefactor     65.945        138.65       -.23863E-03    .46305E-03
  24  Prefactor     5.1276        24.131        .42497E-04   -.47173E-03
  25  Normalizat    1.1695        .51330        .80024E-04    .42547E-04
  26  Prefactor     .66821        .18083       -.26310E-04    .61375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7895
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.01764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 0.000113798
  norm       = 0.0001
  Prefactor  = 1587.97
  Prefactor  = 15.2052
  norm       = 0.0001
  Prefactor  = 1.2629
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.7322
  norm       = 8.51083
  Prefactor  = 0.0001
  Prefactor  = 0.00023175
  Prefactor  = 22.4132
  Prefactor  = 65.9446
  Prefactor  = 5.12765
  Normalizat = 1.16954
  Prefactor  = 0.668211
 **********
 **   18 **HESSE 
 **********

 FCN=   1981.624     FROM HESSE     STATUS=OK           504 CALLS     2946 TOTAL
                     EDM=   .66E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.789        112.39        .18212E-02   -1.4580    
   2  Prefactor     .10000E-03    119.66        .95314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0176        28.939        .37593E-02   -1.5178    
   7  Prefactor     .10000E-03    15.542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    99.828        .10607E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10015E-03    146.84        .93576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11380E-03    860.06        .51717E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1588.0        1328.8        .27362E-03   -.75105    
  13  Prefactor     15.205        24.252        .25947E-02   -1.4928    
  14  norm          .10000E-03    .61327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2629        57.878        .98682E-02   -1.5483    
  16  norm          .10000E-03    3.1742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.732        30.879        .20930E-02   -1.4754    
  19  norm          8.5108        4.4590        .34353E-02   -1.5124    
  20  Prefactor     .10000E-03    26.422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .23175E-03    2156.9        .10192E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.413        141.27        .21500E-02   -1.4761    
  23  Prefactor     65.945        141.91        .11655E-02   -1.4082    
  24  Prefactor     5.1276        24.494        .50032E-02   -1.5255    
  25  Normalizat    1.1695        .47323        .73567E-01   -.87549    
  26  Prefactor     .66821        .15431        .41977E-01   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59452e-05
Minuit parameter uncertainties:
  1  113.152
  2  0.000757504
  3  1.82712e-05
  4  5.45775e-06
  5  4.89037e-06
  6  28.525
  7  9.08744e-06
  8  0.000309658
  9  0.00942094
  10  0.221124
  11  3.65423e-05
  12  1360
  13  24.2673
  14  3.43555e-07
  15  17.116
  16  2.78802e-06
  17  2.3347e-06
  18  30.9006
  19  4.45913
  20  7.23938e-06
  21  1.10876
  22  112.935
  23  142.643
  24  22.4287
  25  0.47497
  26  0.154413
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  5.128e+00  2.243e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.682e-01  1.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.170e+00  4.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 2.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240490/likelihoodResults_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.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) = 1981.62347134
delta logL = 0.000372938417513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1981.62321835
delta logL = 0.000625924426913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6616       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4148       1.0000          .0000       10.000    
     3 'Normalizat'    1.1681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66840       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   1981.623     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      260 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6610        30.890        .18640E-03    .47009E-04
   2  Index         2.4128        2.0936        .98903E-02    .17594E-04
   3  Normalizat    1.1686        .45146        .32568E-03   -.34131E-04
   4  Prefactor     .66847        .17419        .16118E-03   -.64526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66097
  Index      = 2.41279
  Normalizat = 1.16855
  Prefactor  = 0.668466
 **********
 **   18 **HESSE 
 **********

 FCN=   1981.623     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6610        22.616        .74559E-05   -1.5276    
   2  Index         2.4128        1.8131        .39561E-03   -.54386    
   3  Normalizat    1.1686        .45166        .13027E-04   -.87580    
   4  Prefactor     .66847        .17423        .32235E-04   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77366e-11
Minuit parameter uncertainties:
  1  20.5462
  2  1.87232
  3  0.453171
  4  0.174371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240490': 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) = 1981.62321454
delta logL = 0.000629739845635

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.661e+00  2.055e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.413e+00  1.872e+00  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.685e-01  1.744e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.169e+00  4.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 359.755 39.367

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/240490/cmap_HighResolution_577584001_577843201_4FGL_J2359.0+3922_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-02', job_status='DONE', photon_flux_upper_limit='2.83e-07', time_completed='2021-09-30 12:06:47.521170', job_id='240490', GAL2='0.67', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1633028807.52', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='6.30e-04', ts2='0.11', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1305' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 240490: <4FGL_J2359.0+3922_daily_bin1305> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:55:22 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:55:25 2021
Terminated at Thu Sep 30 12:06:48 2021
Results reported at Thu Sep 30 12:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1305 359.755 39.3669 577584001 577843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   425.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            686 sec.

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

