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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1287
RA = 359.755, Dec = 39.3669
tmin = 572918401, tmax = 573177601
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='240418', job_status='RUN', time_executed='2021-09-30 11:58:01.896456', time_epoch_executed='1633028281.9' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240418/ft1_4FGL_J2359.0+3922_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240418/ft1_4FGL_J2359.0+3922_daily_bin1287.fits outfile=/scratch/kocevski/240418/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1287.fits ra=359.755 dec=39.3669 rad=12.0 tmin=572918401.0 tmax=573177601.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.93
user 3.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240418/ft1_filtered_4FGL_J2359.0+3922_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/240418/ltcube_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.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/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits
.....................!
real 9.56
user 9.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240418/ft1_filtered_4FGL_J2359.0+3922_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/240418/ltcube_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.fits outfile=/scratch/kocevski/240418/expmap_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.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/240418/ltcube_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.fits
.....................!
real 151.37
user 146.60
sys 4.51

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/240418/ft1_filtered_4FGL_J2359.0+3922_daily_bin1287.fits scfile=/scratch/kocevski/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits outfile=/scratch/kocevski/240418/cmap_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.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.51
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240418/ft1_filtered_4FGL_J2359.0+3922_daily_bin1287.fits scfile=/scratch/kocevski/240418/ft2_4FGL_J2359.0+3922_daily_bin1287.fits outfile=/scratch/kocevski/240418/cmap_HighResolution_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.064       1.0000         .10000E-03   10000.    
     3 'norm      '    23.865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7300       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.168       1.0000         .10000E-03   10000.    
    11 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.899       1.0000         .10000E-03   10000.    
    14 'norm      '    .39089E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9330       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8611       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95526       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0083       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=   8604.751     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     2758 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.425       -.64477E-06** at limit **
   2  Prefactor     14.064        13.343       -.35232E-06    .14709E-05
   3  norm          23.869        16.984        .15042E-06   -.10554E-03
   4  Prefactor     .10002E-03    3.3781        .79038E-06** at limit **
   5  norm          .10000E-03    .79405       -.82983E-08** at limit **
   6  Prefactor     1.7320        3.3624        .16856E-06   -.15226E-03
   7  Prefactor     .10001E-03    1.3254       -.36099E-06** at limit **
   8  Prefactor     16.781        16.762        .13745E-05    .26454E-03
   9  Prefactor     .10000E-03    33.737        .64444E-05** at limit **
  10  Prefactor     20.169        27.017        .93648E-06    .60333E-04
  11  norm          .10000E-03    1.3479       -.98041E-07** at limit **
  12  Prefactor     3.5673        3.3456        .14506E-05   -.29188E-02
  13  Prefactor     18.896        18.606       -.58618E-06   -.39130E-04
  14  norm          .43529E-01    .45979       -.59451E-07    .83247E-04
  15  Prefactor     .10000E-03    4.5716       -.36847E-06** at limit **
  16  norm          .10000E-03    2.6496        .21254E-07** at limit **
  17  norm          .10000E-03    4.0702        .37761E-06** at limit **
  18  Prefactor     .10000E-03    10.680       -.13502E-05** at limit **
  19  norm          .10000E-03    1.2785        .37243E-07** at limit **
  20  Prefactor     .10000E-03    5.6659        .19190E-06** at limit **
  21  Prefactor     .10000E-03    40.949       -.35776E-06** at limit **
  22  Prefactor     1.9084        57.288       -.20206E-04   -.13686E-03
  23  Prefactor     .10000E-03    25.206       -.41484E-05** at limit **
  24  Prefactor     7.8622        6.8251        .15103E-06   -.70293E-03
  25  Normalizat    .95517        .19185        .53399E-06    .12084E-04
  26  Prefactor     1.0083        .88250E-01   -.21473E-06    .13506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.0638
  norm       = 23.8693
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 1.73197
  Prefactor  = 0.000100009
  Prefactor  = 16.7809
  Prefactor  = 0.000100002
  Prefactor  = 20.1693
  norm       = 0.0001
  Prefactor  = 3.56725
  Prefactor  = 18.8965
  norm       = 0.0435288
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90835
  Prefactor  = 0.000100001
  Prefactor  = 7.86221
  Normalizat = 0.955171
  Prefactor  = 1.0083
 **********
 **   18 **HESSE 
 **********

 FCN=   8604.751     FROM HESSE     STATUS=OK           468 CALLS     3226 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.064        13.342        .10680E-03   -1.4958    
   3  norm          23.869        16.757        .81997E-04   -1.4730    
   4  Prefactor     .10002E-03    12.503        .31524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .80109        .80709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7320        3.3355        .22978E-03   -1.5445    
   7  Prefactor     .10001E-03    2.8626        .35096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.781        16.956        .97781E-04   -1.4888    
   9  Prefactor     .10000E-03    34.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.169        27.031        .89187E-04   -1.4809    
  11  norm          .10000E-03    3.6867        .20885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5673        4.9180        .10700E-02   -1.5330    
  13  Prefactor     18.896        18.607        .92130E-04   -1.4838    
  14  norm          .43529E-01    2.9806        .12186E-02   -1.5666    
  15  Prefactor     .10000E-03    4.6102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7455        .29485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.0759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3603        .20342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9084        61.239        .29871E-03   -1.5432    
  23  Prefactor     .10000E-03    25.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8622        6.8292        .71506E-03   -1.5147    
  25  Normalizat    .95517        .22043        .34396E-03   -.94548    
  26  Prefactor     1.0083        .10213        .16054E-03   -.92453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44303e-09
Minuit parameter uncertainties:
  1  4.07728e-05
  2  13.3444
  3  16.7605
  4  0.000998038
  5  5.58619e-07
  6  3.33584
  7  0.000313446
  8  16.9605
  9  0.000476841
  10  27.0473
  11  1.13316e-05
  12  4.91856
  13  18.6129
  14  0.719599
  15  1.1939e-05
  16  2.44808e-06
  17  1.07899e-05
  18  5.32686e-05
  19  5.22023e-06
  20  1.11703e-05
  21  4.42868e-05
  22  21.6446
  23  0.000320028
  24  6.82986
  25  0.220643
  26  0.102154
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.862e+00  6.830e+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.008e+00  1.022e-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.552e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/240418/likelihoodResults_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.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) = 8604.48464341
delta logL = 0.265896171153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8604.46388237
delta logL = 0.286657212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8124       1.0000          .0000       10.000    
     3 'Normalizat'    .97397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8604.464     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.112        9.7844        .12601E-03   -.77378E-03
   2  Index         1.8126        .76224        .97481E-02   -.21938E-03
   3  Normalizat    .97394        .21212        .34113E-03    .87383E-04
   4  Prefactor     1.0054        .10170        .16078E-03    .16189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1116
  Index      = 1.81259
  Normalizat = 0.97394
  Prefactor  = 1.00542
 **********
 **   18 **HESSE 
 **********

 FCN=   8604.464     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.112        9.8603        .25203E-04   -1.5072    
   2  Index         1.8126        .76801        .38992E-03   -.69122    
   3  Normalizat    .97394        .21220        .13645E-04   -.93909    
   4  Prefactor     1.0054        .10177        .32157E-04   -.92549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08304e-09
Minuit parameter uncertainties:
  1  9.86193
  2  0.773191
  3  0.212388
  4  0.101787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240418': 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) = 8604.46388229
delta logL = 0.286657285151

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.011e+01  9.862e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  1.813e+00  7.732e-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.005e+00  1.018e-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.739e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 359.755 39.367
Photon Index (Free Index): 1.81 +/- 0.77
Photon Flux (Free Index): 1.94e-08 +/- 3.33e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.87e-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/240418/cmap_HighResolution_572918401_573177601_4FGL_J2359.0+3922_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='2.23e-05', photon_flux_error='3.51e-08', dlogl='2.87e-01', energy_flux='1.43e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-30 12:11:51.403508', photon_index_error2='0.77', photon_index2='1.81', ts='3.33', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='2.87e-05', EG='0.96', time_epoch_completed='1633029111.4', return_code='0', job_id='240418', GAL2='1.01', EG2='0.97', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.33e-08', ts2='3.91', photon_index='2.35' WHERE bin_id='1287' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 240418: <4FGL_J2359.0+3922_daily_bin1287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1287 359.755 39.3669 572918401 573177601 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

