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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin440
RA = 338.568, Dec = -41.9411
tmin = 353376001, tmax = 353635201
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='357384', job_status='RUN', time_executed='2021-09-28 14:38:47.910657', time_epoch_executed='1632865127.91' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357384/ft1_4FGL_J2234.2-4156_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357384/ft1_4FGL_J2234.2-4156_daily_bin440.fits outfile=/scratch/kocevski/357384/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin440.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=353376001.0 tmax=353635201.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 2.78
user 2.56
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.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/357384/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin440.fits evtable="EVENTS" outfile="/scratch/kocevski/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.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.42
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/357384/ltcube_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.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/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits
.....................!
real 9.50
user 9.19
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/357384/ltcube_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.fits outfile=/scratch/kocevski/357384/expmap_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.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/357384/ltcube_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.fits
.....................!
real 151.05
user 146.77
sys 4.05

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/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits outfile=/scratch/kocevski/357384/cmap_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits outfile=/scratch/kocevski/357384/cmap_HighResolution_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.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.47
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/357384/ft2_4FGL_J2234.2-4156_daily_bin440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357384/Model_4FGL_J2234.2-4156_daily_bin440.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/357384/ft1_filtered_4FGL_J2234.2-4156_daily_bin440.fits.....................!
real 32.09
user 30.97
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.842       1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.456       1.0000         .10000E-03   10000.    
    23 'norm      '    10.260       1.0000         .10000E-03   10000.    
    24 'norm      '    11.894       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.7627       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0600       1.0000         .10000E-03   10000.    
    29 'norm      '    22.513       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .35805       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2554       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65574       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=   4680.700     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4562 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.169        .19956E-05** at limit **
   2  norm          15.553        6.6022       -.62862E-08   -.78369E-04
   3  Prefactor     17.985        13.340        .34737E-07   -.77556E-05
   4  Prefactor     8.4768        11.293        .69473E-06   -.31967E-04
   5  Prefactor     .10000E-03    44.174       -.18658E-05** at limit **
   6  Prefactor     .10000E-03    2.9294        .11945E-07** at limit **
   7  Prefactor     .10000E-03    38.250       -.10285E-06** at limit **
   8  norm          1.0327        19.591        .18650E-05   -.14463E-04
   9  Prefactor     .10000E-03    4.2955       -.30917E-07** at limit **
  10  Prefactor     6.5330        6.4927        .99051E-06   -.43258E-05
  11  Prefactor     2.9213        215.65       -.11012E-04   -.12282E-05
  12  Prefactor     2.8192        8.0224        .51230E-05   -.14307E-03
  13  Prefactor     22.840        21.559       -.36373E-07    .48170E-05
  14  Prefactor     62.829        34.510        .97664E-06    .38532E-05
  15  Prefactor     83.144        51.518       -.24178E-05    .63761E-05
  16  Prefactor     6.0282        18.065        .26076E-05   -.26732E-04
  17  Prefactor     .10000E-03    66.482        .83279E-06** at limit **
  18  Prefactor     .10000E-03    9.8655       -.18198E-06** at limit **
  19  Prefactor     .10000E-03    10.847        .26968E-06** at limit **
  20  Prefactor     .10000E-03    39.002       -.28923E-06** at limit **
  21  Prefactor     .10000E-03    21.596       -.54038E-06** at limit **
  22  Prefactor     16.454        21.495        .16160E-06   -.46503E-05
  23  norm          10.281        20.606       -.27737E-06   -.77805E-05
  24  norm          11.894        9.0045       -.20436E-07    .27603E-05
  25  norm          .10000E-03    3.9893       -.17879E-06** at limit **
  26  norm          .10000E-03    7.3903       -.92420E-08** at limit **
  27  Prefactor     6.7620        6.1935        .17955E-07   -.10116E-04
  28  Prefactor     3.0245        203.21        .23342E-04    .10436E-04
  29  norm          22.522        10.155       -.11792E-05   -.50885E-03
  30  Prefactor     .10000E-03    5.9742       -.22459E-07** at limit **
  31  norm          .34980        5.0738       -.71884E-07   -.10399E-03
  32  Normalizat    1.2555        .22844       -.45469E-06    .37870E-04
  33  Prefactor     .65568        .20303       -.11446E-05   -.59182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.5533
  Prefactor  = 17.9845
  Prefactor  = 8.47683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03265
  Prefactor  = 0.0001
  Prefactor  = 6.53296
  Prefactor  = 2.92127
  Prefactor  = 2.8192
  Prefactor  = 22.8396
  Prefactor  = 62.8294
  Prefactor  = 83.1442
  Prefactor  = 6.02817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4543
  norm       = 10.2808
  norm       = 11.8938
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.76197
  Prefactor  = 3.02455
  norm       = 22.522
  Prefactor  = 0.0001
  norm       = 0.349801
  Normalizat = 1.25545
  Prefactor  = 0.655677
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.700     FROM HESSE     STATUS=OK           697 CALLS     5259 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.553        6.6025        .10156E-03   -1.4919    
   3  Prefactor     17.985        13.326        .94443E-04   -1.4860    
   4  Prefactor     8.4768        11.286        .68842E-03   -1.5126    
   5  Prefactor     .10000E-03    44.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9365        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0327        20.374        .49734E-03   -1.5505    
   9  Prefactor     .10000E-03    4.3103        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5330        6.4696        .78507E-03   -1.5197    
  11  Prefactor     2.9213        212.58        .23860E-03   -1.5366    
  12  Prefactor     2.8192        8.0783        .12108E-02   -1.5372    
  13  Prefactor     22.840        21.567        .83819E-04   -1.4752    
  14  Prefactor     62.829        34.571        .50620E-04   -1.4121    
  15  Prefactor     83.144        51.504        .44052E-04   -1.3882    
  16  Prefactor     6.0282        17.964        .81761E-03   -1.5217    
  17  Prefactor     .10000E-03    66.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.454        21.489        .98732E-04   -1.4896    
  23  norm          10.281        20.600        .12509E-03   -1.5067    
  24  norm          11.894        9.0037        .58078E-03   -1.5018    
  25  norm          .10000E-03    3.9962        .13338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.4131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.7620        6.1923        .15429E-03   -1.5188    
  28  Prefactor     3.0245        203.08        .23191E-03   -1.5360    
  29  norm          22.522        10.106        .84419E-04   -1.4758    
  30  Prefactor     .10000E-03    5.9788        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .34980        12.490        .28560E-02   -1.5590    
  32  Normalizat    1.2555        .27467        .25009E-03   -.84906    
  33  Prefactor     .65568        .23990        .30067E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39262e-08
Minuit parameter uncertainties:
  1  8.63619e-05
  2  6.6028
  3  13.3285
  4  11.289
  5  0.00014014
  6  9.77768e-08
  7  4.8203e-06
  8  9.17676
  9  2.01773e-06
  10  6.47025
  11  50.0252
  12  8.08145
  13  21.5744
  14  34.5825
  15  51.5317
  16  17.9797
  17  4.82733e-05
  18  4.54057e-07
  19  7.54385e-06
  20  1.85483e-05
  21  1.06044e-05
  22  21.4995
  23  20.6144
  24  9.00468
  25  1.3734e-05
  26  4.24548e-07
  27  6.19289
  28  49.7435
  29  10.1065
  30  1.68095e-06
  31  4.18077
  32  0.274992
  33  0.240277
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.921e+00  5.003e+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.557e-01  2.403e-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.255e+00  2.750e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357384/likelihoodResults_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.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) = 4680.49096771
delta logL = 0.209263233659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4680.4541647
delta logL = 0.246066248927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57954       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9564       1.0000          .0000       10.000    
     3 'Normalizat'    1.1962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68713       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=   4680.454     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      271 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57616        13.092        .11591E-01    .75501E-03
   2  Index         3.9589        2.0282        .12568        .71514E-04
   3  Normalizat    1.1961        .38010E-01    .57688E-01   -.44771E-04
   4  Prefactor     .68720        .34293E-01    .66481E-01   -.11392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.576161
  Index      = 3.95892
  Normalizat = 1.19613
  Prefactor  = 0.687202
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.454     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      304 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57616        59.492        .73787E-04   -1.5556    
   2  Index         3.9589        6.9594        .43591E-02   -.20975    
   3  Normalizat    1.1961        .21611        .25511E-03   -.86723    
   4  Prefactor     .68720        .19051        .29415E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.95996e-10
Minuit parameter uncertainties:
  1  11.7203
  2  7.27545
  3  0.216271
  4  0.190687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357384': 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) = 4680.45416403
delta logL = 0.246066917931

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  5.762e-01  1.172e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.959e+00  7.275e+00  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.872e-01  1.907e-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.196e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/357384/cmap_HighResolution_353376001_353635201_4FGL_J2234.2-4156_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-28 14:49:06.538723', job_id='357384', GAL2='0.69', fit_tolerance='1e-08', EG2='1.20', EG='1.26', time_epoch_completed='1632865746.54', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.46e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='440' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:49:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 357384: <4FGL_J2234.2-4156_daily_bin440> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin440> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:03 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:04 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:36:04 2021
Terminated at Tue Sep 28 14:49:07 2021
Results reported at Tue Sep 28 14:49:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin440 338.568 -41.9411 353376001 353635201 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 :                                   613.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

