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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin300
RA = 338.568, Dec = -41.9411
tmin = 317088001, tmax = 317347201
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='357169', job_status='RUN', time_executed='2021-09-28 14:37:47.050748', time_epoch_executed='1632865067.05' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357169

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357169/ft1_4FGL_J2234.2-4156_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357169/ft1_4FGL_J2234.2-4156_daily_bin300.fits outfile=/scratch/kocevski/357169/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin300.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=317088001.0 tmax=317347201.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.88
user 3.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.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/357169/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/357169/ltcube_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.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/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits
.....................!
real 11.87
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/357169/ltcube_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.fits outfile=/scratch/kocevski/357169/expmap_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.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/357169/ltcube_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.fits
.....................!
real 190.22
user 185.05
sys 4.86

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits outfile=/scratch/kocevski/357169/cmap_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits outfile=/scratch/kocevski/357169/cmap_HighResolution_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/357169/ft2_4FGL_J2234.2-4156_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357169/Model_4FGL_J2234.2-4156_daily_bin300.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/357169/ft1_filtered_4FGL_J2234.2-4156_daily_bin300.fits....................!
real 41.84
user 40.53
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.4427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9613       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12530E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.809       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13823E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10433E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6504       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.3510       1.0000         .10000E-03   10000.    
    28 'Prefactor '    69.124       1.0000         .10000E-03   10000.    
    29 'norm      '    8.3493       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.2921       1.0000         .10000E-03   10000.    
    31 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1381       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0002       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=   5010.546     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4620 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.900       -.26965E-05** at limit **
   2  norm          9.4435        5.9144       -.88342E-07    .17978E-03
   3  Prefactor     .10000E-03    3.2626       -.16589E-07** at limit **
   4  Prefactor     2.1316        7.2432        .77118E-05    .56709E-06
   5  Prefactor     .10000E-03    13.120       -.10083E-05** at limit **
   6  Prefactor     3.5245        8.1067        .29055E-05   -.12056E-03
   7  Prefactor     .10000E-03    112.41        .40378E-05** at limit **
   8  norm          .10000E-03    2.5741       -.40200E-08** at limit **
   9  Prefactor     25.838        12.419        .25937E-06    .93049E-04
  10  Prefactor     4.9632        6.4082        .63604E-06    .23571E-03
  11  Prefactor     .10000E-03    86.925       -.41160E-05** at limit **
  12  Prefactor     .10000E-03    4.0578        .11842E-05** at limit **
  13  Prefactor     .10000E-03    7.7901       -.27207E-07** at limit **
  14  Prefactor     .10000E-03    67.322       -.31748E-05** at limit **
  15  Prefactor     .10000E-03    109.62        .29904E-05** at limit **
  16  Prefactor     4.7062        11.298       -.92174E-06   -.24333E-03
  17  Prefactor     .10000E-03    37.041        .20295E-05** at limit **
  18  Prefactor     .10000E-03    4.4794       -.52561E-07** at limit **
  19  Prefactor     .10000E-03    17.100        .31021E-06** at limit **
  20  Prefactor     20.259        28.079        .98739E-07   -.21138E-04
  21  Prefactor     .10000E-03    56.443        .77256E-07** at limit **
  22  Prefactor     39.825        26.750       -.13747E-06   -.20157E-04
  23  norm          .10000E-03    5.3834        .11996E-07** at limit **
  24  norm          .10004E-03    8.1348       -.19262E-05** at limit **
  25  norm          .10001E-03    10.806       -.61512E-05** at limit **
  26  norm          3.6538        11.473        .70358E-06   -.24781E-04
  27  Prefactor     4.3603        14.282       -.31633E-07   -.26960E-04
  28  Prefactor     69.143        56.959       -.24603E-05   -.31591E-03
  29  norm          8.3530        7.7683       -.93728E-06   -.12519E-02
  30  Prefactor     4.2869        33.654        .85669E-06   -.78433E-05
  31  norm          .10000E-03    4.6023       -.26554E-06** at limit **
  32  Normalizat    1.1377        .23449       -.24212E-05   -.20596E-03
  33  Prefactor     1.0004        .20337        .94056E-06   -.36967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.44354
  Prefactor  = 0.0001
  Prefactor  = 2.13159
  Prefactor  = 0.0001
  Prefactor  = 3.52452
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 25.8384
  Prefactor  = 4.96321
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 4.70619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2591
  Prefactor  = 0.0001
  Prefactor  = 39.8248
  norm       = 0.0001
  norm       = 0.000100042
  norm       = 0.000100008
  norm       = 3.65377
  Prefactor  = 4.36025
  Prefactor  = 69.1427
  norm       = 8.35296
  Prefactor  = 4.28686
  norm       = 0.000100001
  Normalizat = 1.1377
  Prefactor  = 1.00041
 **********
 **   18 **HESSE 
 **********

 FCN=   5010.546     FROM HESSE     STATUS=OK           695 CALLS     5315 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4435        5.9156        .13042E-03   -1.5093    
   3  Prefactor     .10000E-03    3.2662        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1316        7.8606        .14123E-02   -1.5416    
   5  Prefactor     .10000E-03    13.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5245        8.2559        .10773E-02   -1.5332    
   7  Prefactor     .10000E-03    112.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5746        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.838        12.453        .78813E-04   -1.4691    
  10  Prefactor     4.9632        6.4684        .18056E-03   -1.5262    
  11  Prefactor     .10000E-03    86.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.790        .27268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    111.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7062        11.294        .18538E-03   -1.5274    
  17  Prefactor     .10000E-03    37.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4892        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.259        28.071        .88986E-04   -1.4807    
  21  Prefactor     .10000E-03    56.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.825        26.635        .63529E-04   -1.4445    
  23  norm          .10000E-03    5.3866        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10004E-03    59.187        .37328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    16.461        .32810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6538        11.490        .21143E-03   -1.5326    
  27  Prefactor     4.3603        13.334        .19310E-03   -1.5290    
  28  Prefactor     69.143        57.167        .48279E-04   -1.4043    
  29  norm          8.3530        7.0389        .13776E-03   -1.5130    
  30  Prefactor     4.2869        30.415        .19446E-03   -1.5294    
  31  norm          .10000E-03    10.608        .28791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1377        .28225        .26501E-03   -.88551    
  33  Prefactor     1.0004        .24436        .26227E-03   -.92716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46062e-09
Minuit parameter uncertainties:
  1  0.000131671
  2  5.91601
  3  3.32852e-06
  4  7.86439
  5  3.37844e-05
  6  8.25857
  7  0.000565019
  8  9.71722e-07
  9  12.4543
  10  6.46927
  11  0.000593283
  12  3.48528e-05
  13  3.73868e-07
  14  0.000520347
  15  0.000879598
  16  11.2987
  17  0.000127824
  18  3.48571e-06
  19  8.82419e-05
  20  28.0891
  21  4.84245e-05
  22  26.6425
  23  3.5042e-06
  24  0.00316964
  25  0.000735011
  26  11.4972
  27  13.3433
  28  57.2122
  29  7.03955
  30  22.8535
  31  0.000210201
  32  0.282623
  33  0.244635
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.933e-04  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.000e+00  2.446e-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:  1.138e+00  2.826e-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: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357169/likelihoodResults_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.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) = 5010.54559635
delta logL = -5.47366098544e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5010.54554172
delta logL = -1.05409526441e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9494       1.0000          .0000       10.000    
     3 'Normalizat'    1.1377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0004       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=   5010.546     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    948.55        .90712E-02** at limit **
   2  Index         2.0352        7.8137        .50000       -.11582E-04
   3  Normalizat    1.1377        .16766E-01    .59920E-01   -.48944E-03
   4  Prefactor     1.0004        .15749E-01    .45728E-01   -.61241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.03517
  Normalizat = 1.1377
  Prefactor  = 1.00041
 **********
 **   18 **HESSE 
 **********

 FCN=   5010.546     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6375.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0352        7.0974        .50000       -.63474    
   3  Normalizat    1.1377        .30121E-01    .26501E-03   -.88550    
   4  Prefactor     1.0004        .28307E-01    .26227E-03   -.92716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7717e-08
Minuit parameter uncertainties:
  1  0.0153724
  2  21.7407
  3  0.0301212
  4  0.0283075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357169': 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) = 5010.5455415
delta logL = 1.15348484542e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.537e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.035e+00  2.174e+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.000e+00  2.831e-02  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:  1.138e+00  3.012e-02  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/357169/cmap_HighResolution_317088001_317347201_4FGL_J2234.2-4156_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-28 14:51:18.123558', job_id='357169', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632865878.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='300' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 357169: <4FGL_J2234.2-4156_daily_bin300> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin300> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:40 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35:42 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:42 2021
Terminated at Tue Sep 28 14:51:18 2021
Results reported at Tue Sep 28 14:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin300 338.568 -41.9411 317088001 317347201 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 :                                   811.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

