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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1037
RA = 338.568, Dec = -41.9411
tmin = 508118401, tmax = 508377601
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='360145', job_status='RUN', time_executed='2021-09-28 14:46:21.051665', time_epoch_executed='1632865581.05' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360145

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360145/ft1_4FGL_J2234.2-4156_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360145/ft1_4FGL_J2234.2-4156_daily_bin1037.fits outfile=/scratch/kocevski/360145/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1037.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=508118401.0 tmax=508377601.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.65
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/360145/ltcube_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.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/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits
.....................!
real 11.89
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/360145/ltcube_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.fits outfile=/scratch/kocevski/360145/expmap_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.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/360145/ltcube_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.fits
.....................!
real 190.17
user 184.98
sys 4.37

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/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits scfile=/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits outfile=/scratch/kocevski/360145/cmap_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.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/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits scfile=/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits outfile=/scratch/kocevski/360145/cmap_HighResolution_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/360145/ft2_4FGL_J2234.2-4156_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360145/Model_4FGL_J2234.2-4156_daily_bin1037.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/360145/ft1_filtered_4FGL_J2234.2-4156_daily_bin1037.fits.....................!
real 44.43
user 43.07
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    17.343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.519       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.2805       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9323       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.057       1.0000         .10000E-03   10000.    
    29 'norm      '    .33478       1.0000         .10000E-03   10000.    
    30 'Prefactor '    41.556       1.0000         .10000E-03   10000.    
    31 'norm      '    1.5263       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .75098       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1037       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=   5728.899     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4596 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    274.44       -.21415E-05** at limit **
   2  norm          17.342        5.9182        .81020E-07    .71187E-03
   3  Prefactor     1.6770        8.9107        .11429E-04   -.94019E-04
   4  Prefactor     .10000E-03    12.812        .34162E-06** at limit **
   5  Prefactor     .10000E-03    15.929       -.81198E-07** at limit **
   6  Prefactor     6.4094        7.7351        .28210E-07   -.11601E-03
   7  Prefactor     33.476        68.709        .40878E-06   -.13730E-03
   8  norm          .10000E-03    2.4710       -.11173E-07** at limit **
   9  Prefactor     .10000E-03    2.1426        .42594E-07** at limit **
  10  Prefactor     .10000E-03    1.5669       -.39635E-07** at limit **
  11  Prefactor     .10000E-03    15.396        .94537E-07** at limit **
  12  Prefactor     2.1107        5.4562        .76695E-06    .13517E-03
  13  Prefactor     34.408        22.570        .22801E-06    .17635E-03
  14  Prefactor     7.8271        20.265        .89562E-06    .11757E-03
  15  Prefactor     15.034        28.405        .57511E-06    .58985E-04
  16  Prefactor     .10001E-03    8.9937        .20739E-05** at limit **
  17  Prefactor     .10000E-03    42.917        .55406E-06** at limit **
  18  Prefactor     .10000E-03    6.4952       -.10391E-06** at limit **
  19  Prefactor     .10000E-03    2.8109        .66597E-07** at limit **
  20  Prefactor     .10000E-03    12.000        .21029E-06** at limit **
  21  Prefactor     6.0295        79.480        .13032E-05    .18775E-06
  22  Prefactor     .10000E-03    5.3372        .14209E-07** at limit **
  23  norm          .10000E-03    5.6145       -.74695E-07** at limit **
  24  norm          .10000E-03    1.9904       -.72928E-08** at limit **
  25  norm          .10000E-03    5.6118       -.22248E-06** at limit **
  26  norm          9.2819        10.794        .25671E-06    .92319E-04
  27  Prefactor     5.9322        6.5266        .46965E-06   -.12726E-03
  28  Prefactor     17.209        35.387        .21372E-05    .56610E-04
  29  norm          .28937        4.2918       -.36744E-05    .36210E-03
  30  Prefactor     41.553        21.300       -.71367E-08    .37944E-04
  31  norm          1.5325        4.1981        .28627E-06    .39012E-04
  32  Normalizat    .75103        .19038       -.46159E-05    .22782E-03
  33  Prefactor     1.1037        .17210        .26405E-05    .78484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 17.3423
  Prefactor  = 1.67697
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.40936
  Prefactor  = 33.476
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11068
  Prefactor  = 34.4078
  Prefactor  = 7.82709
  Prefactor  = 15.0341
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0295
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.28191
  Prefactor  = 5.93221
  Prefactor  = 17.2094
  norm       = 0.289369
  Prefactor  = 41.5525
  norm       = 1.53255
  Normalizat = 0.751027
  Prefactor  = 1.10369
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.899     FROM HESSE     STATUS=OK           689 CALLS     5285 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    284.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.342        5.9053        .96172E-04   -1.4875    
   3  Prefactor     1.6770        9.5006        .16281E-02   -1.5449    
   4  Prefactor     .10000E-03    13.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4094        7.7380        .15851E-03   -1.5202    
   7  Prefactor     33.476        68.991        .69214E-04   -1.4550    
   8  norm          .10000E-03    2.4734        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1462        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5912        .92455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1107        5.4062        .25911E-03   -1.5417    
  13  Prefactor     34.408        22.568        .68315E-04   -1.4534    
  14  Prefactor     7.8271        20.301        .14330E-03   -1.5148    
  15  Prefactor     15.034        28.283        .10328E-03   -1.4932    
  16  Prefactor     .10001E-03    9.2138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8279        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0295        79.493        .16339E-03   -1.5217    
  22  Prefactor     .10000E-03    5.3473        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.6258        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9910        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.7415        .34897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.2819        10.789        .13156E-03   -1.5099    
  27  Prefactor     5.9322        6.5353        .82434E-03   -1.5221    
  28  Prefactor     17.209        39.614        .96977E-04   -1.4878    
  29  norm          .28937        27.363        .22276E-02   -1.5600    
  30  Prefactor     41.553        21.348        .62184E-04   -1.4418    
  31  norm          1.5325        4.1397        .23456E-03   -1.5460    
  32  Normalizat    .75103        .21840        .26944E-03   -1.0191    
  33  Prefactor     1.1037        .20172        .22093E-03   -.89349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38265e-09
Minuit parameter uncertainties:
  1  0.00268059
  2  5.90545
  3  7.98472
  4  0.000263469
  5  0.000206504
  6  7.73925
  7  69.1561
  8  1.72664e-06
  9  4.89702e-06
  10  3.21859e-06
  11  0.000140021
  12  5.40744
  13  22.5739
  14  20.3184
  15  28.3085
  16  0.000493713
  17  0.000303972
  18  2.45128e-05
  19  8.82278e-06
  20  0.000109365
  21  43.8571
  22  3.25767e-06
  23  1.48642e-05
  24  3.88121e-07
  25  3.54392e-05
  26  10.7917
  27  6.53604
  28  39.6748
  29  5.62948
  30  21.3515
  31  4.14051
  32  0.218657
  33  0.201864
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.400e-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.104e+00  2.019e-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:  7.510e-01  2.187e-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: 4.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360145/likelihoodResults_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.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) = 5728.89923638
delta logL = -0.00030912314287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5728.89923616
delta logL = -0.000308903556288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96233E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9922       1.0000          .0000       10.000    
     3 'Normalizat'    .75103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1037       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5728.899     FROM MIGRAD    STATUS=FAILED        86 CALLS      226 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10277E-03    21.798        .18145E-01** at limit **
   2  Index         1.5661        5.0628        .50000        .14179E-05
   3  Normalizat    .75103        .45054E-02    .26944E-03    .77762E-04
   4  Prefactor     1.1037        .44236E-02    .22093E-03    .11780E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5728.899     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      335 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10277E-03    21.798        .61790E-03** at limit **
   2  Index         1.5661        5.0628        .10614E-02    .14179E-05
   3  Normalizat    .75103        .45054E-02    .63913E-05    .77762E-04
   4  Prefactor     1.1037        .44236E-02    .48127E-05    .11780E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5728.899     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      368 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    278.81        .32687E-02** at limit **
   2  Index         1.6180        7.7327        .50000        .25179E-05
   3  Normalizat    .75103        .16494E-01    .10778E-04    .77847E-04
   4  Prefactor     1.1037        .16194E-01    .44185E-04    .11774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010075
  Index      = 1.61805
  Normalizat = 0.751032
  Prefactor  = 1.10369
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.899     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      397 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    1263.8        .65374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6180        5.4426        .50000       -.74285    
   3  Normalizat    .75103        .38248E-01    .21555E-05   -1.0191    
   4  Prefactor     1.1037        .37550E-01    .88370E-05   -.89349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41057e-09
Minuit parameter uncertainties:
  1  0.0629712
  2  2428.81
  3  0.038249
  4  0.0375508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360145': 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) = 5728.89892661
delta logL = 6.41956830805e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.008e-04  6.297e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.618e+00  2.429e+03  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.104e+00  3.755e-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:  7.510e-01  3.825e-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/360145/cmap_HighResolution_508118401_508377601_4FGL_J2234.2-4156_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-09-28 15:01:11.800094', job_id='360145', GAL2='1.10', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632866471.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1037' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:01:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 360145: <4FGL_J2234.2-4156_daily_bin1037> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1037> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:21 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:23 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:23 2021
Terminated at Tue Sep 28 15:01:12 2021
Results reported at Tue Sep 28 15:01:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1037 338.568 -41.9411 508118401 508377601 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 :                                   889.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

