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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin577
RA = 353.557, Dec = 7.602
tmin = 388886401, tmax = 389145601
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='17953', job_status='RUN', time_executed='2021-09-29 23:32:48.418379', time_epoch_executed='1632983568.42' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17953/ft1_4FGL_J2334.2+0736_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17953/ft2_4FGL_J2334.2+0736_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17953/ft1_4FGL_J2334.2+0736_daily_bin577.fits outfile=/scratch/kocevski/17953/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin577.fits ra=353.557 dec=7.602 rad=12.0 tmin=388886401.0 tmax=389145601.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.53
user 3.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17953/ft1_filtered_4FGL_J2334.2+0736_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/17953/ft2_4FGL_J2334.2+0736_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/17953/ltcube_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.fits outfile=/scratch/kocevski/17953/expmap_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.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/17953/ltcube_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.fits
.....................!
real 190.83
user 186.39
sys 3.99

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/17953/ft1_filtered_4FGL_J2334.2+0736_daily_bin577.fits scfile=/scratch/kocevski/17953/ft2_4FGL_J2334.2+0736_daily_bin577.fits outfile=/scratch/kocevski/17953/cmap_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17953/ft1_filtered_4FGL_J2334.2+0736_daily_bin577.fits scfile=/scratch/kocevski/17953/ft2_4FGL_J2334.2+0736_daily_bin577.fits outfile=/scratch/kocevski/17953/cmap_HighResolution_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.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/17953/ft1_filtered_4FGL_J2334.2+0736_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/17953/ft2_4FGL_J2334.2+0736_daily_bin577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17953/Model_4FGL_J2334.2+0736_daily_bin577.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/17953/ft1_filtered_4FGL_J2334.2+0736_daily_bin577.fits.....................!
real 84.58
user 83.14
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.512       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4316       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.712       1.0000         .10000E-03   10000.    
    11 'norm      '    23.268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    150.62       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0947       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.502       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71907       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0386       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=   7986.651     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2708 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9226        .25053E-05** at limit **
   2  Prefactor     .10000E-03    4.5928       -.83974E-07** at limit **
   3  Prefactor     30.376        24.910       -.74419E-06   -.18012E-03
   4  Prefactor     .45669        4.5248        .31836E-05   -.45346E-03
   5  Prefactor     8.3961        12.482       -.46074E-06   -.13302E-03
   6  Prefactor     15.511        15.542       -.39534E-06   -.14373E-03
   7  norm          8.0721        1.6433       -.22828E-07    .55065E-04
   8  Prefactor     8.4313        8.4593        .30014E-07   -.16356E-04
   9  Prefactor     17.601        18.271       -.33007E-06   -.54499E-04
  10  Prefactor     35.710        45.733       -.86279E-06   -.77041E-04
  11  norm          23.268        12.299        .97184E-07    .50388E-04
  12  Prefactor     12.685        10.564       -.11070E-06   -.33580E-04
  13  Prefactor     150.64        134.60        .49605E-05    .18077E-03
  14  Prefactor     14.135        9.8024        .37912E-07    .12492E-03
  15  Prefactor     .10000E-03    8.3746       -.10503E-06** at limit **
  16  norm          2.0941        11.117        .59483E-06   -.55129E-04
  17  norm          .10000E-03    7.8465       -.10029E-05** at limit **
  18  Prefactor     .10000E-03    3.1780        .11398E-06** at limit **
  19  Prefactor     77.465        41.962       -.47816E-06   -.11129E-03
  20  Prefactor     .10000E-03    5.5874        .35859E-06** at limit **
  21  Prefactor     .10002E-03    4.0968       -.13048E-05** at limit **
  22  Prefactor     23.501        18.257       -.12851E-06   -.55860E-04
  23  Normalizat    .71911        .20817        .57283E-06    .34815E-04
  24  Prefactor     1.0386        .12956       -.30825E-06    .10382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 30.3756
  Prefactor  = 0.45669
  Prefactor  = 8.39614
  Prefactor  = 15.5112
  norm       = 8.07207
  Prefactor  = 8.43133
  Prefactor  = 17.6006
  Prefactor  = 35.7101
  norm       = 23.2683
  Prefactor  = 12.6847
  Prefactor  = 150.645
  Prefactor  = 14.1354
  Prefactor  = 0.0001
  norm       = 2.09411
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 77.4646
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 23.5012
  Normalizat = 0.719113
  Prefactor  = 1.03863
 **********
 **   18 **HESSE 
 **********

 FCN=   7986.651     FROM HESSE     STATUS=OK           399 CALLS     3107 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.376        25.075        .72695E-04   -1.4605    
   4  Prefactor     .45669        5.5046        .40076E-03   -1.5573    
   5  Prefactor     8.3961        12.510        .13834E-03   -1.5128    
   6  Prefactor     15.511        15.591        .10169E-03   -1.4920    
   7  norm          8.0721        1.6443        .49397E-04   -1.5140    
   8  Prefactor     8.4313        8.4511        .13806E-03   -1.5127    
   9  Prefactor     17.601        18.285        .95466E-04   -1.4869    
  10  Prefactor     35.710        45.870        .67061E-04   -1.4512    
  11  norm          23.268        12.280        .83040E-04   -1.4743    
  12  Prefactor     12.685        10.555        .11247E-03   -1.4996    
  13  Prefactor     150.64        140.15        .16420E-03   -1.3247    
  14  Prefactor     14.135        9.7880        .10653E-03   -1.4956    
  15  Prefactor     .10000E-03    8.3908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0941        11.175        .28519E-03   -1.5419    
  17  norm          .10000E-03    7.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2854        .31042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     77.465        42.111        .45625E-04   -1.3945    
  20  Prefactor     .10000E-03    5.6066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    12.330        .33036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.501        18.324        .82626E-04   -1.4738    
  23  Normalizat    .71911        .23481        .36951E-03   -1.0314    
  24  Prefactor     1.0386        .14812        .20361E-03   -.91453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8899e-09
Minuit parameter uncertainties:
  1  0.00037348
  2  8.39327e-06
  3  25.0834
  4  3.17107
  5  12.5137
  6  15.5948
  7  1.64433
  8  8.45229
  9  18.2912
  10  45.9156
  11  12.2816
  12  10.557
  13  140.463
  14  9.78907
  15  1.49377e-05
  16  9.67765
  17  0.000141266
  18  5.26374e-06
  19  42.1268
  20  3.96279e-05
  21  0.00091251
  22  18.3287
  23  0.235142
  24  0.148178
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.494e-05  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.039e+00  1.482e-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.191e-01  2.351e-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: 6.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17953/likelihoodResults_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.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) = 7986.65138559
delta logL = -0.000567659742956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7986.65081835
delta logL = -4.2320243665e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4413       1.0000          .0000       10.000    
     3 'Normalizat'    .71914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7986.651     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      258 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.910        .18142E-01** at limit **
   2  Index         1.7144        5.6318        .50000       -.13285E-06
   3  Normalizat    .71911        .85357E-02    .36950E-03    .28337E-04
   4  Prefactor     1.0386        .56068E-02    .20361E-03    .56974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.71444
  Normalizat = 0.719114
  Prefactor  = 1.03863
 **********
 **   18 **HESSE 
 **********

 FCN=   7986.651     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    262.85        .34390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7144        6.1617        .50000       -.71698    
   3  Normalizat    .71911        .20161E-01    .14780E-04   -1.0314    
   4  Prefactor     1.0386        .13243E-01    .40722E-04   -.91453    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68072e-09
Minuit parameter uncertainties:
  1  0.00122541
  2  624.116
  3  0.0201607
  4  0.0132429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17953': 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) = 7986.65081513
delta logL = 2.80020140053e-06

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.225e-03  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.714e+00  6.241e+02  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.039e+00  1.324e-02  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.191e-01  2.016e-02  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/17953/cmap_HighResolution_388886401_389145601_4FGL_J2334.2+0736_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-29 23:45:12.894093', job_id='17953', GAL2='1.04', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632984312.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='577' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 17953: <4FGL_J2334.2+0736_daily_bin577> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin577> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:30:12 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:30:13 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:30:13 2021
Terminated at Wed Sep 29 23:45:13 2021
Results reported at Wed Sep 29 23:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin577 353.557 7.602 388886401 389145601 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 :                                   744.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

