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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1662
RA = 353.557, Dec = 7.602
tmin = 670118401, tmax = 670377601
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='125131', job_status='RUN', time_executed='2022-03-31 00:38:27.086793', time_epoch_executed='1648712307.09' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125131/ft1_4FGL_J2334.2+0736_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125131/ft1_4FGL_J2334.2+0736_daily_bin1662.fits outfile=/scratch/kocevski/125131/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1662.fits ra=353.557 dec=7.602 rad=12.0 tmin=670118401.0 tmax=670377601.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.47
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.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/125131/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1662.fits evtable="EVENTS" outfile="/scratch/kocevski/125131/ft1_filtered_4FGL_J2334.2+0736_daily_bin1662.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.32
sys 0.16

Number of photons that the gtmktime cut: 654

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125131/ft1_filtered_4FGL_J2334.2+0736_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/125131/ltcube_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.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/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.fits
.....................!
real 12.06
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125131/ft1_filtered_4FGL_J2334.2+0736_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/125131/ltcube_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.fits outfile=/scratch/kocevski/125131/expmap_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.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/125131/ltcube_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.fits
.....................!
real 190.77
user 185.31
sys 5.14

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/125131/ft1_filtered_4FGL_J2334.2+0736_daily_bin1662.fits scfile=/scratch/kocevski/125131/ft2_4FGL_J2334.2+0736_daily_bin1662.fits outfile=/scratch/kocevski/125131/cmap_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .41400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .66169E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13514E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12108E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.078       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72982       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1957       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=   7360.877     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2766 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.924        27.299        .17129E-07    .12421E-04
   2  Prefactor     .10000E-03    5.4386       -.59582E-08** at limit **
   3  Prefactor     93.237        45.087        .13979E-06    .14434E-03
   4  Prefactor     .10000E-03    1.9556       -.36923E-07** at limit **
   5  Prefactor     .10000E-03    6.7364       -.98573E-07** at limit **
   6  Prefactor     .10000E-03    13.646       -.69562E-07** at limit **
   7  norm          .41398        1.0901        .23839E-06   -.53282E-04
   8  Prefactor     .10000E-03    5.4090       -.71348E-07** at limit **
   9  Prefactor     2.4836        17.215        .63270E-05   -.17519E-03
  10  Prefactor     .10000E-03    24.537        .92528E-09** at limit **
  11  norm          .10147E-03    6.5498       -.18788E-05** at limit **
  12  Prefactor     15.658        10.288        .12541E-05    .10893E-02
  13  Prefactor     .10000E-03    76.572        .48087E-07** at limit **
  14  Prefactor     46.148        16.376       -.14552E-06    .23968E-03
  15  Prefactor     .10000E-03    10.221       -.35660E-07** at limit **
  16  norm          .10000E-03    15.283       -.25514E-06** at limit **
  17  norm          .10000E-03    40.911        .13132E-05** at limit **
  18  Prefactor     .10000E-03    4.9739        .51754E-06** at limit **
  19  Prefactor     .10000E-03    10.817        .10277E-06** at limit **
  20  Prefactor     20.990        27.551       -.80170E-07    .30161E-03
  21  Prefactor     2.6350        6.1863        .19125E-08    .17224E-03
  22  Prefactor     12.087        16.727        .30490E-08    .55165E-04
  23  Normalizat    .72972        .23460        .87299E-07    .36353E-03
  24  Prefactor     1.1957        .14198       -.67271E-07    .60369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.9245
  Prefactor  = 0.0001
  Prefactor  = 93.2369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.413984
  Prefactor  = 0.0001
  Prefactor  = 2.48358
  Prefactor  = 0.0001
  norm       = 0.000101466
  Prefactor  = 15.6577
  Prefactor  = 0.0001
  Prefactor  = 46.1481
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9903
  Prefactor  = 2.63499
  Prefactor  = 12.0867
  Normalizat = 0.729724
  Prefactor  = 1.19574
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.877     FROM HESSE     STATUS=OK           395 CALLS     3161 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.924        27.316        .43849E-04   -1.3873    
   2  Prefactor     .10000E-03    5.4391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     93.237        45.077        .41625E-04   -1.3774    
   4  Prefactor     .10000E-03    1.9642        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .41398        1.0887        .13603E-03   -1.5579    
   8  Prefactor     .10000E-03    5.4292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4836        17.240        .12972E-02   -1.5393    
  10  Prefactor     .10000E-03    24.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10147E-03    14.265        .57644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.658        11.510        .10113E-03   -1.4916    
  13  Prefactor     .10000E-03    76.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.148        16.242        .59038E-04   -1.4348    
  15  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    41.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.990        27.471        .87368E-04   -1.4791    
  21  Prefactor     2.6350        6.1662        .25127E-03   -1.5383    
  22  Prefactor     12.087        16.725        .11527E-03   -1.5013    
  23  Normalizat    .72972        .25976        .38948E-03   -1.0273    
  24  Prefactor     1.1957        .15851        .20206E-03   -.86463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33377e-09
Minuit parameter uncertainties:
  1  27.3196
  2  2.51812e-06
  3  45.0936
  4  2.83237e-06
  5  1.31507e-05
  6  1.74756e-05
  7  1.08877
  8  5.14582e-06
  9  13.0922
  10  6.23794e-05
  11  0.0091497
  12  11.5121
  13  4.90386e-05
  14  16.244
  15  4.51966e-07
  16  3.73489e-05
  17  0.000405386
  18  5.33436e-05
  19  6.15382e-06
  20  27.4873
  21  6.1677
  22  16.7311
  23  0.260204
  24  0.158569
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  4.520e-07  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.196e+00  1.586e-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:  7.297e-01  2.602e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125131/likelihoodResults_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.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) = 7360.87755343
delta logL = -0.000465364811134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7360.87708814
delta logL = -6.74363036524e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4658       1.0000          .0000       10.000    
     3 'Normalizat'    .72969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1958       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=   7360.877     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1470.3        .90712E-02** at limit **
   2  Index         2.4611        5.5581        .50000        .39527E-05
   3  Normalizat    .72972        .85070E-01    .87932E-01    .36047E-04
   4  Prefactor     1.1957        .55400E-01    .34732E-01    .54915E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46111
  Normalizat = 0.729722
  Prefactor  = 1.19574
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.877     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4611        5.5947        .50000       -.53260    
   3  Normalizat    .72972        .23812        .38949E-03   -1.0273    
   4  Prefactor     1.1957        .15588        .20206E-03   -.86463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50158e-11
Minuit parameter uncertainties:
  1  7.07594e-06
  2  7.61322
  3  0.238458
  4  0.155937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125131': 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) = 7360.87708806
delta logL = 9.04765329324e-09

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  7.076e-06  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.461e+00  7.613e+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.196e+00  1.559e-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:  7.297e-01  2.385e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/125131/cmap_HighResolution_670118401_670377601_4FGL_J2334.2+0736_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2022-03-31 00:50:02.946438', job_id='125131', GAL2='1.20', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1648713002.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='9.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1662' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:50:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 125131: <4FGL_J2334.2+0736_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:41 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:42 2022
Terminated at Thu Mar 31 00:50:03 2022
Results reported at Thu Mar 31 00:50:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1662 353.557 7.602 670118401 670377601 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 :                                   698.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

