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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin146
RA = 353.557, Dec = 7.602
tmin = 277171201, tmax = 277430401
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='16832', job_status='RUN', time_executed='2021-09-29 23:26:46.383277', time_epoch_executed='1632983206.38' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16832

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16832/ft1_4FGL_J2334.2+0736_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16832/ft1_4FGL_J2334.2+0736_daily_bin146.fits outfile=/scratch/kocevski/16832/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin146.fits ra=353.557 dec=7.602 rad=12.0 tmin=277171201.0 tmax=277430401.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.67
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16832/ft1_filtered_4FGL_J2334.2+0736_daily_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/16832/ltcube_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.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/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits
.....................!
real 11.74
user 11.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16832/ft1_filtered_4FGL_J2334.2+0736_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/16832/ltcube_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.fits outfile=/scratch/kocevski/16832/expmap_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.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/16832/ltcube_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.fits
.....................!
real 191.25
user 185.99
sys 4.86

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/16832/ft1_filtered_4FGL_J2334.2+0736_daily_bin146.fits scfile=/scratch/kocevski/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits outfile=/scratch/kocevski/16832/cmap_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.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/16832/ft1_filtered_4FGL_J2334.2+0736_daily_bin146.fits scfile=/scratch/kocevski/16832/ft2_4FGL_J2334.2+0736_daily_bin146.fits outfile=/scratch/kocevski/16832/cmap_HighResolution_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2435       1.0000         .10000E-03   10000.    
     7 'norm      '    .52510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25606E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .40235E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    118.38       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    107.92       1.0000         .10000E-03   10000.    
    16 'norm      '    .10668E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.272       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9948       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91420       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83835       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=   7660.575     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2754 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8299        .65998E-06** at limit **
   2  Prefactor     .10000E-03    9.8734       -.10316E-05** at limit **
   3  Prefactor     42.141        34.552        .16230E-05    .22090E-03
   4  Prefactor     .10000E-03    2.7855        .44281E-09** at limit **
   5  Prefactor     6.5443        9.7338        .24395E-05   -.24881E-03
   6  Prefactor     6.2461        17.407        .75279E-06   -.64206E-05
   7  norm          .52524        .55068        .26753E-07   -.77658E-04
   8  Prefactor     .10000E-03    5.0326        .14165E-06** at limit **
   9  Prefactor     .10000E-03    5.3473        .57458E-06** at limit **
  10  Prefactor     .10000E-03    106.52        .97045E-06** at limit **
  11  norm          .10009E-03    6.6234       -.31072E-05** at limit **
  12  Prefactor     9.5330        7.0556        .23653E-06    .77638E-03
  13  Prefactor     118.39        123.88        .86313E-06    .32014E-04
  14  Prefactor     .10000E-03    5.4640       -.56860E-06** at limit **
  15  Prefactor     107.94        32.202        .26276E-05    .17163E-02
  16  norm          .10000E-03    14.456        .17349E-05** at limit **
  17  norm          7.9925        17.998       -.80097E-06   -.36879E-04
  18  Prefactor     1.5469        4.1167        .97970E-06   -.13517E-03
  19  Prefactor     .10000E-03    26.922        .13543E-05** at limit **
  20  Prefactor     25.276        22.230       -.85363E-07    .29340E-04
  21  Prefactor     .10000E-03    2.5013        .14635E-07** at limit **
  22  Prefactor     4.9953        13.134        .56300E-05   -.32098E-03
  23  Normalizat    .91386        .19354       -.26422E-05    .34391E-03
  24  Prefactor     .83856        .11496       -.19594E-06    .31650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.1409
  Prefactor  = 0.0001
  Prefactor  = 6.54431
  Prefactor  = 6.24607
  norm       = 0.52524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010009
  Prefactor  = 9.53298
  Prefactor  = 118.385
  Prefactor  = 0.0001
  Prefactor  = 107.945
  norm       = 0.000100001
  norm       = 7.99254
  Prefactor  = 1.54691
  Prefactor  = 0.000100001
  Prefactor  = 25.2765
  Prefactor  = 0.0001
  Prefactor  = 4.99527
  Normalizat = 0.913857
  Prefactor  = 0.838561
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.575     FROM HESSE     STATUS=OK           395 CALLS     3149 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.141        34.690        .61759E-04   -1.4409    
   4  Prefactor     .10000E-03    2.7957        .14265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5443        9.9221        .78441E-03   -1.5196    
   6  Prefactor     6.2461        17.477        .16065E-03   -1.5208    
   7  norm          .52524        .53196        .64100E-03   -1.5563    
   8  Prefactor     .10000E-03    5.0561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    110.64        .39988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10009E-03    22.134        .37772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5330        6.8807        .64916E-03   -1.5090    
  13  Prefactor     118.39        123.50        .18492E-03   -1.3528    
  14  Prefactor     .10000E-03    5.4828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     107.94        35.547        .38715E-04   -1.3626    
  16  norm          .10000E-03    15.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9925        17.574        .14185E-03   -1.5142    
  18  Prefactor     1.5469        4.0090        .23879E-03   -1.5459    
  19  Prefactor     .10000E-03    27.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.276        22.311        .79684E-04   -1.4702    
  21  Prefactor     .10000E-03    2.5119        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9953        13.525        .89969E-03   -1.5261    
  23  Normalizat    .91386        .22311        .31155E-03   -.95975    
  24  Prefactor     .83856        .13385        .20779E-03   -.98322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73761e-09
Minuit parameter uncertainties:
  1  8.12719e-05
  2  0.00011985
  3  34.7065
  4  3.76797e-06
  5  9.92456
  6  17.491
  7  0.531966
  8  1.24325e-05
  9  5.43288e-05
  10  0.000446682
  11  0.00282771
  12  6.88131
  13  123.772
  14  4.34959e-05
  15  35.5539
  16  0.000241828
  17  17.585
  18  4.00967
  19  0.000246443
  20  22.3183
  21  4.46925e-06
  22  13.5338
  23  0.223338
  24  0.133904
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.079e+02  3.555e+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.386e-01  1.339e-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:  9.139e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.30
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 6.55e-08
Energy Flux (Fixed Index): 5.98e-05 +/- 1.97e-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) = 7659.82967242
delta logL = 0.745789107927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7659.82573723
delta logL = 0.749724298827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.764       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9502       1.0000          .0000       10.000    
     3 'Normalizat'    .85257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86936       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=   7659.826     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      297 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.771        48.934        .51899E-04    .17082E-03
   2  Index         2.9503        .49848        .30890E-02    .12825E-03
   3  Normalizat    .85266        .21422        .32085E-03   -.94961E-04
   4  Prefactor     .86927        .13605        .20446E-03    .93691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.7713
  Index      = 2.95027
  Normalizat = 0.852658
  Prefactor  = 0.869268
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.826     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.771        42.043        .10380E-04   -1.4160    
   2  Index         2.9503        .42812        .12356E-03   -.42240    
   3  Normalizat    .85266        .21319        .12834E-04   -.98144    
   4  Prefactor     .86927        .13529        .81784E-05   -.97223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61504e-10
Minuit parameter uncertainties:
  1  42.0642
  2  0.428755
  3  0.213398
  4  0.135346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16832': 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) = 7659.82573666
delta logL = 0.749724863475

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.977e+01  4.206e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.950e+00  4.288e-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:  8.693e-01  1.353e-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:  8.527e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.13
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.95 +/- 0.43
Photon Flux (Free Index): 2.47e-07 +/- 8.00e-08
Energy Flux (Free Index): 5.05e-05 +/- 1.63e-05

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/16832/cmap_HighResolution_277171201_277430401_4FGL_J2334.2+0736_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='5.05e-05', photon_flux_error='6.55e-08', dlogl='7.50e-01', energy_flux='5.98e-05', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-29 23:37:57.867874', photon_index_error2='0.43', photon_index2='2.95', ts='16.30', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.91', time_epoch_completed='1632983877.87', return_code='0', job_id='16832', GAL2='0.87', EG2='0.85', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='8.00e-08', ts2='18.13', photon_index='2.47' WHERE bin_id='146' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:37:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 16832: <4FGL_J2334.2+0736_daily_bin146> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin146> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:15 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:25:17 2021
Terminated at Wed Sep 29 23:37:58 2021
Results reported at Wed Sep 29 23:37:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin146 353.557 7.602 277171201 277430401 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

