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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin936
RA = 353.557, Dec = 7.602
tmin = 481939201, tmax = 482198401
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='19543', job_status='RUN', time_executed='2021-09-29 23:36:49.709431', time_epoch_executed='1632983809.71' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19543/ft1_4FGL_J2334.2+0736_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19543/ft1_4FGL_J2334.2+0736_daily_bin936.fits outfile=/scratch/kocevski/19543/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin936.fits ra=353.557 dec=7.602 rad=12.0 tmin=481939201.0 tmax=482198401.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.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.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/19543/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/19543/ltcube_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.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/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits
.....................!
real 12.18
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/19543/ltcube_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits outfile=/scratch/kocevski/19543/expmap_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.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/19543/ltcube_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits
.....................!
real 190.65
user 185.74
sys 4.60

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/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits outfile=/scratch/kocevski/19543/cmap_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits outfile=/scratch/kocevski/19543/cmap_HighResolution_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19543/Model_4FGL_J2334.2+0736_daily_bin936.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/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits.....................!
real 70.99
user 69.62
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits', '/scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits', expMap='/scratch/kocevski/19543/expmap_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits', expCube='/scratch/kocevski/19543/ltcube_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19543/Model_4FGL_J2334.2+0736_daily_bin936.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/19543/ft1_filtered_4FGL_J2334.2+0736_daily_bin936.fits
Spacecraft file(s): /scratch/kocevski/19543/ft2_4FGL_J2334.2+0736_daily_bin936.fits
Exposure map: /scratch/kocevski/19543/expmap_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits
Exposure cube: /scratch/kocevski/19543/ltcube_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19543/Model_4FGL_J2334.2+0736_daily_bin936.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) = 6328.67907826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2568       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.061       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1780       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.136       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93476       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0621       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.

 FCN=   6328.660     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2748 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6279        .14739E-07** at limit **
   2  Prefactor     .10000E-03    11.394       -.68170E-07** at limit **
   3  Prefactor     22.590        35.743        .90274E-06   -.57497E-04
   4  Prefactor     .10000E-03    2.3583        .16540E-08** at limit **
   5  Prefactor     9.6996        11.767        .28557E-07   -.11478E-03
   6  Prefactor     5.2495        24.179        .56608E-05   -.13176E-03
   7  norm          .10000E-03    .58138       -.20999E-06** at limit **
   8  Prefactor     10.695        12.102       -.55667E-05   -.12638E-03
   9  Prefactor     .10000E-03    5.2557       -.27784E-08** at limit **
  10  Prefactor     .10000E-03    69.330        .10623E-05** at limit **
  11  norm          .10003E-03    5.2094        .25265E-05** at limit **
  12  Prefactor     .10000E-03    7.0103        .71206E-07** at limit **
  13  Prefactor     .10000E-03    314.80       -.57916E-05** at limit **
  14  Prefactor     8.2344        12.554        .36653E-05   -.24094E-03
  15  Prefactor     10.061        27.907       -.32026E-06   -.16048E-03
  16  norm          .10000E-03    4.3595        .97160E-09** at limit **
  17  norm          .10000E-03    37.614       -.31146E-05** at limit **
  18  Prefactor     .10000E-03    2.8572       -.21404E-06** at limit **
  19  Prefactor     .10000E-03    13.013        .15355E-06** at limit **
  20  Prefactor     14.581        21.404        .24490E-05   -.16813E-03
  21  Prefactor     6.1778        4.7542       -.16846E-07    .42296E-04
  22  Prefactor     15.127        19.060        .11515E-05   -.95016E-04
  23  Normalizat    .93511        .21978       -.17928E-05   -.27069E-03
  24  Prefactor     1.0618        .13938        .46662E-06   -.42915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5901
  Prefactor  = 0.0001
  Prefactor  = 9.69964
  Prefactor  = 5.24948
  norm       = 0.0001
  Prefactor  = 10.6947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23438
  Prefactor  = 10.0608
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5811
  Prefactor  = 6.17783
  Prefactor  = 15.1274
  Normalizat = 0.935107
  Prefactor  = 1.06185
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.660     FROM HESSE     STATUS=OK           397 CALLS     3145 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.590        35.740        .84265E-04   -1.4757    
   4  Prefactor     .10000E-03    2.3652        .11930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6996        11.759        .12868E-03   -1.5085    
   6  Prefactor     5.2495        23.764        .17531E-03   -1.5250    
   7  norm          .10000E-03    .94011        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.695        12.185        .12264E-03   -1.5054    
   9  Prefactor     .10000E-03    5.2595        .17812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    69.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    22.657        .32979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    314.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2344        12.323        .13956E-03   -1.5134    
  15  Prefactor     10.061        27.549        .12633E-03   -1.5073    
  16  norm          .10000E-03    4.3613        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8952        .13104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.581        21.329        .10487E-03   -1.4944    
  21  Prefactor     6.1778        4.7548        .14829E-03   -1.5211    
  22  Prefactor     15.127        19.059        .10295E-03   -1.4930    
  23  Normalizat    .93511        .25194        .32135E-03   -.95237    
  24  Prefactor     1.0618        .16081        .20187E-03   -.90695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1924e-09
Minuit parameter uncertainties:
  1  4.63502e-07
  2  5.74961e-06
  3  35.7737
  4  1.63707e-06
  5  11.7617
  6  22.3525
  7  2.08088e-05
  8  12.1875
  9  2.30083e-06
  10  0.000298053
  11  0.00174394
  12  2.76421e-05
  13  0.000652602
  14  12.3272
  15  27.5834
  16  1.44442e-06
  17  0.000383764
  18  3.49551e-05
  19  1.77343e-05
  20  21.3401
  21  4.75507
  22  19.0671
  23  0.252256
  24  0.160887
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.006e+01  2.758e+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:  1.062e+00  1.609e-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.351e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19543/likelihoodResults_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.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) = 6328.1895541
delta logL = 0.470117019641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6328.17509485
delta logL = 0.484576271658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12187       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4686       1.0000          .0000       10.000    
     3 'Normalizat'    .86624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0939       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.

 FCN=   6328.175     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      336 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11934        1.9501        .61519E-02    .32080E-02
   2  Index         5.4784        2.8511        .11625        .17359E-03
   3  Normalizat    .86656        .44343E-01    .75103E-01    .26750E-04
   4  Prefactor     1.0937        .29649E-01    .37822E-01    .32186E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.119339
  Index      = 5.47841
  Normalizat = 0.86656
  Prefactor  = 1.09371
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.175     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      371 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11934        6.1374        .28154E-03   -1.5639    
   2  Index         5.4784        7.6333        .61490E-02    .95830E-01
   3  Normalizat    .86656        .17200        .33238E-03   -.97645    
   4  Prefactor     1.0937        .11325        .19922E-03   -.89668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.11049e-11
Minuit parameter uncertainties:
  1  1.71112
  2  6.84117
  3  0.17211
  4  0.113271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19543': 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) = 6328.17509147
delta logL = 0.484579652333

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.193e-01  1.711e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  5.478e+00  6.841e+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:  1.094e+00  1.133e-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.666e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 353.557 7.602
Photon Index (Free Index): 5.48 +/- 6.84
Photon Flux (Free Index): 6.67e-08 +/- 6.79e-08
Energy Flux (Free Index): 8.56e-06 +/- 1.05e-05

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/19543/cmap_HighResolution_481939201_482198401_4FGL_J2334.2+0736_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', energy_flux2='8.56e-06', dlogl='4.85e-01', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-29 23:47:57.739455', photon_index_error2='6.84', photon_index2='5.48', ts='0.16', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.05e-05', EG='0.94', time_epoch_completed='1632984477.74', return_code='0', job_id='19543', GAL2='1.09', EG2='0.87', return_code2='102', photon_flux_error2='6.79e-08', ts2='1.27', photon_index='2.47' WHERE bin_id='936' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:47:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 19543: <4FGL_J2334.2+0736_daily_bin936> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin936> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:20 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:21 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:21 2021
Terminated at Wed Sep 29 23:47:58 2021
Results reported at Wed Sep 29 23:47:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin936 353.557 7.602 481939201 482198401 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 :                                   666.12 sec.
    Max Memory :                                 1142 MB
    Average Memory :                             307.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            758 sec.

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

