/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 193 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 = 7418
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin328
RA = 353.557, Dec = 7.602
tmin = 324345601, tmax = 324604801
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='17103', job_status='RUN', time_executed='2021-09-29 23:29:05.542620', time_epoch_executed='1632983345.54' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17103/ft1_4FGL_J2334.2+0736_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17103/ft1_4FGL_J2334.2+0736_daily_bin328.fits outfile=/scratch/kocevski/17103/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin328.fits ra=353.557 dec=7.602 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.42
user 14.00
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.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/17103/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin328.fits evtable="EVENTS" outfile="/scratch/kocevski/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.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/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/17103/ltcube_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.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/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits
.....................!
real 11.10
user 10.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/17103/ltcube_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.fits outfile=/scratch/kocevski/17103/expmap_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.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/17103/ltcube_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.fits
.....................!
real 192.32
user 186.74
sys 5.21

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/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits outfile=/scratch/kocevski/17103/cmap_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits outfile=/scratch/kocevski/17103/cmap_HighResolution_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.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/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/17103/ft2_4FGL_J2334.2+0736_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17103/Model_4FGL_J2334.2+0736_daily_bin328.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/17103/ft1_filtered_4FGL_J2334.2+0736_daily_bin328.fits......................!
real 39.92
user 38.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.670       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6105       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6807       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15850E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.80       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1196       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.972       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .33695       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1419       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=   2905.276     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2719 TOTAL
                     EDM=   .60E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.351        40.365        .19866E-06    .98612E-05
   2  Prefactor     .10000E-03    36.602        .21217E-05** at limit **
   3  Prefactor     .10000E-03    20.124        .13063E-07** at limit **
   4  Prefactor     .10000E-03    4.2984        .58656E-08** at limit **
   5  Prefactor     .10000E-03    11.529       -.22427E-06** at limit **
   6  Prefactor     21.658        42.550        .97839E-06    .13983E-04
   7  norm          3.3630        2.8503        .20040E-07    .21950E-04
   8  Prefactor     .10000E-03    6.4946        .88017E-07** at limit **
   9  Prefactor     4.1774        42.845       -.29595E-05    .54691E-05
  10  Prefactor     .10000E-03    52.363       -.19909E-05** at limit **
  11  norm          19.020        20.024        .16486E-06    .40696E-04
  12  Prefactor     17.458        15.839        .17198E-06    .48188E-04
  13  Prefactor     .10000E-03    417.46       -.54441E-05** at limit **
  14  Prefactor     .10000E-03    11.556        .39851E-06** at limit **
  15  Prefactor     4.6376        73.602       -.25212E-05    .45817E-05
  16  norm          5.6818        14.185       -.14414E-05    .41951E-05
  17  norm          .10000E-03    38.348       -.16496E-05** at limit **
  18  Prefactor     .10000E-03    77.459        .68192E-05** at limit **
  19  Prefactor     104.77        74.857       -.21603E-05   -.19357E-05
  20  Prefactor     .10000E-03    15.895        .32353E-06** at limit **
  21  Prefactor     6.1210        8.0705       -.94388E-06    .67624E-05
  22  Prefactor     33.967        43.528        .12244E-06   -.77032E-06
  23  Normalizat    .33673        .37878        .83002E-07    .33069E-05
  24  Prefactor     1.1420        .23745        .58296E-06   -.16825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6578
  norm       = 3.36299
  Prefactor  = 0.0001
  Prefactor  = 4.17741
  Prefactor  = 0.0001
  norm       = 19.0205
  Prefactor  = 17.4575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63758
  norm       = 5.68175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.767
  Prefactor  = 0.0001
  Prefactor  = 6.12098
  Prefactor  = 33.9674
  Normalizat = 0.33673
  Prefactor  = 1.14198
 **********
 **   18 **HESSE 
 **********

 FCN=   2905.276     FROM HESSE     STATUS=OK           401 CALLS     3120 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.351        40.178        .59541E-04   -1.4360    
   2  Prefactor     .10000E-03    36.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3183        .10913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.605        .17877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.658        42.654        .86044E-04   -1.4777    
   7  norm          3.3630        2.8279        .80725E-04   -1.5341    
   8  Prefactor     .10000E-03    6.4976        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1774        42.174        .19749E-03   -1.5299    
  10  Prefactor     .10000E-03    52.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.020        19.985        .91836E-04   -1.4835    
  12  Prefactor     17.458        15.781        .95865E-04   -1.4872    
  13  Prefactor     .10000E-03    417.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.572        .17896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6376        72.699        .18745E-03   -1.5277    
  16  norm          5.6818        14.140        .84267E-03   -1.5231    
  17  norm          .10000E-03    38.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    75.659        .36966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     104.77        74.355        .19640E-03   -1.3657    
  20  Prefactor     .10000E-03    15.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1210        8.0583        .81146E-03   -1.5213    
  22  Prefactor     33.967        43.047        .68752E-04   -1.4542    
  23  Normalizat    .33673        .36473        .48889E-03   -1.2071    
  24  Prefactor     1.1420        .23549        .18110E-03   -.88136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13385e-11
Minuit parameter uncertainties:
  1  40.2021
  2  1.51872e-05
  3  1.58008e-06
  4  1.90909e-06
  5  2.4278e-06
  6  42.7141
  7  2.828
  8  1.33903e-06
  9  26.5704
  10  2.33421e-05
  11  19.992
  12  15.7846
  13  0.000261105
  14  9.32347e-06
  15  36.7759
  16  14.1487
  17  1.89448e-05
  18  1.80139e-05
  19  74.4211
  20  1.88811e-05
  21  8.05972
  22  43.0869
  23  0.367345
  24  0.235704
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.638e+00  3.678e+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.142e+00  2.357e-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:  3.367e-01  3.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/17103/likelihoodResults_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.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) = 2905.25198764
delta logL = 0.0244817747375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2905.25097715
delta logL = 0.0254922667532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2321       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9584       1.0000          .0000       10.000    
     3 'Normalizat'    .32919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1430       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=   2905.251     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2674        1264.3        .43933E-02    .94125E-04
   2  Index         2.9600        5.8935        .22204        .55530E-04
   3  Normalizat    .32832        .66538E-01    .11170        .32174E-04
   4  Prefactor     1.1430        .44086E-01    .36143E-01    .10218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26744
  Index      = 2.95999
  Normalizat = 0.328315
  Prefactor  = 1.14301
 **********
 **   18 **HESSE 
 **********

 FCN=   2905.251     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2674        38.302        .17573E-03   -1.5249    
   2  Index         2.9600        2.1847        .11821E-01   -.42027    
   3  Normalizat    .32832        .34928        .49475E-03   -1.2119    
   4  Prefactor     1.1430        .23152        .18098E-03   -.88103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85212e-10
Minuit parameter uncertainties:
  1  28.4333
  2  2.27804
  3  0.35163
  4  0.231727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17103': 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) = 2905.25096532
delta logL = 0.0255040979509

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.267e+00  2.843e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.960e+00  2.278e+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.143e+00  2.317e-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:  3.283e-01  3.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/17103/cmap_HighResolution_324345601_324604801_4FGL_J2334.2+0736_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='1.96e-07', time_completed='2021-09-29 23:37:50.435844', job_id='17103', GAL2='1.14', fit_tolerance='1e-08', EG2='0.33', EG='0.34', time_epoch_completed='1632983870.44', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.55e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='328' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 17103: <4FGL_J2334.2+0736_daily_bin328> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin328> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:38 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:40 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:25:40 2021
Terminated at Wed Sep 29 23:37:51 2021
Results reported at Wed Sep 29 23:37:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin328 353.557 7.602 324345601 324604801 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 :                                   516.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             211.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

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

