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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1354
RA = 338.568, Dec = -41.9411
tmin = 590284801, tmax = 590544001
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='361687', job_status='RUN', time_executed='2021-09-28 14:51:42.956218', time_epoch_executed='1632865902.96' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361687

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361687/ft1_4FGL_J2234.2-4156_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361687/ft1_4FGL_J2234.2-4156_daily_bin1354.fits outfile=/scratch/kocevski/361687/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1354.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=590284801.0 tmax=590544001.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.71
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.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/361687/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1354.fits evtable="EVENTS" outfile="/scratch/kocevski/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.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/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/361687/ltcube_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.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/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits
.....................!
real 12.05
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/361687/ltcube_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits outfile=/scratch/kocevski/361687/expmap_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.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/361687/ltcube_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits
.....................!
real 190.77
user 186.07
sys 4.36

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/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits outfile=/scratch/kocevski/361687/cmap_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits outfile=/scratch/kocevski/361687/cmap_HighResolution_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361687/Model_4FGL_J2234.2-4156_daily_bin1354.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/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits.....................!
real 47.68
user 46.31
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits', '/scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits', expMap='/scratch/kocevski/361687/expmap_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits', expCube='/scratch/kocevski/361687/ltcube_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361687/Model_4FGL_J2234.2-4156_daily_bin1354.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/361687/ft1_filtered_4FGL_J2234.2-4156_daily_bin1354.fits
Spacecraft file(s): /scratch/kocevski/361687/ft2_4FGL_J2234.2-4156_daily_bin1354.fits
Exposure map: /scratch/kocevski/361687/expmap_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits
Exposure cube: /scratch/kocevski/361687/ltcube_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361687/Model_4FGL_J2234.2-4156_daily_bin1354.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) = 6079.16350693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7358       1.0000         .10000E-03   10000.    
     2 'norm      '    23.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33255E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.992       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.417       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.259       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.6753       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1931       1.0000         .10000E-03   10000.    
    26 'norm      '    9.4457       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1639       1.0000         .10000E-03   10000.    
    28 'Prefactor '    47.165       1.0000         .10000E-03   10000.    
    29 'norm      '    .11377E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.0152       1.0000         .10000E-03   10000.    
    31 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82978       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93043       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=   6079.135     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4567 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7259        44.807        .15868E-05   -.27095E-04
   2  norm          23.384        6.1657       -.34008E-07    .34745E-04
   3  Prefactor     9.4828        6.5708        .83491E-07    .78969E-04
   4  Prefactor     .10000E-03    4.3362       -.38766E-06** at limit **
   5  Prefactor     53.101        41.191       -.19139E-05    .13026E-03
   6  Prefactor     4.4841        9.9653        .32021E-05    .11644E-03
   7  Prefactor     19.015        83.532       -.60818E-05    .30537E-04
   8  norm          .10000E-03    8.3236       -.17217E-06** at limit **
   9  Prefactor     4.0040        6.3308        .17420E-05    .10138E-03
  10  Prefactor     1.9547        2.8333        .11499E-06    .68951E-06
  11  Prefactor     15.418        26.249        .54237E-07    .50263E-05
  12  Prefactor     .10000E-03    1.5908       -.92178E-07** at limit **
  13  Prefactor     .10000E-03    5.9686        .52406E-07** at limit **
  14  Prefactor     .10000E-03    6.4755       -.24585E-06** at limit **
  15  Prefactor     12.154        20.865        .69382E-06   -.79731E-04
  16  Prefactor     .10000E-03    5.5141       -.11702E-06** at limit **
  17  Prefactor     .10000E-03    54.867       -.39352E-06** at limit **
  18  Prefactor     24.258        13.776        .12609E-06    .68828E-06
  19  Prefactor     .10000E-03    1.9604       -.28971E-07** at limit **
  20  Prefactor     .10000E-03    11.440        .38952E-06** at limit **
  21  Prefactor     .10000E-03    12.751       -.39929E-06** at limit **
  22  Prefactor     .10000E-03    4.0530       -.22432E-06** at limit **
  23  norm          .10000E-03    3.7624        .19494E-06** at limit **
  24  norm          7.6752        5.5790       -.18297E-07   -.60930E-05
  25  norm          2.1994        4.1595       -.14888E-06   -.70540E-03
  26  norm          9.4473        11.117        .12781E-06   -.15320E-03
  27  Prefactor     6.1640        7.4702        .23843E-06   -.27885E-04
  28  Prefactor     47.199        34.245       -.24288E-05   -.30280E-03
  29  norm          .10000E-03    3.9851        .34763E-05** at limit **
  30  Prefactor     2.0148        39.574        .49065E-06   -.12685E-04
  31  norm          .10000E-03    3.5193        .44095E-06** at limit **
  32  Normalizat    .82967        .18189       -.21381E-05   -.28783E-03
  33  Prefactor     .93067        .16398        .13491E-05   -.30287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72591
  norm       = 23.3844
  Prefactor  = 9.4828
  Prefactor  = 0.0001
  Prefactor  = 53.1006
  Prefactor  = 4.48411
  Prefactor  = 19.0147
  norm       = 0.0001
  Prefactor  = 4.00402
  Prefactor  = 1.9547
  Prefactor  = 15.4184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.67519
  norm       = 2.19937
  norm       = 9.4473
  Prefactor  = 6.16403
  Prefactor  = 47.1989
  norm       = 0.000100001
  Prefactor  = 2.01477
  norm       = 0.0001
  Normalizat = 0.829667
  Prefactor  = 0.930666
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.135     FROM HESSE     STATUS=OK           695 CALLS     5262 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7259        44.467        .20891E-03   -1.5322    
   2  norm          23.384        6.1414        .82834E-04   -1.4740    
   3  Prefactor     9.4828        6.5197        .13015E-03   -1.5092    
   4  Prefactor     .10000E-03    12.269        .31127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.101        40.975        .55050E-04   -1.4249    
   6  Prefactor     4.4841        10.077        .95023E-03   -1.5284    
   7  Prefactor     19.015        82.667        .91904E-04   -1.4836    
   8  norm          .10000E-03    8.5581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0040        6.4379        .10075E-02   -1.5308    
  10  Prefactor     1.9547        2.8138        .15009E-03   -1.5428    
  11  Prefactor     15.418        26.236        .10200E-03   -1.4922    
  12  Prefactor     .10000E-03    1.5980        .95996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.154        20.896        .11482E-03   -1.5011    
  16  Prefactor     .10000E-03    5.5438        .17861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.258        13.827        .81328E-04   -1.4723    
  19  Prefactor     .10000E-03    1.9648        .10660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0543        .15328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7632        .14768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.6752        5.5807        .14475E-03   -1.5154    
  25  norm          2.1994        4.0846        .20576E-03   -1.5411    
  26  norm          9.4473        11.105        .13040E-03   -1.5093    
  27  Prefactor     6.1640        7.1990        .80851E-03   -1.5211    
  28  Prefactor     47.199        34.981        .58385E-04   -1.4333    
  29  norm          .10000E-03    6.0629        .25705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.0148        36.894        .29158E-03   -1.5424    
  31  norm          .10000E-03    3.5512        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .82967        .21070        .25391E-03   -.98977    
  33  Prefactor     .93067        .19048        .23154E-03   -.95078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79376e-10
Minuit parameter uncertainties:
  1  25.7668
  2  6.14157
  3  6.52022
  4  0.000114752
  5  40.997
  6  10.0812
  7  79.4796
  8  5.90558e-06
  9  6.43901
  10  2.81397
  11  26.2557
  12  3.67175e-06
  13  6.30535e-06
  14  2.35441e-05
  15  20.9086
  16  4.33787e-05
  17  1.62347e-05
  18  13.829
  19  3.89211e-07
  20  8.38074e-05
  21  6.6153e-05
  22  1.66799e-05
  23  1.87962e-05
  24  5.58105
  25  4.0851
  26  11.1075
  27  7.20001
  28  34.9957
  29  0.000173453
  30  17.2551
  31  2.98828e-05
  32  0.210906
  33  0.19062
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.542e+01  2.626e+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.307e-01  1.906e-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:  8.297e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361687/likelihoodResults_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.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) = 6079.12907561
delta logL = 0.00544152407929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6079.1259814
delta logL = 0.00853573476343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.097       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8795       1.0000          .0000       10.000    
     3 'Normalizat'    .83048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93016       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=   6079.126     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.097        37.213        .94150E-04   -.11783E-03
   2  Index         1.8795        .87916        .10774E-01   -.24456E-04
   3  Normalizat    .83076        .19264        .25375E-03   -.31676E-04
   4  Prefactor     .92989        .18634        .23162E-03   -.24983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0974
  Index      = 1.87953
  Normalizat = 0.83076
  Prefactor  = 0.929886
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.126     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.097        35.231        .18830E-04   -1.4857    
   2  Index         1.8795        .83346        .43097E-03   -.67397    
   3  Normalizat    .83076        .19278        .10150E-04   -.98938    
   4  Prefactor     .92989        .18648        .92649E-05   -.95104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68365e-11
Minuit parameter uncertainties:
  1  35.2717
  2  0.839919
  3  0.192936
  4  0.186612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361687': 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) = 6079.12598028
delta logL = 0.00853685954189

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.810e+01  3.527e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.880e+00  8.399e-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.299e-01  1.866e-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:  8.308e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 338.568 -41.941

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/361687/cmap_HighResolution_590284801_590544001_4FGL_J2234.2-4156_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-28 15:07:01.465050', job_id='361687', GAL2='0.93', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632866821.47', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.54e-03', ts2='0.52', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1354' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 361687: <4FGL_J2234.2-4156_daily_bin1354> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1354> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:34 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:35 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:50:35 2021
Terminated at Tue Sep 28 15:07:02 2021
Results reported at Tue Sep 28 15:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1354 338.568 -41.9411 590284801 590544001 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 :                                   917.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

