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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1250
RA = 359.755, Dec = 39.3669
tmin = 563328001, tmax = 563587201
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='240360', job_status='RUN', time_executed='2021-09-30 11:58:24.624350', time_epoch_executed='1633028304.62' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240360/ft1_4FGL_J2359.0+3922_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240360/ft2_4FGL_J2359.0+3922_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240360/ft1_4FGL_J2359.0+3922_daily_bin1250.fits outfile=/scratch/kocevski/240360/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1250.fits ra=359.755 dec=39.3669 rad=12.0 tmin=563328001.0 tmax=563587201.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.12
user 2.80
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240360/ft1_filtered_4FGL_J2359.0+3922_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/240360/ft2_4FGL_J2359.0+3922_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/240360/ltcube_563328001_563587201_4FGL_J2359.0+3922_daily_bin1250.fits outfile=/scratch/kocevski/240360/expmap_563328001_563587201_4FGL_J2359.0+3922_daily_bin1250.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/240360/ltcube_563328001_563587201_4FGL_J2359.0+3922_daily_bin1250.fits
.....................!
real 191.40
user 185.36
sys 5.57

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/240360/ft1_filtered_4FGL_J2359.0+3922_daily_bin1250.fits scfile=/scratch/kocevski/240360/ft2_4FGL_J2359.0+3922_daily_bin1250.fits outfile=/scratch/kocevski/240360/cmap_563328001_563587201_4FGL_J2359.0+3922_daily_bin1250.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.60
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.998       1.0000         .10000E-03   10000.    
     3 'norm      '    .36030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9074       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9614       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.801       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.021       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3130       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.035       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.900       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86104       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=   7040.881     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3099 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.686       -.78826E-06** at limit **
   2  Prefactor     19.000        23.964       -.14554E-06   -.10479E-03
   3  norm          .10002E-03    356.21       -.10642E-03** at limit **
   4  Prefactor     1.8995        17.379       -.14825E-04    .51633E-04
   5  norm          2.9614        1.9610       -.39619E-07   -.18039E-03
   6  Prefactor     .10000E-03    2.5935        .15482E-06** at limit **
   7  Prefactor     5.3614        4.2867       -.99085E-07   -.41029E-03
   8  Prefactor     5.5518        23.100        .15344E-06   -.29225E-04
   9  Prefactor     79.597        50.680       -.20771E-06   -.16539E-04
  10  Prefactor     22.820        45.707        .28908E-05    .12075E-04
  11  norm          .10000E-03    1.7995        .24448E-06** at limit **
  12  Prefactor     5.2974        8.8269       -.10492E-05   -.15359E-04
  13  Prefactor     53.021        33.012       -.14803E-06   -.28417E-04
  14  norm          3.3133        1.4689       -.29650E-07   -.42518E-03
  15  Prefactor     .10001E-03    18.351        .18020E-05** at limit **
  16  norm          .10000E-03    1.5959        .16617E-06** at limit **
  17  norm          .10000E-03    2.9921        .75098E-07** at limit **
  18  Prefactor     .10000E-03    14.327        .96942E-06** at limit **
  19  norm          2.2775        1.8745       -.25388E-07   -.19666E-04
  20  Prefactor     .10000E-03    5.5458        .12311E-06** at limit **
  21  Prefactor     19.059        52.338        .38822E-05    .99413E-05
  22  Prefactor     .10000E-03    43.700        .45564E-06** at limit **
  23  Prefactor     .10000E-03    41.939        .91654E-06** at limit **
  24  Prefactor     23.878        13.430       -.43890E-06    .47435E-04
  25  Normalizat    1.1162        .24450       -.37681E-05   -.73513E-04
  26  Prefactor     .86112        .98408E-01    .17873E-05    .70450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 19.0003
  norm       = 0.000100018
  Prefactor  = 1.89954
  norm       = 2.96139
  Prefactor  = 0.0001
  Prefactor  = 5.36142
  Prefactor  = 5.55184
  Prefactor  = 79.5969
  Prefactor  = 22.8195
  norm       = 0.0001
  Prefactor  = 5.29737
  Prefactor  = 53.0215
  norm       = 3.31328
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.27749
  Prefactor  = 0.0001
  Prefactor  = 19.0587
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 23.878
  Normalizat = 1.11618
  Prefactor  = 0.861118
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.881     FROM HESSE     STATUS=OK           466 CALLS     3565 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.000        23.953        .91890E-04   -1.4836    
   3  norm          .10002E-03    42.457        .10430       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8995        18.951        .15053E-02   -1.5432    
   5  norm          2.9614        1.9645        .93107E-04   -1.5364    
   6  Prefactor     .10000E-03    2.5961        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3614        4.2632        .14065E-03   -1.5245    
   8  Prefactor     5.5518        22.819        .17055E-03   -1.5237    
   9  Prefactor     79.597        50.825        .45013E-04   -1.3921    
  10  Prefactor     22.820        45.693        .83886E-04   -1.4752    
  11  norm          .10000E-03    1.8061        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2974        8.8078        .87325E-03   -1.5248    
  13  Prefactor     53.021        33.020        .55082E-04   -1.4250    
  14  norm          3.3133        1.4679        .65199E-04   -1.5344    
  15  Prefactor     .10001E-03    18.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6008        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9949        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2775        1.8749        .10110E-03   -1.5406    
  20  Prefactor     .10000E-03    5.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.059        52.325        .91800E-04   -1.4835    
  22  Prefactor     .10000E-03    43.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    41.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.878        14.769        .81936E-04   -1.4730    
  25  Normalizat    1.1162        .28813        .36448E-03   -.89234    
  26  Prefactor     .86112        .11577        .17049E-03   -.97513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9672e-09
Minuit parameter uncertainties:
  1  0.000214917
  2  23.965
  3  0.00176015
  4  12.0042
  5  1.96454
  6  2.09888e-05
  7  4.26345
  8  22.5258
  9  50.8532
  10  45.763
  11  2.8526e-05
  12  8.80997
  13  33.0315
  14  1.46794
  15  0.000669193
  16  1.70873e-05
  17  1.01789e-05
  18  0.000217493
  19  1.87491
  20  1.87933e-05
  21  52.4509
  22  0.000732106
  23  0.000184583
  24  14.7714
  25  0.288538
  26  0.1158
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.388e+01  1.477e+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:  8.611e-01  1.158e-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.116e+00  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.89
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 7.60e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 2.68e-05

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) = 7037.40137565
delta logL = 3.47991817984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7037.37903017
delta logL = 3.50226365882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6349       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9165       1.0000          .0000       10.000    
     3 'Normalizat'    .85669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93436       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=   7037.379     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      265 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6349        6.1885        .74194E-02    .68002E-03
   2  Index         3.9165        1.4901        .49495E-01    .25292E-03
   3  Normalizat    .85683        .10205        .92132E-01    .28812E-04
   4  Prefactor     .93432        .41230E-01    .45441E-01   -.17534E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63492
  Index      = 3.9165
  Normalizat = 0.856833
  Prefactor  = 0.934318
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.379     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6349        8.0586        .33038E-04   -1.5452    
   2  Index         3.9165        1.8289        .21120E-02   -.21843    
   3  Normalizat    .85683        .28887        .40810E-03   -.97994    
   4  Prefactor     .93432        .11811        .16417E-03   -.94952    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42945e-07
Minuit parameter uncertainties:
  1  7.26085
  2  1.87466
  3  0.289392
  4  0.118145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240360': 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) = 7037.37902996
delta logL = 3.5022638716

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.635e+00  7.261e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  3.917e+00  1.875e+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.343e-01  1.181e-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:  8.568e-01  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.50
Ra Dec: 359.755 39.367
Photon Index (Free Index): 3.92 +/- 1.87
Photon Flux (Free Index): 3.08e-07 +/- 1.13e-07
Energy Flux (Free Index): 4.69e-05 +/- 1.78e-05

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/240360/cmap_HighResolution_563328001_563587201_4FGL_J2359.0+3922_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.69e-05', photon_flux_error='7.60e-08', dlogl='3.50e+00', energy_flux='4.33e-05', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-09-30 12:09:58.454237', photon_index_error2='1.87', photon_index2='3.92', ts='6.89', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='1.12', time_epoch_completed='1633028998.45', return_code='0', job_id='240360', GAL2='0.93', EG2='0.86', return_code2='102', energy_flux_error='2.68e-05', photon_flux_error2='1.13e-07', ts2='15.50', photon_index='2.35' WHERE bin_id='1250' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:09:58 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1250 359.755 39.3669 563328001 563587201 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

