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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin812
RA = 359.755, Dec = 39.3669
tmin = 449798401, tmax = 450057601
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='237436', job_status='RUN', time_executed='2021-09-30 11:45:57.580921', time_epoch_executed='1633027557.58' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='812'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237436

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237436/ft1_4FGL_J2359.0+3922_daily_bin812.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237436/ft1_4FGL_J2359.0+3922_daily_bin812.fits outfile=/scratch/kocevski/237436/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin812.fits ra=359.755 dec=39.3669 rad=12.0 tmin=449798401.0 tmax=450057601.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 4.43
user 4.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.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/237436/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin812.fits evtable="EVENTS" outfile="/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits" evtable="EVENTS" scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits sctable="SC_DATA" outfile=/scratch/kocevski/237436/ltcube_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.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/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits
.....................!
real 11.96
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits sctable="SC_DATA" expcube=/scratch/kocevski/237436/ltcube_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits outfile=/scratch/kocevski/237436/expmap_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.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/237436/ltcube_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits
.....................!
real 191.33
user 186.16
sys 4.76

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/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits outfile=/scratch/kocevski/237436/cmap_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits outfile=/scratch/kocevski/237436/cmap_HighResolution_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237436/Model_4FGL_J2359.0+3922_daily_bin812.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/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits.....................!
real 82.86
user 81.48
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits', '/scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits', expMap='/scratch/kocevski/237436/expmap_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits', expCube='/scratch/kocevski/237436/ltcube_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/237436/Model_4FGL_J2359.0+3922_daily_bin812.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/237436/ft1_filtered_4FGL_J2359.0+3922_daily_bin812.fits
Spacecraft file(s): /scratch/kocevski/237436/ft2_4FGL_J2359.0+3922_daily_bin812.fits
Exposure map: /scratch/kocevski/237436/expmap_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits
Exposure cube: /scratch/kocevski/237436/ltcube_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/237436/Model_4FGL_J2359.0+3922_daily_bin812.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) = 7619.46588575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14463E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14901E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.137       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2747       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5796       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9410       1.0000         .10000E-03   10000.    
    19 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.822       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5448       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70262       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0830       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.

 FCN=   7619.461     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3117 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.715        39.283        .23791E-07    .12045E-04
   2  Prefactor     .10000E-03    8.8284       -.31383E-06** at limit **
   3  norm          .10000E-03    34.093        .18932E-05** at limit **
   4  Prefactor     .10000E-03    27.593       -.87280E-05** at limit **
   5  norm          .10000E-03    1.1987        .50692E-07** at limit **
   6  Prefactor     10.076        7.8216       -.73537E-07   -.52096E-05
   7  Prefactor     3.0116        3.4890       -.54596E-06    .12086E-03
   8  Prefactor     17.984        17.454        .51319E-06    .29738E-04
   9  Prefactor     12.127        16.651       -.16935E-06   -.49174E-05
  10  Prefactor     .10000E-03    10.365        .41401E-06** at limit **
  11  norm          6.4987        2.8762       -.71807E-09   -.32948E-05
  12  Prefactor     5.5766        4.5773       -.48735E-07    .31763E-04
  13  Prefactor     17.137        21.008        .10054E-06    .15796E-05
  14  norm          2.2746        1.7105       -.89677E-07    .16337E-03
  15  Prefactor     5.5813        12.623       -.37506E-06    .17669E-04
  16  norm          .10000E-03    5.0688        .37874E-06** at limit **
  17  norm          .10000E-03    4.0256       -.23678E-07** at limit **
  18  Prefactor     2.9365        14.769       -.12107E-05    .19171E-04
  19  norm          .10000E-03    1.6465        .75970E-07** at limit **
  20  Prefactor     .10000E-03    11.361       -.11668E-06** at limit **
  21  Prefactor     .10000E-03    12.920       -.39369E-06** at limit **
  22  Prefactor     .10000E-03    65.835        .18991E-05** at limit **
  23  Prefactor     21.789        54.890       -.14510E-05    .35915E-04
  24  Prefactor     3.5427        6.8973       -.20829E-05   -.12612E-03
  25  Normalizat    .70250        .22050       -.22830E-06   -.67559E-04
  26  Prefactor     1.0830        .10049       -.23638E-08   -.20717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0763
  Prefactor  = 3.01156
  Prefactor  = 17.9841
  Prefactor  = 12.1267
  Prefactor  = 0.0001
  norm       = 6.49866
  Prefactor  = 5.57663
  Prefactor  = 17.1368
  norm       = 2.27459
  Prefactor  = 5.58131
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.93653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7894
  Prefactor  = 3.5427
  Normalizat = 0.702499
  Prefactor  = 1.08303
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.461     FROM HESSE     STATUS=OK           464 CALLS     3581 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.715        39.146        .77515E-04   -1.4674    
   2  Prefactor     .10000E-03    8.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    35.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.090        .35304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9965        .18436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.076        7.8520        .12623E-03   -1.5073    
   7  Prefactor     3.0116        3.4505        .15526E-03   -1.5361    
   8  Prefactor     17.984        17.375        .94449E-04   -1.4860    
   9  Prefactor     12.127        16.649        .11503E-03   -1.5011    
  10  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4987        2.8756        .95223E-04   -1.5198    
  12  Prefactor     5.5766        4.5734        .16388E-03   -1.5236    
  13  Prefactor     17.137        21.006        .96751E-04   -1.4880    
  14  norm          2.2746        1.6973        .94232E-04   -1.5406    
  15  Prefactor     5.5813        12.517        .17008E-03   -1.5235    
  16  norm          .10000E-03    5.1639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.0290        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9365        14.552        .23684E-03   -1.5365    
  19  norm          .10000E-03    3.9196        .21615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    66.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.789        55.010        .85743E-04   -1.4774    
  24  Prefactor     3.5427        6.8637        .21469E-03   -1.5332    
  25  Normalizat    .70250        .24246        .39744E-03   -1.0379    
  26  Prefactor     1.0830        .11245        .15808E-03   -.90011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56724e-10
Minuit parameter uncertainties:
  1  39.1836
  2  1.59089e-05
  3  0.000105796
  4  0.000150796
  5  4.38075e-05
  6  7.85278
  7  3.45076
  8  17.3803
  9  16.6554
  10  2.37218e-05
  11  2.87563
  12  4.5737
  13  21.0146
  14  1.69736
  15  12.5227
  16  4.01721e-05
  17  8.20196e-07
  18  13.079
  19  1.24427e-05
  20  2.19771e-06
  21  1.22928e-05
  22  0.000135709
  23  55.1387
  24  6.86518
  25  0.24283
  26  0.112472
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  3.543e+00  6.865e+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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.083e+00  1.125e-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:  7.025e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237436/likelihoodResults_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.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) = 7619.4560746
delta logL = 0.00505394918582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7619.45180465
delta logL = 0.00932389815443

Fit tolerance = 1e-08

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

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

 FCN=   7619.452     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3268        197.71        .48393E-02    .24139E-03
   2  Index         2.2213        3.0543        .24663        .68207E-04
   3  Normalizat    .70428        .51061E-01    .89613E-01    .27555E-04
   4  Prefactor     1.0824        .23285E-01    .38300E-01   -.34129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32677
  Index      = 2.22128
  Normalizat = 0.70428
  Prefactor  = 1.08237
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.452     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3268        9.5884        .19357E-03   -1.5292    
   2  Index         2.2213        .95518        .84986E-02   -.58926    
   3  Normalizat    .70428        .22619        .39696E-03   -1.0372    
   4  Prefactor     1.0824        .11045        .15812E-03   -.90032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31723e-11
Minuit parameter uncertainties:
  1  9.59183
  2  0.963793
  3  0.226489
  4  0.110474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237436': 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) = 7619.45180143
delta logL = 0.00932711663063

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.327e+00  9.592e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.221e+00  9.638e-01  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:  1.082e+00  1.105e-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:  7.043e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/237436/cmap_HighResolution_449798401_450057601_4FGL_J2359.0+3922_daily_bin812.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-30 11:59:42.141307', job_id='237436', GAL2='1.08', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1633028382.14', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.33e-03', ts2='0.48', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='812' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 237436: <4FGL_J2359.0+3922_daily_bin812> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin812> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 11:45:44 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:45:45 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:45:45 2021
Terminated at Thu Sep 30 11:59:42 2021
Results reported at Thu Sep 30 11:59:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin812 359.755 39.3669 449798401 450057601 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 :                                   818.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

