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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin741
RA = 353.557, Dec = 7.602
tmin = 431395201, tmax = 431654401
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='18201', job_status='RUN', time_executed='2021-09-29 23:33:13.364659', time_epoch_executed='1632983593.36' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18201/ft1_4FGL_J2334.2+0736_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18201/ft2_4FGL_J2334.2+0736_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18201/ft1_4FGL_J2334.2+0736_daily_bin741.fits outfile=/scratch/kocevski/18201/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin741.fits ra=353.557 dec=7.602 rad=12.0 tmin=431395201.0 tmax=431654401.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 5.62
user 5.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18201/ft1_filtered_4FGL_J2334.2+0736_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/18201/ft2_4FGL_J2334.2+0736_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/18201/ltcube_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.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/18201/ft2_4FGL_J2334.2+0736_daily_bin741.fits
.....................!
real 12.27
user 11.62
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18201/ft1_filtered_4FGL_J2334.2+0736_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/18201/ft2_4FGL_J2334.2+0736_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/18201/ltcube_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.fits outfile=/scratch/kocevski/18201/expmap_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.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/18201/ltcube_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.fits
.....................!
real 189.78
user 185.18
sys 4.19

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/18201/ft1_filtered_4FGL_J2334.2+0736_daily_bin741.fits scfile=/scratch/kocevski/18201/ft2_4FGL_J2334.2+0736_daily_bin741.fits outfile=/scratch/kocevski/18201/cmap_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    252.27       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11255       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.141       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5022       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12502E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4133       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=   2793.650     FROM MIGRAD    STATUS=CONVERGED   1009 CALLS     3594 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.208        25.666        .10625E-03   -.21025E-04
   2  Prefactor     .10000E-03    20.353        .18142E-02** at limit **
   3  Prefactor     35.002        56.263        .67735E-04    .31890E-05
   4  Prefactor     3.7502        16.822        .10423E-02    .24875E-04
   5  Prefactor     .10000E-03    7.2174        .13860E-02** at limit **
   6  Prefactor     .10000E-03    69.157        .18142E-02** at limit **
   7  norm          2.1818        2.7199        .91024E-04   -.40529E-03
   8  Prefactor     .10000E-03    8.1689        .14718E-02** at limit **
   9  Prefactor     72.523        38.986        .47141E-04   -.12010E-04
  10  Prefactor     252.44        140.76        .12754E-03   -.14960E-03
  11  norm          2.6968        15.526        .24814E-03   -.18372E-04
  12  Prefactor     11.222        13.365        .11956E-03   -.49969E-04
  13  Prefactor     .10000E-03    445.15        .18142E-02** at limit **
  14  Prefactor     .10461E-03    70.473        .74098E-01** at limit **
  15  Prefactor     30.139        28.461        .72979E-04   -.34895E-04
  16  norm          .10000E-03    7.0438        .13701E-02** at limit **
  17  norm          .10000E-03    42.568        .18142E-02** at limit **
  18  Prefactor     2.5322        9.1724        .11702E-02   -.52521E-03
  19  Prefactor     .10000E-03    36.138        .18142E-02** at limit **
  20  Prefactor     .10008E-03    129.76        .52146E-02** at limit **
  21  Prefactor     5.1002        8.4684        .17801E-03   -.10218E-05
  22  Prefactor     .10000E-03    26.140        .18142E-02** at limit **
  23  Normalizat    .10000E-01    .53921        .12961E-01** at limit **
  24  Prefactor     1.4132        .13241        .17276E-03   -.34232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2082
  Prefactor  = 0.0001
  Prefactor  = 35.0016
  Prefactor  = 3.75017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.18178
  Prefactor  = 0.0001
  Prefactor  = 72.523
  Prefactor  = 252.44
  norm       = 2.69678
  Prefactor  = 11.2218
  Prefactor  = 0.000100002
  Prefactor  = 0.000104614
  Prefactor  = 30.1394
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.53224
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 5.10016
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.41324
 **********
 **   18 **HESSE 
 **********

 FCN=   2793.650     FROM HESSE     STATUS=OK           385 CALLS     3979 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.208        25.667        .42500E-05   -1.4954    
   2  Prefactor     .10000E-03    20.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.002        56.271        .27094E-05   -1.4524    
   4  Prefactor     3.7502        16.806        .41690E-04   -1.5321    
   5  Prefactor     .10000E-03    7.2176        .27721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1818        2.7192        .36409E-05   -1.5413    
   8  Prefactor     .10000E-03    8.1698        .29437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     72.523        38.986        .94283E-05   -1.4003    
  10  Prefactor     252.44        140.60        .25508E-04   -1.2517    
  11  norm          2.6968        15.495        .99256E-05   -1.5380    
  12  Prefactor     11.222        13.353        .47823E-05   -1.5038    
  13  Prefactor     .10000E-03    445.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10461E-03    56.693        .82459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.139        28.459        .14596E-04   -1.4609    
  16  norm          .10000E-03    7.0438        .27403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    42.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5322        9.0087        .46807E-04   -1.5390    
  19  Prefactor     .10000E-03    36.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    132.10        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1002        8.4682        .71206E-05   -1.5256    
  22  Prefactor     .10000E-03    26.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .54007        .25922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4132        .13206        .34552E-04   -.79999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82309e-09
Minuit parameter uncertainties:
  1  25.687
  2  2.98421e-06
  3  56.357
  4  15.885
  5  2.11022e-06
  6  0.000582242
  7  2.71939
  8  6.93015e-06
  9  38.9995
  10  140.784
  11  12.9334
  12  13.3565
  13  0.00181219
  14  0.0323789
  15  28.4719
  16  1.2593e-06
  17  5.77993e-05
  18  9.01347
  19  0.000157872
  20  0.00648741
  21  8.47019
  22  2.67923e-05
  23  8.68469e-06
  24  0.132087
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.014e+01  2.847e+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.413e+00  1.321e-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.000e-02  8.685e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.58e-05

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) = 2793.08439709
delta logL = 0.565643327569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2793.07805155
delta logL = 0.571988858794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.327       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5493       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4228       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=   2793.078     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      253 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.346        38.341        .68397E-04   -.27509E-04
   2  Index         1.5496        .72680        .83588E-02   -.92320E-04
   3  Normalizat    .10000E-01    .84109        .13313E-01** at limit **
   4  Prefactor     1.4232        .11756        .17243E-03   -.13813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3459
  Index      = 1.54963
  Normalizat = 0.01
  Prefactor  = 1.42316
 **********
 **   18 **HESSE 
 **********

 FCN=   2793.078     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.346        38.705        .27359E-05   -1.4535    
   2  Index         1.5496        .73357        .16718E-02   -.76159    
   3  Normalizat    .10000E-01    .84376        .26627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4232        .11699        .68970E-05   -.79715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13482e-12
Minuit parameter uncertainties:
  1  38.7337
  2  0.738689
  3  3.61781e-06
  4  0.117012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18201': 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) = 2793.07804758
delta logL = 0.571992838027

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.435e+01  3.873e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.550e+00  7.387e-01  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.423e+00  1.170e-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.000e-02  3.618e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 353.557 7.602
Photon Index (Free Index): 1.55 +/- 0.74
Photon Flux (Free Index): 2.05e-08 +/- 2.83e-08
Energy Flux (Free Index): 5.49e-05 +/- 1.01e-04

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/18201/cmap_HighResolution_431395201_431654401_4FGL_J2334.2+0736_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='5.49e-05', photon_flux_error='5.25e-08', dlogl='5.72e-01', energy_flux='1.67e-05', photon_flux2='2.05e-08', job_status='DONE', time_completed='2021-09-29 23:41:03.228899', photon_index_error2='0.74', photon_index2='1.55', ts='4.05', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='0.01', time_epoch_completed='1632984063.23', return_code='0', job_id='18201', GAL2='1.42', EG2='0.01', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.83e-08', ts2='5.17', photon_index='2.47' WHERE bin_id='741' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 18201: <4FGL_J2334.2+0736_daily_bin741> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin741 353.557 7.602 431395201 431654401 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 :                                   469.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

