/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 236 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin112
RA = 338.568, Dec = -41.9411
tmin = 268358401, tmax = 268617601
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='355782', job_status='RUN', time_executed='2021-09-28 14:34:51.811155', time_epoch_executed='1632864891.81' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355782/ft1_4FGL_J2234.2-4156_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355782/ft1_4FGL_J2234.2-4156_daily_bin112.fits outfile=/scratch/kocevski/355782/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin112.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=268358401.0 tmax=268617601.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 1.43
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.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/355782/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin112.fits evtable="EVENTS" outfile="/scratch/kocevski/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.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/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/355782/ltcube_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.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/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits
.....................!
real 12.40
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/355782/ltcube_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.fits outfile=/scratch/kocevski/355782/expmap_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.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/355782/ltcube_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.fits
.....................!
real 190.81
user 185.55
sys 4.71

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/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits outfile=/scratch/kocevski/355782/cmap_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.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/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits outfile=/scratch/kocevski/355782/cmap_HighResolution_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/355782/ft2_4FGL_J2234.2-4156_daily_bin112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355782/Model_4FGL_J2234.2-4156_daily_bin112.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/355782/ft1_filtered_4FGL_J2234.2-4156_daily_bin112.fits.....................!
real 46.07
user 44.14
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.130       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73850E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    209.16       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2506       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.903       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.608       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10826E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .74684       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0118       1.0000         .10000E-03   10000.    
    26 'norm      '    11.107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2207       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.975       1.0000         .10000E-03   10000.    
    29 'norm      '    5.4717       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.4787       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62832       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=   5832.623     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     3872 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.164        6.2032        .76292E-06   -.82362E-02
   2  norm          .10000E-03    5.0018        .31596E-06** at limit **
   3  Prefactor     8.3668        1.6132        .10263E-06    .16908E-02
   4  Prefactor     5.4565        1.4084       -.68262E-06    .16557E-02
   5  Prefactor     .10000E-03    35.682       -.42840E-05** at limit **
   6  Prefactor     .10029E-03    9.1660        .18801E-05** at limit **
   7  Prefactor     209.14        5.0992       -.52052E-06    .16043E-01
   8  norm          .10000E-03    1.9794        .14070E-06** at limit **
   9  Prefactor     .10000E-03    2.8621        .64135E-06** at limit **
  10  Prefactor     .10714        .32551        .19363E-06   -.31242E-03
  11  Prefactor     32.854        1.2571        .54354E-07   -.45416E-04
  12  Prefactor     .10000E-03    2.8721       -.21614E-06** at limit **
  13  Prefactor     2.2511        1.0358        .18211E-06   -.15671E-03
  14  Prefactor     18.902        1.0265       -.60761E-07   -.11882E-03
  15  Prefactor     28.597        2.3002        .32415E-06    .12142E-03
  16  Prefactor     2.5220        9.2409        .82491E-05    .11915E-03
  17  Prefactor     .10018E-03    20.813        .41222E-06** at limit **
  18  Prefactor     .10000E-03    1.5782       -.23890E-07** at limit **
  19  Prefactor     .10000E-03    2.5879        .22498E-06** at limit **
  20  Prefactor     .10007E-03    33.766        .55347E-05** at limit **
  21  Prefactor     .10000E-03    14.916       -.65432E-06** at limit **
  22  Prefactor     .10000E-03    5.8799        .48066E-06** at limit **
  23  norm          .10118E-03    175.22       -.12502E-04** at limit **
  24  norm          .74667        4.5355        .83854E-06   -.31882E-03
  25  norm          4.0125        2.0440        .30215E-05    .46351E-02
  26  norm          11.107        1.1204        .31809E-06   -.23722E-03
  27  Prefactor     2.2203        3.7080       -.64366E-05    .12811E-02
  28  Prefactor     23.972        1.0767        .26180E-07    .68694E-03
  29  norm          5.4714        2.4053        .27914E-05    .25016E-02
  30  Prefactor     .10000E-03    5.5281       -.12016E-05** at limit **
  31  norm          4.4790        1.3703        .80918E-07    .36885E-02
  32  Normalizat    1.0599        .18807       -.13538E-05   -.98203E-05
  33  Prefactor     .62820        .17602       -.14666E-06   -.62058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.1643
  norm       = 0.0001
  Prefactor  = 8.36678
  Prefactor  = 5.45653
  Prefactor  = 0.0001
  Prefactor  = 0.000100295
  Prefactor  = 209.136
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.107144
  Prefactor  = 32.8543
  Prefactor  = 0.0001
  Prefactor  = 2.25111
  Prefactor  = 18.9021
  Prefactor  = 28.5975
  Prefactor  = 2.52203
  Prefactor  = 0.000100181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101176
  norm       = 0.746669
  norm       = 4.01247
  norm       = 11.1071
  Prefactor  = 2.22029
  Prefactor  = 23.972
  norm       = 5.4714
  Prefactor  = 0.0001
  norm       = 4.47904
  Normalizat = 1.05994
  Prefactor  = 0.628198
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.623     FROM HESSE     STATUS=OK           777 CALLS     4649 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.164        43.559        .10524E-02   -1.3795    
   2  norm          .10000E-03    4.8417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3668        7.2570        .34649E-02   -1.5129    
   4  Prefactor     5.4565        5.8943        .43008E-02   -1.5241    
   5  Prefactor     .10000E-03    42.714        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10029E-03    10.551        .74716E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     209.14        134.31        .69880E-03   -1.2805    
   8  norm          .10000E-03    1.9792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10714        1.5179        .54458E-01   -1.5643    
  11  Prefactor     32.854        29.480        .17479E-02   -1.4561    
  12  Prefactor     .10000E-03    2.8603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2511        9.6607        .68473E-02   -1.5408    
  14  Prefactor     18.902        14.652        .23030E-02   -1.4838    
  15  Prefactor     28.597        33.185        .18726E-02   -1.4638    
  16  Prefactor     2.5220        15.044        .64203E-02   -1.5390    
  17  Prefactor     .10018E-03    50.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10007E-03    54.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10118E-03    8.2577        .90771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .74667        4.8788        .12240E-01   -1.5535    
  25  norm          4.0125        4.7717        .50336E-02   -1.5307    
  26  norm          11.107        9.7416        .30052E-02   -1.5041    
  27  Prefactor     2.2203        4.9156        .68987E-02   -1.5410    
  28  Prefactor     23.972        35.995        .20452E-02   -1.4728    
  29  norm          5.4714        5.6083        .42944E-02   -1.5240    
  30  Prefactor     .10000E-03    5.5329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.4790        4.5302        .47565E-02   -1.5285    
  32  Normalizat    1.0599        .17017        .39943E-01   -.91049    
  33  Prefactor     .62820        .15497        .41439E-01   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63557e-06
Minuit parameter uncertainties:
  1  43.5747
  2  6.79496e-06
  3  7.25775
  4  5.89491
  5  0.00014373
  6  0.00352852
  7  134.511
  8  8.88596e-07
  9  5.98715e-05
  10  0.806199
  11  29.4932
  12  6.41939e-05
  13  9.32917
  14  14.6547
  15  33.206
  16  12.3239
  17  0.00607865
  18  3.78669e-07
  19  5.17398e-06
  20  0.00387368
  21  1.4323e-06
  22  1.77339e-05
  23  0.00623405
  24  3.81745
  25  4.77217
  26  9.743
  27  4.91647
  28  36.0272
  29  5.60885
  30  7.33101e-06
  31  4.53052
  32  0.170253
  33  0.155074
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.285e+01  2.949e+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:  6.282e-01  1.551e-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.060e+00  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.16e-05

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) = 5832.6101502
delta logL = 0.0126574262595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5832.59968167
delta logL = 0.0231259581906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.634       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1529       1.0000          .0000       10.000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63068       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=   5832.600     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      245 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.611        39.249        .38105E-03    .12152E-03
   2  Index         2.1535        .84110        .74219E-02    .23883E-04
   3  Normalizat    1.0551        .18991        .21789E-03    .20237E-03
   4  Prefactor     .63069        .17635        .25697E-03    .19466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6107
  Index      = 2.15346
  Normalizat = 1.05506
  Prefactor  = 0.630694
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.600     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.611        35.300        .15242E-04   -1.4657    
   2  Index         2.1535        .75709        .29688E-03   -.60566    
   3  Normalizat    1.0551        .18966        .43578E-04   -.91208    
   4  Prefactor     .63069        .17635        .10279E-04   -1.0631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89462e-10
Minuit parameter uncertainties:
  1  35.3266
  2  0.761438
  3  0.189784
  4  0.176504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355782': 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) = 5832.59968124
delta logL = 0.023126384488

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.761e+01  3.533e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.153e+00  7.614e-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:  6.307e-01  1.765e-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.055e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.15 +/- 0.76
Photon Flux (Free Index): 2.21e-08 +/- 2.60e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.21e-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/355782/cmap_HighResolution_268358401_268617601_4FGL_J2234.2-4156_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='1.08e-05', photon_flux_error='1.64e-08', dlogl='2.31e-02', energy_flux='1.29e-05', photon_flux2='2.21e-08', job_status='DONE', time_completed='2021-09-28 14:46:54.602986', photon_index_error2='0.76', photon_index2='2.15', ts='4.29', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.06', time_epoch_completed='1632865614.6', return_code='0', job_id='355782', GAL2='0.63', EG2='1.06', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.60e-08', ts2='4.33', photon_index='1.99' WHERE bin_id='112' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:46:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 355782: <4FGL_J2234.2-4156_daily_bin112> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin112> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 14:30:44 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:30:47 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:30:47 2021
Terminated at Tue Sep 28 14:46:55 2021
Results reported at Tue Sep 28 14:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin112 338.568 -41.9411 268358401 268617601 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 :                                   722.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            971 sec.

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

