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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1090
RA = 338.568, Dec = -41.9411
tmin = 521856001, tmax = 522115201
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='360231', job_status='RUN', time_executed='2021-09-28 14:45:44.208863', time_epoch_executed='1632865544.21' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360231

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360231/ft1_4FGL_J2234.2-4156_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360231/ft1_4FGL_J2234.2-4156_daily_bin1090.fits outfile=/scratch/kocevski/360231/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1090.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=521856001.0 tmax=522115201.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.81
user 3.58
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.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/360231/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.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/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/360231/ltcube_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.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/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits
.....................!
real 12.01
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/360231/ltcube_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.fits outfile=/scratch/kocevski/360231/expmap_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.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/360231/ltcube_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.fits
.....................!
real 190.52
user 185.23
sys 4.97

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/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits outfile=/scratch/kocevski/360231/cmap_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits outfile=/scratch/kocevski/360231/cmap_HighResolution_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.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/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/360231/ft2_4FGL_J2234.2-4156_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360231/Model_4FGL_J2234.2-4156_daily_bin1090.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/360231/ft1_filtered_4FGL_J2234.2-4156_daily_bin1090.fits.....................!
real 45.79
user 44.55
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2769       1.0000         .10000E-03   10000.    
     2 'norm      '    .89887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.298       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.647       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .67966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19444E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0259       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9707       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11785E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
    29 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67709       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2604       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6022.856     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3841 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2765        1.0237       -.15965E-06    .16242E-03
   2  norm          .89731        1.9544        .47368E-06    .39637E-03
   3  Prefactor     17.297        1.9607       -.64465E-06    .12294E-02
   4  Prefactor     .10002E-03    16.226       -.78433E-05** at limit **
   5  Prefactor     4.5163        1.9339       -.12334E-05    .93727E-03
   6  Prefactor     4.1694        7.2614        .48072E-05    .86924E-03
   7  Prefactor     .11602E-03    76.405       -.19087E-04** at limit **
   8  norm          4.3681        1.0146       -.90197E-07   -.73127E-04
   9  Prefactor     6.8444        1.8750       -.78737E-06   -.98963E-03
  10  Prefactor     3.2695        3.3435       -.10757E-06    .15416E-04
  11  Prefactor     .42985        293.60       -.45107E-04    .25078E-03
  12  Prefactor     3.3557        3.4866        .95878E-06    .20386E-03
  13  Prefactor     .10014E-03    15.128       -.48440E-05** at limit **
  14  Prefactor     28.653        2.8063        .94198E-06   -.44178E-02
  15  Prefactor     .10007E-03    44.471       -.10875E-06** at limit **
  16  Prefactor     .68851        1.3116        .44249E-06   -.15653E-03
  17  Prefactor     .27774E-03    10.740       -.12298E-04** at limit **
  18  Prefactor     .10000E-03    4.1187       -.66344E-06** at limit **
  19  Prefactor     .10000E-03    1.3177       -.18766E-06** at limit **
  20  Prefactor     .10001E-03    23.636        .49136E-05** at limit **
  21  Prefactor     43.944        1.1929       -.22707E-06    .17380E-02
  22  Prefactor     .10000E-03    3.7511        .10558E-05** at limit **
  23  norm          .10000E-03    4.8848        .70553E-05** at limit **
  24  norm          .10000E-03    1.9174        .67411E-06** at limit **
  25  norm          3.0261        3.5924        .18090E-05    .51082E-03
  26  norm          6.9697        1.0414       -.31690E-07   -.46294E-03
  27  Prefactor     .10000E-03    7.4944        .89844E-06** at limit **
  28  Prefactor     13.355        1.5639       -.45405E-07    .13925E-02
  29  norm          .10000E-03    3.4321       -.32912E-06** at limit **
  30  Prefactor     .10000E-03    4.9443       -.81136E-05** at limit **
  31  norm          .10000E-03    1.5283        .55953E-06** at limit **
  32  Normalizat    .67718        .20223       -.44343E-05   -.17500E-04
  33  Prefactor     1.2605        .19890        .26231E-06   -.12993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27652
  norm       = 0.897312
  Prefactor  = 17.2972
  Prefactor  = 0.000100018
  Prefactor  = 4.51628
  Prefactor  = 4.16935
  Prefactor  = 0.000116018
  norm       = 4.36812
  Prefactor  = 6.84437
  Prefactor  = 3.26951
  Prefactor  = 0.429854
  Prefactor  = 3.35567
  Prefactor  = 0.000100136
  Prefactor  = 28.6534
  Prefactor  = 0.000100074
  Prefactor  = 0.688506
  Prefactor  = 0.000277741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 43.9442
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 3.02607
  norm       = 6.96972
  Prefactor  = 0.0001
  Prefactor  = 13.3552
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.677184
  Prefactor  = 1.26046
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.856     FROM HESSE     STATUS=OK           789 CALLS     4630 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2765        20.535        .43743E-02   -1.5249    
   2  norm          .89731        3.8647        .48052E-01   -1.5519    
   3  Prefactor     17.297        9.2760        .24075E-02   -1.4876    
   4  Prefactor     .10002E-03    4.6843        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5163        76.386        .47292E-02   -1.5283    
   6  Prefactor     4.1694        8.2034        .49392E-02   -1.5300    
   7  Prefactor     .11602E-03    191.40        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3681        4.3299        .48178E-02   -1.5290    
   9  Prefactor     6.8444        8.1359        .38334E-02   -1.5185    
  10  Prefactor     3.2695        3.3993        .56012E-02   -1.5346    
  11  Prefactor     .42985        28.164        .15189       -1.5577    
  12  Prefactor     3.3557        3.5222        .55226E-02   -1.5342    
  13  Prefactor     .10014E-03    29.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.653        22.563        .18713E-02   -1.4637    
  15  Prefactor     .10007E-03    44.897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68851        8.8732        .73389E-01   -1.5542    
  17  Prefactor     .27774E-03    480.73        .10127E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    23.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.944        49.798        .15119E-02   -1.4381    
  22  Prefactor     .10000E-03    3.7525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.9170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0261        3.9075        .58322E-02   -1.5360    
  26  norm          6.9697        8.8526        .37988E-02   -1.5180    
  27  Prefactor     .10000E-03    2.8220        .46880E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.355        31.352        .27414E-02   -1.4977    
  29  norm          .10000E-03    3.3938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.9737        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.5266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .67718        .18431        .64666E-01   -1.0480    
  33  Prefactor     1.2605        .17085        .48110E-01   -.84490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41364e-07
Minuit parameter uncertainties:
  1  20.5626
  2  3.72463
  3  9.27676
  4  0.00058193
  5  37.2028
  6  8.20557
  7  0.111096
  8  4.33025
  9  8.13718
  10  3.39948
  11  6.96141
  12  3.52242
  13  0.00400068
  14  22.5698
  15  0.00364531
  16  4.94392
  17  0.58941
  18  1.38242e-05
  19  4.76434e-08
  20  0.00112214
  21  49.8455
  22  8.51983e-07
  23  0.000174023
  24  1.84163e-06
  25  3.90778
  26  8.85426
  27  7.80439e-07
  28  31.391
  29  1.57487e-06
  30  0.000162693
  31  1.39508e-06
  32  0.184476
  33  0.170926
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.299e-01  6.961e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.260e+00  1.709e-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:  6.772e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/360231/likelihoodResults_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.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): 102
logL (Free Index) = 6022.69496486
delta logL = 0.161297493672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6022.67577644
delta logL = 0.180485917954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6687       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1944       1.0000          .0000       10.000    
     3 'Normalizat'    .65602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2696       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.

 FCN=   6022.676     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      259 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6828        105.23        .81598E-02    .71376E-03
   2  Index         3.1923        3.7836        .11430        .14744E-03
   3  Normalizat    .65633        .42275E-01    .65601E-01    .25408E-04
   4  Prefactor     1.2694        .40298E-01    .47953E-01   -.14309E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68283
  Index      = 3.19228
  Normalizat = 0.656333
  Prefactor  = 1.26939
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.676     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      290 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6828        283.14        .17869E-03   -1.5449    
   2  Index         3.1923        5.4400        .82236E-02   -.36992    
   3  Normalizat    .65633        .17864        .29027E-03   -1.0564    
   4  Prefactor     1.2694        .16814        .21198E-03   -.84222    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67229e-06
Minuit parameter uncertainties:
  1  43.868
  2  10.2753
  3  0.178798
  4  0.168209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360231': 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): 102
logL (Free Index) = 6022.67577208
delta logL = 0.180490281422

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.683e+00  4.387e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.192e+00  1.028e+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:  1.269e+00  1.682e-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:  6.563e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/360231/cmap_HighResolution_521856001_522115201_4FGL_J2234.2-4156_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-28 14:59:56.511709', job_id='360231', GAL2='1.27', fit_tolerance='1e-08', EG2='0.66', EG='0.68', time_epoch_completed='1632866396.51', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.80e-01', ts2='0.38', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1090' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 360231: <4FGL_J2234.2-4156_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1090 338.568 -41.9411 521856001 522115201 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 :                                   851.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

