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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin391
RA = 338.568, Dec = -41.9411
tmin = 340675201, tmax = 340934401
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='357311', job_status='RUN', time_executed='2021-09-28 14:38:33.590182', time_epoch_executed='1632865113.59' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357311

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357311/ft1_4FGL_J2234.2-4156_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357311/ft1_4FGL_J2234.2-4156_daily_bin391.fits outfile=/scratch/kocevski/357311/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin391.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.09
user 5.84
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.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/357311/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.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/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/357311/ltcube_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.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/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits
.....................!
real 10.85
user 10.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/357311/ltcube_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits outfile=/scratch/kocevski/357311/expmap_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.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/357311/ltcube_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits
.....................!
real 190.96
user 185.55
sys 5.04

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits outfile=/scratch/kocevski/357311/cmap_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.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.568 yref=-41.9411 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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits outfile=/scratch/kocevski/357311/cmap_HighResolution_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.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.568 yref=-41.9411 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/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357311/Model_4FGL_J2234.2-4156_daily_bin391.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/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits.....................!
real 36.51
user 35.18
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits', '/scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits', expMap='/scratch/kocevski/357311/expmap_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits', expCube='/scratch/kocevski/357311/ltcube_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357311/Model_4FGL_J2234.2-4156_daily_bin391.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/357311/ft1_filtered_4FGL_J2234.2-4156_daily_bin391.fits
Spacecraft file(s): /scratch/kocevski/357311/ft2_4FGL_J2234.2-4156_daily_bin391.fits
Exposure map: /scratch/kocevski/357311/expmap_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits
Exposure cube: /scratch/kocevski/357311/ltcube_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357311/Model_4FGL_J2234.2-4156_daily_bin391.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) = 4433.25189966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58021       1.0000         .10000E-03   10000.    
     2 'norm      '    .29316E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.113       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    119.34       1.0000         .10000E-03   10000.    
     8 'norm      '    6.5646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2465       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9157       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.718       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.225       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8362       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5002       1.0000         .10000E-03   10000.    
    26 'norm      '    6.6605       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4207       1.0000         .10000E-03   10000.    
    28 'Prefactor '    62.799       1.0000         .10000E-03   10000.    
    29 'norm      '    .14107E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.286       1.0000         .10000E-03   10000.    
    31 'norm      '    2.1972       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .47580       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4433.225     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     5822 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54469        175.35       -.37127E-05   -.78535E-04
   2  norm          .29062E-01    3.7928        .10071E-05   -.43209E-03
   3  Prefactor     10.087        10.687        .13464E-06   -.69124E-04
   4  Prefactor     14.152        11.737        .50963E-07   -.11531E-03
   5  Prefactor     20.116        28.760        .39263E-06   -.11198E-04
   6  Prefactor     .10000E-03    4.2513       -.11543E-05** at limit **
   7  Prefactor     119.31        93.020       -.42036E-06   -.38045E-04
   8  norm          6.5640        5.4764        .20306E-07   -.13099E-04
   9  Prefactor     2.2836        4.7084       -.68630E-07   -.49799E-04
  10  Prefactor     5.1882        4.7643        .11048E-06   -.65444E-04
  11  Prefactor     34.245        40.363        .60675E-06    .22431E-04
  12  Prefactor     4.2466        4.2120       -.24544E-07   -.96752E-04
  13  Prefactor     .10000E-03    6.6858        .19321E-06** at limit **
  14  Prefactor     .10000E-03    7.6489        .53411E-06** at limit **
  15  Prefactor     2.6020        34.007        .81401E-06   -.88150E-05
  16  Prefactor     1.9456        9.3345       -.15613E-05   -.13268E-03
  17  Prefactor     39.113        101.91        .10099E-05   -.13267E-04
  18  Prefactor     1.2300        18.328       -.72182E-07   -.21588E-04
  19  Prefactor     .10000E-03    1.9140        .21746E-06** at limit **
  20  Prefactor     7.9147        17.384        .12151E-06   -.87366E-05
  21  Prefactor     32.716        46.510       -.28637E-06   -.36853E-04
  22  Prefactor     55.218        22.292       -.13676E-06   -.90485E-04
  23  norm          .10000E-03    4.1395        .19539E-06** at limit **
  24  norm          2.8359        6.2499       -.11662E-06   -.62160E-04
  25  norm          2.5003        3.4918       -.90111E-08   -.27742E-03
  26  norm          6.6589        8.4972        .12317E-06   -.35793E-04
  27  Prefactor     3.4178        10.807        .58025E-06    .19995E-04
  28  Prefactor     62.786        40.042        .88536E-07   -.20209E-03
  29  norm          .10047E-03    4.3376        .11573E-05** at limit **
  30  Prefactor     16.295        31.154       -.40267E-06   -.92222E-05
  31  norm          2.1989        4.5567       -.11912E-06   -.19245E-03
  32  Normalizat    .47536        .19916        .11356E-05   -.33414E-03
  33  Prefactor     .91543        .18548       -.22833E-05   -.33458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.544694
  norm       = 0.0290617
  Prefactor  = 10.0866
  Prefactor  = 14.1519
  Prefactor  = 20.1158
  Prefactor  = 0.0001
  Prefactor  = 119.309
  norm       = 6.56396
  Prefactor  = 2.28358
  Prefactor  = 5.18817
  Prefactor  = 34.2445
  Prefactor  = 4.24658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60201
  Prefactor  = 1.94559
  Prefactor  = 39.1125
  Prefactor  = 1.22997
  Prefactor  = 0.0001
  Prefactor  = 7.91467
  Prefactor  = 32.7156
  Prefactor  = 55.2176
  norm       = 0.0001
  norm       = 2.83593
  norm       = 2.5003
  norm       = 6.65887
  Prefactor  = 3.41777
  Prefactor  = 62.786
  norm       = 0.000100473
  Prefactor  = 16.2951
  norm       = 2.19886
  Normalizat = 0.475361
  Prefactor  = 0.915427
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.225     FROM HESSE     STATUS=OK           717 CALLS     6539 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54469        178.28        .60640E-02   -1.5560    
   2  norm          .29062E-01    2.8451        .35567E-01   -1.5674    
   3  Prefactor     10.087        10.674        .12617E-03   -1.5073    
   4  Prefactor     14.152        11.710        .10647E-03   -1.4955    
   5  Prefactor     20.116        28.772        .89309E-04   -1.4811    
   6  Prefactor     .10000E-03    4.2399        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     119.31        92.917        .18418E-03   -1.3519    
   8  norm          6.5640        5.4780        .13886E-03   -1.5196    
   9  Prefactor     2.2836        4.6903        .19858E-03   -1.5406    
  10  Prefactor     5.1882        4.7773        .12576E-03   -1.5252    
  11  Prefactor     34.245        40.401        .68492E-04   -1.4537    
  12  Prefactor     4.2466        4.1980        .64685E-03   -1.5296    
  13  Prefactor     .10000E-03    6.6966        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6775        .18008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6020        33.712        .25247E-03   -1.5385    
  16  Prefactor     1.9456        9.4790        .14876E-02   -1.5429    
  17  Prefactor     39.113        101.78        .64074E-04   -1.4456    
  18  Prefactor     1.2300        18.693        .40797E-03   -1.5486    
  19  Prefactor     .10000E-03    1.9239        .90052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9147        17.373        .14252E-03   -1.5145    
  21  Prefactor     32.716        46.520        .70054E-04   -1.4563    
  22  Prefactor     55.218        22.270        .53978E-04   -1.4220    
  23  norm          .10000E-03    4.1450        .13235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8359        6.2125        .11922E-02   -1.5371    
  25  norm          2.5003        3.5442        .14169E-03   -1.5392    
  26  norm          6.6589        8.4950        .15548E-03   -1.5192    
  27  Prefactor     3.4178        10.666        .21872E-03   -1.5338    
  28  Prefactor     62.786        40.240        .50637E-04   -1.4122    
  29  norm          .10047E-03    60.133        .18835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     16.295        30.815        .99245E-04   -1.4900    
  31  norm          2.1989        4.4863        .18200E-03   -1.5411    
  32  Normalizat    .47536        .22255        .28080E-03   -1.1357    
  33  Prefactor     .91543        .20141        .20360E-03   -.95604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99823e-09
Minuit parameter uncertainties:
  1  19.7667
  2  0.574135
  3  10.6764
  4  11.7115
  5  28.7916
  6  3.88743e-05
  7  93.0306
  8  5.47837
  9  4.69104
  10  4.77766
  11  40.4332
  12  4.19832
  13  1.62965e-05
  14  2.93376e-05
  15  18.7444
  16  8.59084
  17  102.232
  18  9.59328
  19  7.00417e-06
  20  17.3845
  21  46.572
  22  22.2735
  23  1.02972e-05
  24  6.21394
  25  3.54448
  26  8.49653
  27  10.6723
  28  40.2577
  29  0.0106807
  30  30.845
  31  4.48701
  32  0.222962
  33  0.201579
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.424e+01  4.043e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.154e-01  2.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  4.754e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.59e-05

TS (Fixed Index): 1.36
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357311/likelihoodResults_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.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) = 4433.07450759
delta logL = 0.150711947223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4433.06987538
delta logL = 0.155344149582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.554       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4789       1.0000          .0000       10.000    
     3 'Normalizat'    .45982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4433.070     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.549        46.445        .95593E-04   -.22891E-03
   2  Index         2.4790        1.1992        .56478E-02   -.10961E-03
   3  Normalizat    .45982        .19624        .28534E-03   -.21407E-03
   4  Prefactor     .92411        .19247        .20271E-03   -.39968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5488
  Index      = 2.47897
  Normalizat = 0.459817
  Prefactor  = 0.924105
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.070     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.549        35.752        .19119E-04   -1.4870    
   2  Index         2.4790        .92633        .22591E-03   -.52846    
   3  Normalizat    .45982        .19516        .11414E-04   -1.1432    
   4  Prefactor     .92411        .19185        .40542E-04   -.95304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40346e-10
Minuit parameter uncertainties:
  1  35.7954
  2  0.933592
  3  0.195449
  4  0.191994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357311': 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) = 4433.06987535
delta logL = 0.155344184566

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.755e+01  3.580e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.479e+00  9.336e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.241e-01  1.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  4.598e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.48 +/- 0.93
Photon Flux (Free Index): 3.07e-08 +/- 3.62e-08
Energy Flux (Free Index): 9.13e-06 +/- 1.05e-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/357311/cmap_HighResolution_340675201_340934401_4FGL_J2234.2-4156_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='9.13e-06', photon_flux_error='2.25e-08', dlogl='1.55e-01', energy_flux='1.34e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-09-28 14:52:29.792105', photon_index_error2='0.93', photon_index2='2.48', ts='1.36', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='7.75e-08', energy_flux_error2='1.05e-05', EG='0.48', time_epoch_completed='1632865949.79', return_code='0', job_id='357311', GAL2='0.92', EG2='0.46', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='3.62e-08', ts2='1.67', photon_index='1.99' WHERE bin_id='391' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 357311: <4FGL_J2234.2-4156_daily_bin391> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin391> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:54 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35:57 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:35:57 2021
Terminated at Tue Sep 28 14:52:30 2021
Results reported at Tue Sep 28 14:52:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin391 338.568 -41.9411 340675201 340934401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

