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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1373
RA = 359.755, Dec = 39.3669
tmin = 595209601, tmax = 595468801
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='240595', job_status='RUN', time_executed='2021-09-30 11:57:49.941279', time_epoch_executed='1633028269.94' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240595/ft1_4FGL_J2359.0+3922_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240595/ft1_4FGL_J2359.0+3922_daily_bin1373.fits outfile=/scratch/kocevski/240595/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1373.fits ra=359.755 dec=39.3669 rad=12.0 tmin=595209601.0 tmax=595468801.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.25
user 1.98
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.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/240595/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/240595/ft1_filtered_4FGL_J2359.0+3922_daily_bin1373.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.43
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240595/ft1_filtered_4FGL_J2359.0+3922_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/240595/ltcube_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.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/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits
.....................!
real 9.10
user 8.78
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240595/ft1_filtered_4FGL_J2359.0+3922_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/240595/ltcube_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.fits outfile=/scratch/kocevski/240595/expmap_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.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/240595/ltcube_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.fits
.....................!
real 141.96
user 137.34
sys 4.37

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/240595/ft1_filtered_4FGL_J2359.0+3922_daily_bin1373.fits scfile=/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits outfile=/scratch/kocevski/240595/cmap_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240595/ft1_filtered_4FGL_J2359.0+3922_daily_bin1373.fits scfile=/scratch/kocevski/240595/ft2_4FGL_J2359.0+3922_daily_bin1373.fits outfile=/scratch/kocevski/240595/cmap_HighResolution_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11171E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0620       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5941       1.0000         .10000E-03   10000.    
    16 'norm      '    .61988       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14200E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.315       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7890       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64769       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=   6426.936     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3141 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.086        44.703        .49997E-06   -.15417E-03
   2  Prefactor     .10000E-03    31.172       -.97109E-06** at limit **
   3  norm          4.6293        40.381       -.45370E-06   -.76029E-05
   4  Prefactor     3.0549        8.7501        .41501E-06    .12035E-04
   5  norm          2.0003        2.6565        .11621E-06   -.65852E-04
   6  Prefactor     8.2793        10.839        .61309E-06   -.26281E-04
   7  Prefactor     1.8519        4.6130        .36328E-06    .19545E-04
   8  Prefactor     18.200        29.458       -.14439E-06    .54124E-05
   9  Prefactor     25.240        42.101        .29072E-06   -.73415E-04
  10  Prefactor     .10000E-03    19.657       -.73388E-08** at limit **
  11  norm          .10000E-03    2.2899        .15639E-07** at limit **
  12  Prefactor     .10000E-03    3.9521       -.38756E-07** at limit **
  13  Prefactor     .10000E-03    6.4159        .24574E-07** at limit **
  14  norm          .10000E-03    .58402        .51037E-07** at limit **
  15  Prefactor     2.5965        10.394        .66099E-05    .12180E-04
  16  norm          .62461        4.0444        .26513E-06   -.13659E-03
  17  norm          .10000E-03    3.3701        .25566E-07** at limit **
  18  Prefactor     .10000E-03    7.6835       -.28256E-07** at limit **
  19  norm          .10000E-03    .57690        .23801E-07** at limit **
  20  Prefactor     .10007E-03    13.990        .18130E-05** at limit **
  21  Prefactor     .10000E-03    24.614       -.49951E-07** at limit **
  22  Prefactor     53.288        46.086        .29176E-06   -.21245E-03
  23  Prefactor     .10000E-03    69.880        .41181E-06** at limit **
  24  Prefactor     .10000E-03    7.8055        .24032E-06** at limit **
  25  Normalizat    1.7889        .25990        .31044E-06    .32122E-04
  26  Prefactor     .64768        .97163E-01   -.10976E-05   -.19725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.0861
  Prefactor  = 0.000100001
  norm       = 4.62929
  Prefactor  = 3.05487
  norm       = 2.00033
  Prefactor  = 8.27926
  Prefactor  = 1.85185
  Prefactor  = 18.1998
  Prefactor  = 25.2404
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.59654
  norm       = 0.624613
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  Prefactor  = 53.2878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78892
  Prefactor  = 0.647682
 **********
 **   18 **HESSE 
 **********

 FCN=   6426.936     FROM HESSE     STATUS=OK           462 CALLS     3603 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.086        44.968        .52185E-04   -1.4169    
   2  Prefactor     .10000E-03    31.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6293        39.954        .18848E-03   -1.5278    
   4  Prefactor     3.0549        8.6309        .23183E-03   -1.5358    
   5  norm          2.0003        2.6432        .14443E-03   -1.5425    
   6  Prefactor     8.2793        10.912        .69657E-03   -1.5132    
   7  Prefactor     1.8519        4.5145        .23580E-03   -1.5436    
   8  Prefactor     18.200        28.973        .93895E-04   -1.4854    
   9  Prefactor     25.240        42.398        .79717E-04   -1.4703    
  10  Prefactor     .10000E-03    19.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3310        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9559        .15565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .60988        .11953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5965        10.629        .12666E-02   -1.5386    
  16  norm          .62461        8.4437        .30707E-02   -1.5550    
  17  norm          .10000E-03    3.3802        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .57884        .59463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10007E-03    11.927        .10078       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.288        46.867        .54931E-04   -1.4247    
  23  Prefactor     .10000E-03    69.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7889        .31205        .30085E-03   -.69953    
  26  Prefactor     .64768        .11459        .18634E-03   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3626e-08
Minuit parameter uncertainties:
  1  44.9933
  2  0.00028787
  3  27.2239
  4  8.63443
  5  2.64334
  6  10.9144
  7  4.51532
  8  28.995
  9  42.4482
  10  7.18586e-06
  11  2.22043e-06
  12  4.3924e-06
  13  9.14869e-07
  14  2.05833e-06
  15  10.5098
  16  4.59347
  17  3.10439e-06
  18  5.73079e-06
  19  4.57747e-07
  20  0.00176344
  21  2.60784e-05
  22  46.8992
  23  5.35017e-05
  24  3.70879e-05
  25  0.312394
  26  0.114628
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  3.709e-05  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.477e-01  1.146e-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.789e+00  3.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240595/likelihoodResults_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.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) = 6426.93708752
delta logL = -0.000607628922808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6426.93647991
delta logL = -2.37059794017e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3669       1.0000          .0000       10.000    
     3 'Normalizat'    1.7888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64774       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=   6426.936     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.170        .90712E-02** at limit **
   2  Index         2.3870        8.0129        .50000       -.23211E-04
   3  Normalizat    1.7889        .22178E-01    .68017E-01    .10167E-03
   4  Prefactor     .64768        .88496E-02    .41701E-01    .13398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.38704
  Normalizat = 1.78892
  Prefactor  = 0.647684
 **********
 **   18 **HESSE 
 **********

 FCN=   6426.936     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1575.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3870        5.4802        .50000       -.54989    
   3  Normalizat    1.7889        .15287        .30085E-03   -.69953    
   4  Prefactor     .64768        .60875E-01    .18634E-03   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78842e-08
Minuit parameter uncertainties:
  1  0.00271195
  2  61.2237
  3  0.152909
  4  0.0608816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240595': 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) = 6426.93647968
delta logL = 2.03547642741e-07

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  2.712e-03  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.387e+00  6.122e+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:  6.477e-01  6.088e-02  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.789e+00  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/240595/cmap_HighResolution_595209601_595468801_4FGL_J2359.0+3922_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 12:09:12.915146', job_id='240595', GAL2='0.65', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1633028952.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1373' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 240595: <4FGL_J2359.0+3922_daily_bin1373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1373 359.755 39.3669 595209601 595468801 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 :                                   547.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

