/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 221 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1215
RA = 359.755, Dec = 39.3669
tmin = 554256001, tmax = 554515201
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='239091', job_status='RUN', time_executed='2021-09-30 11:54:36.816055', time_epoch_executed='1633028076.82' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239091/ft1_4FGL_J2359.0+3922_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239091/ft1_4FGL_J2359.0+3922_daily_bin1215.fits outfile=/scratch/kocevski/239091/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1215.fits ra=359.755 dec=39.3669 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.08
user 3.87
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239091/ft1_filtered_4FGL_J2359.0+3922_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/239091/ltcube_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.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/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits
.....................!
real 11.66
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239091/ft1_filtered_4FGL_J2359.0+3922_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/239091/ltcube_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.fits outfile=/scratch/kocevski/239091/expmap_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.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/239091/ltcube_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.fits
.....................!
real 189.32
user 185.09
sys 3.89

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/239091/ft1_filtered_4FGL_J2359.0+3922_daily_bin1215.fits scfile=/scratch/kocevski/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits outfile=/scratch/kocevski/239091/cmap_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239091/ft1_filtered_4FGL_J2359.0+3922_daily_bin1215.fits scfile=/scratch/kocevski/239091/ft2_4FGL_J2359.0+3922_daily_bin1215.fits outfile=/scratch/kocevski/239091/cmap_HighResolution_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.755 yref=39.3669 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23784E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    153.80       1.0000         .10000E-03   10000.    
     3 'norm      '    30.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10334E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.064       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.854       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12839E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10728E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10897E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    160.03       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.894       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .58879       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68496       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=   357.1277     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     3499 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    257.23       -.47287E-05** at limit **
   2  Prefactor     153.69        159.21       -.52973E-05   -.62460E-04
   3  norm          30.415        69.760        .58893E-06   -.93899E-05
   4  Prefactor     .10000E-03    48.095       -.20854E-05** at limit **
   5  norm          .10000E-03    7.0818       -.18185E-06** at limit **
   6  Prefactor     .10000E-03    11.666       -.77164E-07** at limit **
   7  Prefactor     13.075        21.372        .63831E-06   -.69860E-04
   8  Prefactor     .10000E-03    65.529        .28106E-07** at limit **
   9  Prefactor     20.623        255.69       -.32425E-04   -.40545E-04
  10  Prefactor     .10000E-03    134.64       -.82820E-06** at limit **
  11  norm          .10000E-03    6.0519       -.15901E-06** at limit **
  12  Prefactor     .10000E-03    25.602       -.19579E-05** at limit **
  13  Prefactor     .10000E-03    124.79        .14063E-05** at limit **
  14  norm          .10000E-03    5.3663        .75611E-06** at limit **
  15  Prefactor     .10000E-03    39.839        .14606E-05** at limit **
  16  norm          .10000E-03    28.480        .10251E-05** at limit **
  17  norm          .10000E-03    29.745        .12785E-08** at limit **
  18  Prefactor     .10000E-03    63.504        .60094E-06** at limit **
  19  norm          .10000E-03    7.8205        .21995E-06** at limit **
  20  Prefactor     160.01        174.81       -.50310E-05   -.49411E-05
  21  Prefactor     .10000E-03    189.94       -.82590E-06** at limit **
  22  Prefactor     .10000E-03    83.360        .39682E-06** at limit **
  23  Prefactor     .10000E-03    137.78        .53213E-06** at limit **
  24  Prefactor     25.903        36.511        .14885E-06   -.34568E-06
  25  Normalizat    .58993        .91051        .69866E-04   -.28498E-04
  26  Prefactor     .68465        .38760       -.27432E-04   -.18126E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 153.69
  norm       = 30.415
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0752
  Prefactor  = 0.0001
  Prefactor  = 20.6232
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 160.007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.9027
  Normalizat = 0.589931
  Prefactor  = 0.684654
 **********
 **   18 **HESSE 
 **********

 FCN=   357.1277     FROM HESSE     STATUS=OK           442 CALLS     3941 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    259.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     153.69        159.22        .16253E-03   -1.3222    
   3  norm          30.415        69.716        .72648E-04   -1.4604    
   4  Prefactor     .10000E-03    48.253        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.0848        .49150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.666        .63091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.075        21.355        .10197E-03   -1.4985    
   8  Prefactor     .10000E-03    65.575        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.623        259.87        .87709E-04   -1.4799    
  10  Prefactor     .10000E-03    134.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0528        .45438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.704        .93623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    124.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3875        .42783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.914        .11671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.558        .98611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    29.746        .10077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.570        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.8270        .51654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     160.01        174.77        .15938E-03   -1.3171    
  21  Prefactor     .10000E-03    190.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    83.355        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    137.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.903        36.501        .78724E-04   -1.4690    
  25  Normalizat    .58993        .90833        .34574E-03   -1.0841    
  26  Prefactor     .68465        .38791        .14914E-03   -1.0413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42952e-10
Minuit parameter uncertainties:
  1  0.00421634
  2  159.669
  3  69.9037
  4  0.000411196
  5  1.98969e-06
  6  7.91439e-06
  7  21.3677
  8  0.000210712
  9  147.211
  10  0.000452654
  11  7.47891e-06
  12  0.000198353
  13  0.000909686
  14  2.25837e-05
  15  0.000335476
  16  1.35737e-05
  17  3.35975e-05
  18  0.000228399
  19  1.82307e-05
  20  175.344
  21  0.000689978
  22  4.93545e-05
  23  0.000733246
  24  36.5328
  25  0.932934
  26  0.389456
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.590e+01  3.653e+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:  6.847e-01  3.895e-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:  5.899e-01  9.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 7.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239091/likelihoodResults_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.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) = 357.054611011
delta logL = 0.0731150406928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 357.051232243
delta logL = 0.0764938081506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.797       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9103       1.0000          .0000       10.000    
     3 'Normalizat'    .62468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67300       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=   357.0512     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      282 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.778        79.623        .29307E-03    .15367E-04
   2  Index         1.9106        1.0018        .36025E-02    .94167E-05
   3  Normalizat    .62483        .76473        .33650E-03    .32959E-04
   4  Prefactor     .67305        .36104        .15018E-03    .66209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.7784
  Index      = 1.91061
  Normalizat = 0.624827
  Prefactor  = 0.673046
 **********
 **   18 **HESSE 
 **********

 FCN=   357.0512     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.778        78.350        .11723E-04   -1.4339    
   2  Index         1.9106        .98590        .14410E-03   -.66604    
   3  Normalizat    .62483        .76479        .13460E-04   -1.0694    
   4  Prefactor     .67305        .36113        .30036E-04   -1.0459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74879e-11
Minuit parameter uncertainties:
  1  78.5229
  2  0.996533
  3  0.778357
  4  0.362391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239091': 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) = 357.051232042
delta logL = 0.0764940089709

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.678e+01  7.852e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  1.911e+00  9.965e-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.730e-01  3.624e-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:  6.248e-01  7.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 359.755 39.367
Photon Index (Free Index): 1.91 +/- 1.00
Photon Flux (Free Index): 1.05e-07 +/- 1.61e-07
Energy Flux (Free Index): 9.17e-05 +/- 2.22e-04

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/239091/cmap_HighResolution_554256001_554515201_4FGL_J2359.0+3922_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-02', comment='SUCCESS', energy_flux2='9.17e-05', dlogl='7.65e-02', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-30 12:01:15.526894', photon_index_error2='1.00', photon_index2='1.91', ts='0.99', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='7.51e-07', energy_flux_error2='2.22e-04', EG='0.59', time_epoch_completed='1633028475.53', return_code='0', job_id='239091', GAL2='0.67', EG2='0.62', return_code2='0', photon_flux_error2='1.61e-07', ts2='1.15', photon_index='2.35' WHERE bin_id='1215' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 239091: <4FGL_J2359.0+3922_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1215 359.755 39.3669 554256001 554515201 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 :                                   345.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             173.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

