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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1465
RA = 359.755, Dec = 39.3669
tmin = 619056001, tmax = 619315201
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='240736', job_status='RUN', time_executed='2021-09-30 11:56:03.681064', time_epoch_executed='1633028163.68' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240736/ft1_4FGL_J2359.0+3922_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240736/ft1_4FGL_J2359.0+3922_daily_bin1465.fits outfile=/scratch/kocevski/240736/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1465.fits ra=359.755 dec=39.3669 rad=12.0 tmin=619056001.0 tmax=619315201.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 3.60
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.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/240736/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/240736/ltcube_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.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/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits
.....................!
real 12.04
user 11.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/240736/ltcube_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.fits outfile=/scratch/kocevski/240736/expmap_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.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/240736/ltcube_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.fits
.....................!
real 191.20
user 185.91
sys 4.81

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/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits outfile=/scratch/kocevski/240736/cmap_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits outfile=/scratch/kocevski/240736/cmap_HighResolution_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.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/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/240736/ft2_4FGL_J2359.0+3922_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240736/Model_4FGL_J2359.0+3922_daily_bin1465.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/240736/ft1_filtered_4FGL_J2359.0+3922_daily_bin1465.fits.....................!
real 97.42
user 95.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.319       1.0000         .10000E-03   10000.    
     3 'norm      '    .23657E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6592       1.0000         .10000E-03   10000.    
     5 'norm      '    .11176E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1438       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27340E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.7958       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.130       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.436       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8382       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97082       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96958       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=   9111.064     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     2774 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9759        102.68       -.19379E-04   -.22229E-04
   2  Prefactor     30.337        24.463        .44125E-06    .25703E-04
   3  norm          .10007E-03    10.198        .79745E-06** at limit **
   4  Prefactor     6.6576        5.2530        .10345E-06   -.11995E-03
   5  norm          .10000E-03    1.3179        .16601E-06** at limit **
   6  Prefactor     2.1510        7.1944       -.36382E-05   -.13742E-03
   7  Prefactor     2.2430        2.5848        .71439E-07   -.94813E-04
   8  Prefactor     .10000E-03    13.639        .79301E-06** at limit **
   9  Prefactor     .10000E-03    57.768       -.14754E-04** at limit **
  10  Prefactor     .10000E-03    13.707        .48770E-06** at limit **
  11  norm          9.7965        2.9764       -.16902E-08    .12519E-03
  12  Prefactor     5.9583        7.3289        .94150E-06    .13349E-03
  13  Prefactor     .10000E-03    7.0732       -.60545E-07** at limit **
  14  norm          .10000E-03    .60632       -.14592E-07** at limit **
  15  Prefactor     .14212        4.5437       -.26062E-06    .49831E-04
  16  norm          .10000E-03    1.8064        .33140E-07** at limit **
  17  norm          13.538        8.4101       -.76386E-07    .14523E-04
  18  Prefactor     32.133        18.862       -.64392E-06   -.22483E-05
  19  norm          .10000E-03    .76907       -.23749E-07** at limit **
  20  Prefactor     17.276        20.976       -.18007E-05   -.19679E-04
  21  Prefactor     10.472        36.772       -.12194E-04   -.25267E-04
  22  Prefactor     .10000E-03    13.877        .13608E-06** at limit **
  23  Prefactor     .10000E-03    56.610       -.55999E-05** at limit **
  24  Prefactor     2.8331        2.6106        .75508E-06   -.22433E-02
  25  Normalizat    .97052        .19611        .13914E-05    .72083E-04
  26  Prefactor     .96956        .86724E-01   -.47840E-07    .13195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97594
  Prefactor  = 30.3366
  norm       = 0.000100065
  Prefactor  = 6.65761
  norm       = 0.0001
  Prefactor  = 2.15099
  Prefactor  = 2.24299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7965
  Prefactor  = 5.95835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.142117
  norm       = 0.0001
  norm       = 13.5378
  Prefactor  = 32.1334
  norm       = 0.0001
  Prefactor  = 17.2759
  Prefactor  = 10.4718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83306
  Normalizat = 0.970518
  Prefactor  = 0.969564
 **********
 **   18 **HESSE 
 **********

 FCN=   9111.064     FROM HESSE     STATUS=OK           472 CALLS     3246 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9759        101.23        .17845E-03   -1.5262    
   2  Prefactor     30.337        24.221        .72765E-04   -1.4606    
   3  norm          .10007E-03    48.725        .57084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6576        5.2166        .15550E-03   -1.5192    
   5  norm          .10000E-03    2.9155        .21185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1510        7.2616        .28147E-03   -1.5415    
   7  Prefactor     2.2430        2.5708        .15726E-03   -1.5408    
   8  Prefactor     .10000E-03    13.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.342        .42857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.7965        2.9785        .88005E-04   -1.5082    
  12  Prefactor     5.9583        7.3389        .16464E-03   -1.5220    
  13  Prefactor     .10000E-03    7.0771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4160        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14212        7.1886        .66735E-01   -1.5633    
  16  norm          .10000E-03    1.8108        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.538        8.4119        .10886E-03   -1.4972    
  18  Prefactor     32.133        18.890        .70690E-04   -1.4574    
  19  norm          .10000E-03    .78117        .81711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.276        20.985        .96369E-04   -1.4876    
  21  Prefactor     10.472        36.748        .12403E-03   -1.5061    
  22  Prefactor     .10000E-03    13.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.8331        6.1672        .12069E-02   -1.5371    
  25  Normalizat    .97052        .22551        .35063E-03   -.94025    
  26  Prefactor     .96956        .10034        .16543E-03   -.93751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45288e-09
Minuit parameter uncertainties:
  1  44.9752
  2  24.2292
  3  0.00356952
  4  5.21696
  5  5.59309e-05
  6  7.26453
  7  2.57096
  8  2.40251e-05
  9  0.000270084
  10  2.20735e-06
  11  2.97857
  12  7.33996
  13  1.40517e-06
  14  3.47446e-06
  15  2.02105
  16  2.98831e-06
  17  8.41259
  18  18.8933
  19  2.6933e-07
  20  20.9943
  21  36.8276
  22  1.13224e-05
  23  0.000196506
  24  6.16862
  25  0.225734
  26  0.10036
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.833e+00  6.169e+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:  9.696e-01  1.004e-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:  9.705e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/240736/likelihoodResults_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.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) = 9110.86962405
delta logL = 0.194654940704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9110.86013964
delta logL = 0.204139346466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2324       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0601       1.0000          .0000       10.000    
     3 'Normalizat'    .95363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97325       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=   9110.860     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2307        36.279        .10122E-01    .13575E-02
   2  Index         3.0606        2.9427        .13971        .18549E-03
   3  Normalizat    .95371        .44447E-01    .79828E-01    .29863E-04
   4  Prefactor     .97318        .20857E-01    .45932E-01    .12007E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23065
  Index      = 3.06064
  Normalizat = 0.953712
  Prefactor  = 0.973182
 **********
 **   18 **HESSE 
 **********

 FCN=   9110.860     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2307        121.92        .13730E-03   -1.5486    
   2  Index         3.0606        5.9914        .78858E-02   -.39832    
   3  Normalizat    .95371        .22056        .35334E-03   -.94598    
   4  Prefactor     .97318        .10539        .16513E-03   -.93629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83991e-06
Minuit parameter uncertainties:
  1  24.5486
  2  8.48659
  3  0.22077
  4  0.105409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240736': 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) = 9110.86013918
delta logL = 0.204139807764

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.231e+00  2.455e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  3.061e+00  8.487e+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:  9.732e-01  1.054e-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:  9.537e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/240736/cmap_HighResolution_619056001_619315201_4FGL_J2359.0+3922_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-30 12:11:15.649889', job_id='240736', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.97', time_epoch_completed='1633029075.65', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.04e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1465' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 240736: <4FGL_J2359.0+3922_daily_bin1465> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1465> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:55:46 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:55:48 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:48 2021
Terminated at Thu Sep 30 12:11:16 2021
Results reported at Thu Sep 30 12:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1465 359.755 39.3669 619056001 619315201 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 :                                   882.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

