/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 204 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin48
RA = 359.755, Dec = 39.3669
tmin = 251769601, tmax = 252028801
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='233168', job_status='RUN', time_executed='2021-09-30 11:34:48.642117', time_epoch_executed='1633026888.64' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233168/ft1_4FGL_J2359.0+3922_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233168/ft1_4FGL_J2359.0+3922_daily_bin48.fits outfile=/scratch/kocevski/233168/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin48.fits ra=359.755 dec=39.3669 rad=12.0 tmin=251769601.0 tmax=252028801.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.14
user 1.96
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233168/ft1_filtered_4FGL_J2359.0+3922_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/233168/ltcube_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.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/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits
.....................!
real 12.23
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233168/ft1_filtered_4FGL_J2359.0+3922_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/233168/ltcube_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.fits outfile=/scratch/kocevski/233168/expmap_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.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/233168/ltcube_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.fits
.....................!
real 190.14
user 184.97
sys 4.73

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/233168/ft1_filtered_4FGL_J2359.0+3922_daily_bin48.fits scfile=/scratch/kocevski/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits outfile=/scratch/kocevski/233168/cmap_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.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/233168/ft1_filtered_4FGL_J2359.0+3922_daily_bin48.fits scfile=/scratch/kocevski/233168/ft2_4FGL_J2359.0+3922_daily_bin48.fits outfile=/scratch/kocevski/233168/cmap_HighResolution_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.994       1.0000         .10000E-03   10000.    
    14 'norm      '    .30566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.943       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4067       1.0000         .10000E-03   10000.    
    17 'norm      '    .64996E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15059E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83600       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=   7575.555     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2646 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    38.028       -.13380E-04** at limit **
   2  Prefactor     .10000E-03    20.995        .21023E-05** at limit **
   3  norm          33.142        19.576        .38066E-07    .50126E-04
   4  Prefactor     .10000E-03    2.1550       -.84825E-07** at limit **
   5  norm          2.4468        2.3028       -.86228E-07    .20711E-03
   6  Prefactor     11.446        7.6663       -.15073E-06    .62091E-04
   7  Prefactor     2.8112        2.6516       -.59363E-07    .89526E-04
   8  Prefactor     4.1462        25.372        .27113E-06    .63450E-04
   9  Prefactor     .10000E-03    14.820       -.18941E-05** at limit **
  10  Prefactor     .10000E-03    18.452        .30899E-05** at limit **
  11  norm          2.1191        1.7371        .18295E-07   -.18401E-04
  12  Prefactor     .10000E-03    2.6075       -.34735E-07** at limit **
  13  Prefactor     35.997        27.299        .42294E-06    .15582E-03
  14  norm          .30452        1.1663       -.16594E-05    .10142E-02
  15  Prefactor     11.944        12.504        .92514E-07    .21179E-03
  16  norm          4.3999        4.8411       -.23975E-07    .95446E-03
  17  norm          .10001E-03    62.180       -.33344E-04** at limit **
  18  Prefactor     .10000E-03    47.279       -.24551E-05** at limit **
  19  norm          2.9619        2.4041       -.83759E-07    .14261E-03
  20  Prefactor     .10000E-03    10.532        .15667E-05** at limit **
  21  Prefactor     .10000E-03    13.562       -.39278E-05** at limit **
  22  Prefactor     .10000E-03    7.0045       -.30583E-07** at limit **
  23  Prefactor     .10000E-03    17.170        .21053E-05** at limit **
  24  Prefactor     .10000E-03    1.9673       -.17247E-07** at limit **
  25  Normalizat    1.2665        .21283        .12339E-05    .53426E-03
  26  Prefactor     .83607        .94697E-01   -.21438E-06    .84897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 33.1422
  Prefactor  = 0.0001
  norm       = 2.44675
  Prefactor  = 11.4456
  Prefactor  = 2.81116
  Prefactor  = 4.14618
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.1191
  Prefactor  = 0.0001
  Prefactor  = 35.9966
  norm       = 0.304522
  Prefactor  = 11.9438
  norm       = 4.3999
  norm       = 0.000100005
  Prefactor  = 0.000100002
  norm       = 2.96194
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26649
  Prefactor  = 0.836071
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.555     FROM HESSE     STATUS=OK           454 CALLS     3100 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    39.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.142        19.616        .69603E-04   -1.4556    
   4  Prefactor     .10000E-03    2.1613        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4468        2.2997        .12425E-03   -1.5395    
   6  Prefactor     11.446        7.7060        .11842E-03   -1.5031    
   7  Prefactor     2.8112        2.6366        .12897E-03   -1.5373    
   8  Prefactor     4.1462        25.130        .19782E-03   -1.5301    
   9  Prefactor     .10000E-03    14.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1191        1.7424        .10113E-03   -1.5417    
  12  Prefactor     .10000E-03    2.6164        .13725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.997        27.303        .66799E-04   -1.4507    
  14  norm          .30452        1.1963        .17977E-03   -1.5598    
  15  Prefactor     11.944        12.488        .11592E-03   -1.5017    
  16  norm          4.3999        4.8112        .19185E-03   -1.5288    
  17  norm          .10001E-03    60.915        .45112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.804        .40935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9619        2.3986        .11706E-03   -1.5364    
  20  Prefactor     .10000E-03    10.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.0054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9696        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2665        .24769        .32121E-03   -.84572    
  26  Prefactor     .83607        .10979        .17589E-03   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85975e-09
Minuit parameter uncertainties:
  1  0.00152298
  2  0.000173969
  3  19.62
  4  5.18022e-06
  5  2.29982
  6  7.7067
  7  2.63676
  8  20.4275
  9  0.000147965
  10  0.000228018
  11  1.74239
  12  3.78162e-06
  13  27.3127
  14  1.19636
  15  12.4903
  16  4.81163
  17  0.00113365
  18  0.000610256
  19  2.39872
  20  8.94642e-05
  21  0.000273831
  22  1.99425e-06
  23  0.000153569
  24  2.97961e-06
  25  0.247917
  26  0.109817
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  2.980e-06  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.361e-01  1.098e-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.266e+00  2.479e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233168/likelihoodResults_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.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) = 7575.55696109
delta logL = -0.00240175745148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7575.55455884
delta logL = 4.90515049023e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3238       1.0000          .0000       10.000    
     3 'Normalizat'    1.2665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83605       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=   7575.555     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10255E-03    1.4041        .12201E-01** at limit **
   2  Index         2.2443        8.8722        .50000        .89082E-04
   3  Normalizat    1.2665        .44966E-02    .32121E-03    .78892E-04
   4  Prefactor     .83607        .20594E-02    .17589E-03    .14348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102547
  Index      = 2.24429
  Normalizat = 1.26649
  Prefactor  = 0.836071
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.555     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10255E-03    28.676        .12518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2443        6.8274        .50000       -.58373    
   3  Normalizat    1.2665        .20574E-01    .12848E-04   -.84572    
   4  Prefactor     .83607        .94228E-02    .35177E-04   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5736e-08
Minuit parameter uncertainties:
  1  0.0171011
  2  194.923
  3  0.0205744
  4  0.00942281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233168': 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) = 7575.55455753
delta logL = 1.79560447577e-06

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.025e-04  1.710e-02  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.244e+00  1.949e+02  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:  8.361e-01  9.423e-03  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.266e+00  2.057e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/233168/cmap_HighResolution_251769601_252028801_4FGL_J2359.0+3922_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-30 11:47:13.492614', job_id='233168', GAL2='0.84', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1633027633.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='48' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 233168: <4FGL_J2359.0+3922_daily_bin48> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin48> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:31:13 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:14 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:31:14 2021
Terminated at Thu Sep 30 11:47:14 2021
Results reported at Thu Sep 30 11:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin48 359.755 39.3669 251769601 252028801 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 :                                   745.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

