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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin895
RA = 353.557, Dec = 7.602
tmin = 471312001, tmax = 471571201
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='19481', job_status='RUN', time_executed='2021-09-29 23:37:38.106789', time_epoch_executed='1632983858.11' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19481/ft1_4FGL_J2334.2+0736_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19481/ft1_4FGL_J2334.2+0736_daily_bin895.fits outfile=/scratch/kocevski/19481/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin895.fits ra=353.557 dec=7.602 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.13
user 4.87
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.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/19481/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/19481/ltcube_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.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/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits
.....................!
real 12.41
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/19481/ltcube_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits outfile=/scratch/kocevski/19481/expmap_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.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/19481/ltcube_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits
.....................!
real 191.74
user 185.42
sys 5.97

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
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits outfile=/scratch/kocevski/19481/cmap_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.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=353.557 yref=7.602 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits outfile=/scratch/kocevski/19481/cmap_HighResolution_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.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=353.557 yref=7.602 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19481/Model_4FGL_J2334.2+0736_daily_bin895.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits.....................!
real 61.06
user 59.66
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits', '/scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits', expMap='/scratch/kocevski/19481/expmap_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits', expCube='/scratch/kocevski/19481/ltcube_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19481/Model_4FGL_J2334.2+0736_daily_bin895.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19481/ft1_filtered_4FGL_J2334.2+0736_daily_bin895.fits
Spacecraft file(s): /scratch/kocevski/19481/ft2_4FGL_J2334.2+0736_daily_bin895.fits
Exposure map: /scratch/kocevski/19481/expmap_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits
Exposure cube: /scratch/kocevski/19481/ltcube_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19481/Model_4FGL_J2334.2+0736_daily_bin895.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) = 5379.79752881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2903       1.0000         .10000E-03   10000.    
    11 'norm      '    22.757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98094       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    81.814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.656       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91094       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5379.773     FROM MIGRAD    STATUS=FAILED       940 CALLS     3114 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.459        25.216        .10187E-03   -.25667E-05
   2  Prefactor     .10000E-03    12.216        .18142E-02** at limit **
   3  Prefactor     6.5532        32.575        .15675E-03   -.21033E-04
   4  Prefactor     .10000E-03    2.1984        .10609E-02** at limit **
   5  Prefactor     16.975        16.574        .97203E-04   -.10713E-03
   6  Prefactor     .10000E-03    5.0185        .16046E-02** at limit **
   7  norm          3.2435        1.5987        .61582E-04    .58706E-04
   8  Prefactor     .10000E-03    32.595        .36285E-03** at limit **
   9  Prefactor     41.334        30.876        .62350E-04   -.16957E-04
  10  Prefactor     6.3915        179.49        .16005E-03   -.37079E-04
  11  norm          22.757        14.093        .83966E-04   -.80832E-03
  12  Prefactor     1.7099        13.730        .32202E-03    .13592E-04
  13  Prefactor     .10002E-03    238.47        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.900        .18142E-02** at limit **
  15  Prefactor     .90205        277.13        .72839E-02    .55650E-03
  16  norm          .10000E-03    6.3400        .18027E-02** at limit **
  17  norm          .10000E-03    9.8017        .18142E-02** at limit **
  18  Prefactor     3.9273        6.7664        .10179E-02   -.93962E-04
  19  Prefactor     81.805        57.828        .44406E-04   -.20210E-03
  20  Prefactor     .10000E-03    14.063        .18142E-02** at limit **
  21  Prefactor     15.655        10.024        .10122E-03   -.71543E-04
  22  Prefactor     .10000E-03    7.2135        .18142E-02** at limit **
  23  Normalizat    .91072        .28658        .32907E-03   -.51467E-03
  24  Prefactor     .87645        .16641        .20915E-03   -.43470E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5379.773     FROM SIMPLEX   STATUS=UNCHANGED   1095 CALLS     4209 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.459        25.216        .55989E-06   -1.4921    
   2  Prefactor     .10000E-03    12.216        .35493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5532        32.575        .55642E-06   -1.5196    
   4  Prefactor     .10000E-03    2.1984        .13279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.975        16.574        .54468E-06   -1.4884    
   6  Prefactor     .10000E-03    5.0185        .28995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2435        1.5987        .56129E-06   -1.5348    
   8  Prefactor     .10000E-03    32.595        .53067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.334        30.876        .52610E-06   -1.4421    
  10  Prefactor     6.3915        179.49        .66214E-06   -1.5202    
  11  norm          22.757        14.093        .54017E-06   -1.4754    
  12  Prefactor     1.7099        13.730        .56639E-06   -1.5446    
  13  Prefactor     .10002E-03    238.47        .11365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.900        .59488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90205        277.13        .65113E-06   -1.5518    
  16  norm          .10000E-03    6.3400        .16438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.8017        .38248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9273        6.7664        .56007E-06   -1.5312    
  19  Prefactor     81.805        57.828        .50834E-06   -1.3897    
  20  Prefactor     .10000E-03    14.063        .26368E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.655        10.024        .54562E-06   -1.4916    
  22  Prefactor     .10000E-03    7.2135        .16874E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91072        .28658        .35148E-06   -.96084    
  24  Prefactor     .87645        .16641        .35469E-06   -.96969    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5379.773     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     4589 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.459        25.209        .40749E-05    .11160E-06
   2  Prefactor     .10000E-03    12.216        .36285E-03** at limit **
   3  Prefactor     6.5532        32.570        .62700E-05    .21758E-06
   4  Prefactor     .10000E-03    2.1985        .21217E-03** at limit **
   5  Prefactor     16.975        16.569        .38881E-05    .58479E-06
   6  Prefactor     .10000E-03    5.0185        .32092E-03** at limit **
   7  norm          3.2435        1.5981        .24633E-05    .18461E-05
   8  Prefactor     .10000E-03    32.594        .72569E-04** at limit **
   9  Prefactor     41.334        30.865        .24940E-05    .36467E-06
  10  Prefactor     6.3918        179.16        .64019E-05    .14207E-06
  11  norm          22.757        13.947        .16793E-04    .13404E-04
  12  Prefactor     1.7097        13.677        .12881E-04    .88261E-06
  13  Prefactor     .10000E-03    238.47        .36285E-03** at limit **
  14  Prefactor     .10000E-03    13.903        .36285E-03** at limit **
  15  Prefactor     .90192        272.68        .14568E-02   -.50336E-05
  16  norm          .10000E-03    6.3403        .36053E-03** at limit **
  17  norm          .10000E-03    9.8018        .36285E-03** at limit **
  18  Prefactor     3.9273        6.7575        .40717E-04   -.13961E-05
  19  Prefactor     81.805        57.778        .88811E-05    .20481E-05
  20  Prefactor     .10000E-03    14.064        .36285E-03** at limit **
  21  Prefactor     15.655        10.021        .40490E-05    .56156E-06
  22  Prefactor     .10000E-03    7.2137        .36285E-03** at limit **
  23  Normalizat    .91073        .28628        .65814E-04    .58040E-05
  24  Prefactor     .87645        .16648        .41831E-04    .88600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4592
  Prefactor  = 0.0001
  Prefactor  = 6.5532
  Prefactor  = 0.0001
  Prefactor  = 16.9753
  Prefactor  = 0.0001
  norm       = 3.24353
  Prefactor  = 0.0001
  Prefactor  = 41.3344
  Prefactor  = 6.39179
  norm       = 22.7573
  Prefactor  = 1.70973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.901924
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92729
  Prefactor  = 81.8055
  Prefactor  = 0.0001
  Prefactor  = 15.6554
  Prefactor  = 0.0001
  Normalizat = 0.910729
  Prefactor  = 0.876446
 **********
 **   18 **HESSE 
 **********

 FCN=   5379.773     FROM HESSE     STATUS=OK           375 CALLS     4964 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.459        25.209        .40749E-05   -1.4921    
   2  Prefactor     .10000E-03    12.216        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5532        32.568        .62700E-05   -1.5196    
   4  Prefactor     .10000E-03    2.1985        .42435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.975        16.568        .77762E-06   -1.4884    
   6  Prefactor     .10000E-03    5.0185        .64184E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2435        1.5978        .49266E-06   -1.5348    
   8  Prefactor     .10000E-03    32.594        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.334        30.861        .24940E-05   -1.4421    
  10  Prefactor     6.3918        179.13        .64019E-05   -1.5202    
  11  norm          22.757        13.912        .33586E-05   -1.4754    
  12  Prefactor     1.7097        13.652        .25762E-05   -1.5446    
  13  Prefactor     .10000E-03    238.46        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.904        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90192        269.95        .58271E-04   -1.5518    
  16  norm          .10000E-03    6.3403        .72106E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.8018        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9273        6.7569        .16287E-05   -1.5312    
  19  Prefactor     81.805        57.706        .17762E-05   -1.3897    
  20  Prefactor     .10000E-03    14.064        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.655        10.013        .80979E-06   -1.4916    
  22  Prefactor     .10000E-03    7.2137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91073        .28621        .13163E-04   -.96084    
  24  Prefactor     .87645        .16646        .83662E-05   -.96969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86053e-12
Minuit parameter uncertainties:
  1  25.2259
  2  1.3398e-07
  3  29.2435
  4  7.90691e-08
  5  16.5726
  6  3.01727e-07
  7  1.59785
  8  4.27764e-06
  9  30.8728
  10  67.9003
  11  13.9141
  12  9.66539
  13  1.54588e-06
  14  3.23524e-06
  15  31.3491
  16  2.70179e-07
  17  4.07417e-07
  18  6.75819
  19  57.7457
  20  2.28474e-06
  21  10.0138
  22  6.83654e-07
  23  0.286693
  24  0.16656
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  9.019e-01  3.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.764e-01  1.666e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.107e-01  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19481/likelihoodResults_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.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) = 5379.71461865
delta logL = 0.0584428648563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5379.67748217
delta logL = 0.0955793468038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8774       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4456       1.0000          .0000       10.000    
     3 'Normalizat'    .88078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   5379.677     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8825        42.069        .20492E-03    .22025E-04
   2  Index         3.4447        3.0437        .91576E-02    .14387E-04
   3  Normalizat    .88083        .26944        .33391E-03   -.55394E-04
   4  Prefactor     .88345        .16536        .20831E-03    .40112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88251
  Index      = 3.44468
  Normalizat = 0.88083
  Prefactor  = 0.883448
 **********
 **   18 **HESSE 
 **********

 FCN=   5379.677     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8825        15.611        .81968E-05   -1.5314    
   2  Index         3.4447        1.9472        .36630E-03   -.31631    
   3  Normalizat    .88083        .26962        .13357E-04   -.97137    
   4  Prefactor     .88345        .16476        .83326E-05   -.96722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08025e-11
Minuit parameter uncertainties:
  1  15.5773
  2  2.00625
  3  0.270035
  4  0.164855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19481': 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) = 5379.67748203
delta logL = 0.0955794881165

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.883e+00  1.558e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.445e+00  2.006e+00  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.834e-01  1.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.808e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 353.557 7.602

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/19481/cmap_HighResolution_471312001_471571201_4FGL_J2334.2+0736_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-29 23:49:19.728493', job_id='19481', GAL2='0.88', fit_tolerance='1e-08', EG2='0.88', EG='0.91', time_epoch_completed='1632984559.73', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.56e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='895' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:49:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 19481: <4FGL_J2334.2+0736_daily_bin895> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin895> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:15 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:35:17 2021
Terminated at Wed Sep 29 23:49:20 2021
Results reported at Wed Sep 29 23:49:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin895 353.557 7.602 471312001 471571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

