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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin971
RA = 353.557, Dec = 7.602
tmin = 491011201, tmax = 491270401
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='19595', job_status='RUN', time_executed='2021-09-29 23:38:31.474811', time_epoch_executed='1632983911.47' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19595/ft1_4FGL_J2334.2+0736_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19595/ft1_4FGL_J2334.2+0736_daily_bin971.fits outfile=/scratch/kocevski/19595/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin971.fits ra=353.557 dec=7.602 rad=12.0 tmin=491011201.0 tmax=491270401.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.58
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.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/19595/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/19595/ft1_filtered_4FGL_J2334.2+0736_daily_bin971.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/19595/ft1_filtered_4FGL_J2334.2+0736_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/19595/ltcube_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.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/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19595/ft1_filtered_4FGL_J2334.2+0736_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/19595/ltcube_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.fits outfile=/scratch/kocevski/19595/expmap_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.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/19595/ltcube_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.fits
.....................!
real 189.85
user 185.45
sys 4.08

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/19595/ft1_filtered_4FGL_J2334.2+0736_daily_bin971.fits scfile=/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits outfile=/scratch/kocevski/19595/cmap_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19595/ft1_filtered_4FGL_J2334.2+0736_daily_bin971.fits scfile=/scratch/kocevski/19595/ft2_4FGL_J2334.2+0736_daily_bin971.fits outfile=/scratch/kocevski/19595/cmap_HighResolution_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.135       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0553       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7016       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    272.90       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1137       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.609       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.934       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85939       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=   6630.288     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2708 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.066        22.055       -.40643E-06   -.81739E-05
   2  Prefactor     10.133        23.976       -.29114E-05    .12940E-05
   3  Prefactor     .10000E-03    11.894       -.15493E-05** at limit **
   4  Prefactor     4.0567        7.7312        .55889E-07    .54717E-04
   5  Prefactor     .10000E-03    22.803       -.16688E-04** at limit **
   6  Prefactor     .10000E-03    20.319        .17103E-04** at limit **
   7  norm          .10000E-03    .38423       -.84358E-07** at limit **
   8  Prefactor     1.7013        3.8586        .51007E-06   -.15824E-02
   9  Prefactor     17.774        15.310       -.12180E-06    .54898E-05
  10  Prefactor     .10000E-03    11.934       -.11432E-05** at limit **
  11  norm          16.833        10.978        .23083E-06    .13285E-03
  12  Prefactor     8.2426        7.9374        .94212E-07    .77342E-04
  13  Prefactor     272.91        194.81        .32832E-05    .84434E-05
  14  Prefactor     7.8887        15.389        .43490E-05   -.15090E-04
  15  Prefactor     5.1119        31.090       -.56159E-05   -.82096E-05
  16  norm          .10000E-03    7.9736        .52488E-06** at limit **
  17  norm          10.808        36.444       -.11391E-04   -.13832E-04
  18  Prefactor     2.7534        3.9062        .44282E-06   -.15338E-02
  19  Prefactor     38.610        31.272        .28466E-06    .65489E-06
  20  Prefactor     .10000E-03    5.6942       -.42372E-07** at limit **
  21  Prefactor     .10000E-03    2.7433        .32859E-07** at limit **
  22  Prefactor     14.935        19.373       -.22151E-07   -.57861E-04
  23  Normalizat    1.1132        .21098       -.52809E-06    .10727E-03
  24  Prefactor     .85938        .13314        .70347E-06    .51144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.0663
  Prefactor  = 10.1334
  Prefactor  = 0.0001
  Prefactor  = 4.05669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.70129
  Prefactor  = 17.774
  Prefactor  = 0.0001
  norm       = 16.8335
  Prefactor  = 8.2426
  Prefactor  = 272.907
  Prefactor  = 7.8887
  Prefactor  = 5.11191
  norm       = 0.0001
  norm       = 10.8076
  Prefactor  = 2.75344
  Prefactor  = 38.6097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9346
  Normalizat = 1.11322
  Prefactor  = 0.859382
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.288     FROM HESSE     STATUS=OK           405 CALLS     3113 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.066        22.096        .58446E-04   -1.4335    
   2  Prefactor     10.133        23.970        .12586E-03   -1.5071    
   3  Prefactor     .10000E-03    11.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0567        7.7211        .20023E-03   -1.5305    
   5  Prefactor     .10000E-03    23.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .51863        .97799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7013        8.9839        .16123E-02   -1.5447    
   9  Prefactor     17.774        15.313        .95001E-04   -1.4865    
  10  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.833        11.139        .97618E-04   -1.4887    
  12  Prefactor     8.2426        7.9354        .13964E-03   -1.5134    
  13  Prefactor     272.91        194.51        .12275E-03   -1.2389    
  14  Prefactor     7.8887        15.449        .14273E-03   -1.5146    
  15  Prefactor     5.1119        30.948        .17779E-03   -1.5256    
  16  norm          .10000E-03    7.9978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.808        36.623        .12183E-03   -1.5050    
  18  Prefactor     2.7534        4.1341        .93848E-03   -1.5376    
  19  Prefactor     38.610        31.288        .64505E-04   -1.4464    
  20  Prefactor     .10000E-03    5.6980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7593        .13170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.935        19.389        .51821E-03   -1.4935    
  23  Normalizat    1.1132        .24882        .29978E-03   -.89329    
  24  Prefactor     .85938        .15681        .21800E-03   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05197e-08
Minuit parameter uncertainties:
  1  22.0996
  2  23.9925
  3  1.01815e-05
  4  7.723
  5  1.87189e-05
  6  1.13362e-05
  7  6.05074e-06
  8  7.82061
  9  15.3162
  10  1.04401e-05
  11  11.1403
  12  7.93641
  13  194.972
  14  15.4564
  15  25.1752
  16  5.26382e-07
  17  36.699
  18  4.13454
  19  31.3016
  20  7.152e-07
  21  5.68126e-07
  22  19.3974
  23  0.249083
  24  0.15689
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.112e+00  2.518e+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.594e-01  1.569e-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:  1.113e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19595/likelihoodResults_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.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) = 6630.28116905
delta logL = 0.00687299927085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.28063647
delta logL = 0.00740557259451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5032       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6814       1.0000          .0000       10.000    
     3 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85993       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.281     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      295 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4257        30.315        .94864E-03   -.36672E-05
   2  Index         2.7031        2.0419        .60890E-02   -.32170E-05
   3  Normalizat    1.1107        .23799        .30006E-03   -.22733E-04
   4  Prefactor     .86020        .15448        .21790E-03    .15653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4257
  Index      = 2.70307
  Normalizat = 1.11074
  Prefactor  = 0.860202
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.281     FROM HESSE     STATUS=OK            27 CALLS      322 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4257        26.039        .37946E-04   -1.5287    
   2  Index         2.7031        1.9031        .24356E-03   -.47730    
   3  Normalizat    1.1107        .23822        .12002E-04   -.89408    
   4  Prefactor     .86020        .15453        .87158E-05   -.97546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51924e-12
Minuit parameter uncertainties:
  1  21.4839
  2  1.96677
  3  0.238452
  4  0.154604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19595': 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) = 6630.28054995
delta logL = 0.00749209455171

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.426e+00  2.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.703e+00  1.967e+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.602e-01  1.546e-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:  1.111e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/19595/cmap_HighResolution_491011201_491270401_4FGL_J2334.2+0736_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 23:49:52.600635', job_id='19595', GAL2='0.86', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632984592.6', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.49e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='971' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:49:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 19595: <4FGL_J2334.2+0736_daily_bin971> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin971 353.557 7.602 491011201 491270401 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 :                                   680.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

