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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin250
RA = 338.543, Dec = -26.9375
tmin = 304128001, tmax = 304387201
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='349993', job_status='RUN', time_executed='2021-09-28 14:13:21.294427', time_epoch_executed='1632863601.29' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349993/ft1_4FGL_J2234.1-2656_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349993/ft1_4FGL_J2234.1-2656_daily_bin250.fits outfile=/scratch/kocevski/349993/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin250.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=304128001.0 tmax=304387201.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.49
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.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/349993/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin250.fits evtable="EVENTS" outfile="/scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.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/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/349993/ltcube_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.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/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits
.....................!
real 11.72
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/349993/ltcube_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits outfile=/scratch/kocevski/349993/expmap_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.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/349993/ltcube_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits
.....................!
real 192.90
user 187.53
sys 4.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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.1-2656 @ 338.543 -26.9375

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits outfile=/scratch/kocevski/349993/cmap_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.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=338.543 yref=-26.9375 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/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits outfile=/scratch/kocevski/349993/cmap_HighResolution_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.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=338.543 yref=-26.9375 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349993/Model_4FGL_J2234.1-2656_daily_bin250.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/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits.....................!
real 52.38
user 51.04
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits', '/scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits', expMap='/scratch/kocevski/349993/expmap_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits', expCube='/scratch/kocevski/349993/ltcube_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/349993/Model_4FGL_J2234.1-2656_daily_bin250.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.1-2656'

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/349993/ft1_filtered_4FGL_J2234.1-2656_daily_bin250.fits
Spacecraft file(s): /scratch/kocevski/349993/ft2_4FGL_J2234.1-2656_daily_bin250.fits
Exposure map: /scratch/kocevski/349993/expmap_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits
Exposure cube: /scratch/kocevski/349993/ltcube_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/349993/Model_4FGL_J2234.1-2656_daily_bin250.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) = 6101.35128195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12594E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.918       1.0000         .10000E-03   10000.    
     4 'norm      '    .16327       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12737E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5478       1.0000         .10000E-03   10000.    
    10 'norm      '    25.463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.628       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.777       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2652       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8125       1.0000         .10000E-03   10000.    
    19 'norm      '    .35008E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.462       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46444E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1083       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6101.237     FROM MIGRAD    STATUS=FAILED       931 CALLS     3455 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.327        15.692        .75273E-04    .31022E-04
   2  Prefactor     .10004E-03    96.842        .56589E-02** at limit **
   3  Prefactor     72.996        51.216        .23508E-03    .12719E-03
   4  norm          .15258        24.816        .20282E-02    .57138E-03
   5  norm          1.5226        .40714        .23985E-04    .17344E-02
   6  Prefactor     7.4133        5.9119        .14730E-03    .30949E-04
   7  Prefactor     .10000E-03    19.655        .18142E-02** at limit **
   8  Prefactor     .10000E-03    28.423        .35201E-02** at limit **
   9  Prefactor     5.5455        62.526        .17057E-03   -.13997E-05
  10  norm          25.463        20.675        .79387E-04   -.10454E-04
  11  Prefactor     14.984        17.036        .10347E-03    .73397E-04
  12  Prefactor     10.626        11.065        .12290E-03   -.92504E-06
  13  norm          2.1242        3.0962        .12764E-03    .76420E-04
  14  Prefactor     17.794        47.902        .94994E-04   -.36502E-04
  15  Prefactor     6.2637        10.086        .16037E-03    .13540E-04
  16  norm          .10000E-03    1.1796        .82509E-03** at limit **
  17  Prefactor     .10000E-03    4.4744        .16117E-02** at limit **
  18  Prefactor     9.7713        16.757        .12792E-03   -.90426E-03
  19  norm          .85238E-02    39.314        .72977E-03    .87627E-03
  20  Prefactor     31.454        46.605        .71434E-04    .49336E-05
  21  Prefactor     .10000E-03    21.261        .37380E-02** at limit **
  22  Normalizat    1.1087        .23052        .22288E-03   -.13174E-03
  23  Prefactor     .68568        .20093        .25218E-03    .25350E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6101.237     FROM SIMPLEX   STATUS=UNCHANGED    996 CALLS     4451 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.327        15.692        .31192E-05   -1.4643    
   2  Prefactor     .10004E-03    96.842        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.996        51.216        .35026E-06   -1.3997    
   4  norm          .15258        24.816        .15014E-05   -1.5630    
   5  norm          1.5226        .40714        .32853E-06   -1.5461    
   6  Prefactor     7.4133        5.9119        .30840E-06   -1.5163    
   7  Prefactor     .10000E-03    19.655        .75047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.423        .39687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5455        62.526        .40703E-06   -1.5237    
  10  norm          25.463        20.675        .39635E-06   -1.4698    
  11  Prefactor     14.984        17.036        .48497E-06   -1.4934    
  12  Prefactor     10.626        11.065        .50810E-06   -1.5056    
  13  norm          2.1242        3.0962        .43802E-06   -1.5416    
  14  Prefactor     17.794        47.902        .81718E-06   -1.4864    
  15  Prefactor     6.2637        10.086        .59970E-06   -1.5207    
  16  norm          .10000E-03    1.1796        .11368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4744        .32530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7713        16.757        .34156E-06   -1.5083    
  19  norm          .85238E-02    39.314        .41632E-06   -1.5690    
  20  Prefactor     31.454        46.605        .27192E-06   -1.4586    
  21  Prefactor     .10000E-03    21.261        .47066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1087        .23052        .29937E-06   -.89474    
  23  Prefactor     .68568        .20093        .21472E-06   -1.0409    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6101.237     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     4805 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.327        15.691        .15055E-04    .26582E-04
   2  Prefactor     .10002E-03    97.719        .11318E-02** at limit **
   3  Prefactor     72.996        50.471        .94031E-05    .10736E-03
   4  norm          .15250        24.086        .81127E-04    .32119E-03
   5  norm          1.5226        .40444        .95938E-06    .13126E-02
   6  Prefactor     7.4133        5.9116        .58921E-05    .23540E-04
   7  Prefactor     .10000E-03    19.662        .36285E-03** at limit **
   8  Prefactor     .10000E-03    28.838        .70401E-03** at limit **
   9  Prefactor     5.5455        62.457        .68229E-05   -.99975E-06
  10  norm          25.463        20.671        .31755E-05    .64443E-05
  11  Prefactor     14.984        17.032        .41387E-05    .45599E-04
  12  Prefactor     10.626        11.062        .49160E-05    .17113E-04
  13  norm          2.1242        3.0942        .51057E-05    .11801E-03
  14  Prefactor     17.793        47.436        .37998E-05   -.23936E-05
  15  Prefactor     6.2636        10.077        .64149E-05    .48559E-04
  16  norm          .10000E-03    1.1797        .16502E-03** at limit **
  17  Prefactor     .10000E-03    4.4744        .32233E-03** at limit **
  18  Prefactor     9.7721        10.268        .51169E-05    .55544E-03
  19  norm          .84646E-02    15.229        .29191E-04    .13086E-03
  20  Prefactor     31.454        46.595        .28574E-05    .47745E-05
  21  Prefactor     .10000E-03    21.410        .74761E-03** at limit **
  22  Normalizat    1.1087        .22452        .44576E-04    .98853E-04
  23  Prefactor     .68568        .19490        .10087E-04    .29980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3266
  Prefactor  = 0.000100016
  Prefactor  = 72.9961
  norm       = 0.152503
  norm       = 1.52262
  Prefactor  = 7.41333
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.54551
  norm       = 25.4632
  Prefactor  = 14.984
  Prefactor  = 10.6257
  norm       = 2.12424
  Prefactor  = 17.7934
  Prefactor  = 6.26365
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.77212
  norm       = 0.00846459
  Prefactor  = 31.4544
  Prefactor  = 0.000100001
  Normalizat = 1.10867
  Prefactor  = 0.685682
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.237     FROM HESSE     STATUS=OK           346 CALLS     5151 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.327        15.691        .30109E-05   -1.4643    
   2  Prefactor     .10002E-03    97.754        .22636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.996        50.431        .18806E-05   -1.3997    
   4  norm          .15250        24.033        .32451E-05   -1.5630    
   5  norm          1.5226        .40429        .36862E-06   -1.5461    
   6  Prefactor     7.4133        5.9124        .11784E-05   -1.5163    
   7  Prefactor     .10000E-03    19.663        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.855        .14080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5455        62.581        .13646E-05   -1.5237    
  10  norm          25.463        20.637        .63509E-06   -1.4698    
  11  Prefactor     14.984        17.054        .82774E-06   -1.4934    
  12  Prefactor     10.626        11.035        .98319E-06   -1.5056    
  13  norm          2.1242        3.0849        .10211E-05   -1.5416    
  14  Prefactor     17.793        47.087        .75995E-06   -1.4864    
  15  Prefactor     6.2636        10.077        .12830E-05   -1.5207    
  16  norm          .10000E-03    1.1797        .33004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4744        .64466E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7721        10.106        .10234E-05   -1.5083    
  19  norm          .84646E-02    14.741        .11676E-05   -1.5690    
  20  Prefactor     31.454        46.225        .57147E-06   -1.4586    
  21  Prefactor     .10000E-03    21.416        .14952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1087        .22442        .89153E-05   -.89474    
  23  Prefactor     .68568        .19478        .20174E-05   -1.0409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6563e-09
Minuit parameter uncertainties:
  1  15.6929
  2  0.00248574
  3  50.461
  4  3.82917
  5  0.404295
  6  5.91287
  7  5.04657e-05
  8  0.000319945
  9  37.3074
  10  20.6424
  11  17.0594
  12  11.0374
  13  3.08517
  14  47.1858
  15  10.0801
  16  3.13893e-06
  17  1.019e-05
  18  10.108
  19  0.702468
  20  46.2774
  21  0.0002888
  22  0.22461
  23  0.194972
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  2.546e+01  2.064e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.857e-01  1.950e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.109e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 338.543 -26.938
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.49e-05

TS (Fixed Index): 2.88
Ra Dec: 338.543 -26.938
Photon Flux Upper Limit: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349993/likelihoodResults_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.99995609
delta logL = 0.23677834518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.9961207
delta logL = 0.240613738916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.204       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3671       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6100.996     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.238        363.79        .22277E-02    .13835E-04
   2  alpha         2.3691        3.6326        .32791        .40646E-04
   3  Normalizat    1.0937        .76063E-01    .38257E-01    .68392E-05
   4  Prefactor     .69327        .55705E-01    .42315E-01    .17440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2384
  alpha      = 2.36914
  Normalizat = 1.09374
  Prefactor  = 0.693271
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.996     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.238        20.217        .89107E-04   -1.4808    
   2  alpha         2.3691        .64881        .11714E-01   -.52366E-01
   3  Normalizat    1.0937        .20516        .22414E-03   -.89953    
   4  Prefactor     .69327        .18638        .25084E-03   -1.0379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8341e-09
Minuit parameter uncertainties:
  1  20.2234
  2  0.656343
  3  0.205309
  4  0.186548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349993': 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) = 6100.99609917
delta logL = 0.240635271675

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  2.024e+01  2.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  2.369e+00  6.563e-01  0.000e+00  5.000e+00 ( 1.000e+00)
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.933e-01  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.094e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 338.543 -26.938
Photon Index (Free Index): 2.37 +/- 0.66
Photon Flux (Free Index): 3.90e-08 +/- 3.29e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.17e-05

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/349993/cmap_HighResolution_304128001_304387201_4FGL_J2234.1-2656_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-05', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.40e-05', photon_flux_error='2.13e-08', dlogl='2.41e-01', energy_flux='1.83e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-09-28 14:26:20.335495', photon_index_error2='0.66', photon_index2='2.37', ts='2.88', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='7.67e-08', energy_flux_error2='1.17e-05', EG='1.11', time_epoch_completed='1632864380.34', return_code='0', job_id='349993', GAL2='0.69', EG2='1.09', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.29e-08', ts2='3.36', photon_index='1.95' WHERE bin_id='250' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 349993: <4FGL_J2234.1-2656_daily_bin250> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin250> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:10:46 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:10:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:10:48 2021
Terminated at Tue Sep 28 14:26:21 2021
Results reported at Tue Sep 28 14:26:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin250 338.543 -26.9375 304128001 304387201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.1-2656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

