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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1006
RA = 338.568, Dec = -41.9411
tmin = 500083201, tmax = 500342401
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='360093', job_status='RUN', time_executed='2021-09-28 14:46:25.254695', time_epoch_executed='1632865585.25' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360093/ft1_4FGL_J2234.2-4156_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360093/ft1_4FGL_J2234.2-4156_daily_bin1006.fits outfile=/scratch/kocevski/360093/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1006.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.65
user 5.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.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/360093/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.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/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/360093/ltcube_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.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/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits
.....................!
real 12.04
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/360093/ltcube_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.fits outfile=/scratch/kocevski/360093/expmap_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.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/360093/ltcube_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.fits
.....................!
real 190.99
user 185.11
sys 5.26

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/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits outfile=/scratch/kocevski/360093/cmap_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits outfile=/scratch/kocevski/360093/cmap_HighResolution_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/360093/ft2_4FGL_J2234.2-4156_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360093/Model_4FGL_J2234.2-4156_daily_bin1006.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/360093/ft1_filtered_4FGL_J2234.2-4156_daily_bin1006.fits.....................!
real 34.76
user 33.49
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.033       1.0000         .10000E-03   10000.    
     2 'norm      '    12.117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    100.20       1.0000         .10000E-03   10000.    
    23 'norm      '    29.220       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    24.491       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.1712       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.3363       1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .58031       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=   3259.649     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4556 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.020        59.125       -.89947E-05   -.94743E-05
   2  norm          12.118        7.8023       -.14567E-05   -.85544E-04
   3  Prefactor     .10000E-03    4.7833        .40263E-07** at limit **
   4  Prefactor     13.109        9.5525        .14824E-06   -.23625E-04
   5  Prefactor     20.025        30.909        .97207E-06    .26755E-04
   6  Prefactor     .10000E-03    13.297       -.68686E-05** at limit **
   7  Prefactor     .10000E-03    87.942       -.81572E-05** at limit **
   8  norm          .10000E-03    3.6858        .26881E-06** at limit **
   9  Prefactor     25.159        16.613        .57249E-06    .66794E-04
  10  Prefactor     5.5438        7.1158        .40131E-05   -.15523E-03
  11  Prefactor     .10000E-03    28.880       -.23890E-05** at limit **
  12  Prefactor     2.4025        10.307        .15873E-05   -.20433E-03
  13  Prefactor     8.9561        36.958       -.52897E-06   -.16986E-05
  14  Prefactor     .10000E-03    41.931        .25147E-04** at limit **
  15  Prefactor     .10000E-03    52.704       -.31579E-04** at limit **
  16  Prefactor     .10000E-03    14.976        .81036E-05** at limit **
  17  Prefactor     .10000E-03    104.11        .30874E-04** at limit **
  18  Prefactor     .10000E-03    190.39       -.50709E-04** at limit **
  19  Prefactor     .73616        12.553       -.24017E-05   -.27233E-03
  20  Prefactor     .10000E-03    47.567       -.60834E-05** at limit **
  21  Prefactor     30.431        145.91        .12211E-03    .21207E-04
  22  Prefactor     100.21        53.524        .40445E-05    .24982E-04
  23  norm          29.223        27.077       -.51217E-06    .10419E-04
  24  norm          .10000E-03    7.0054        .13384E-06** at limit **
  25  norm          .10000E-03    7.6492        .13807E-06** at limit **
  26  norm          24.484        28.884       -.17395E-05   -.37411E-05
  27  Prefactor     .10000E-03    17.886       -.37730E-05** at limit **
  28  Prefactor     .10000E-03    100.05        .22624E-04** at limit **
  29  norm          6.1720        8.8737       -.22765E-06   -.16513E-03
  30  Prefactor     9.3430        35.296        .10506E-05    .23100E-04
  31  norm          .10000E-03    11.851        .20883E-05** at limit **
  32  Normalizat    1.2817        .28589       -.54590E-05    .47145E-03
  33  Prefactor     .58090        .21990        .16488E-05    .64806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0203
  norm       = 12.1175
  Prefactor  = 0.0001
  Prefactor  = 13.1092
  Prefactor  = 20.0245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.1587
  Prefactor  = 5.54383
  Prefactor  = 0.0001
  Prefactor  = 2.40245
  Prefactor  = 8.95614
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.736158
  Prefactor  = 0.0001
  Prefactor  = 30.4314
  Prefactor  = 100.214
  norm       = 29.2228
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.4845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17199
  Prefactor  = 9.34295
  norm       = 0.0001
  Normalizat = 1.28171
  Prefactor  = 0.5809
 **********
 **   18 **HESSE 
 **********

 FCN=   3259.649     FROM HESSE     STATUS=OK           693 CALLS     5249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.020        59.421        .61112E-04   -1.4395    
   2  norm          12.118        7.8148        .10632E-03   -1.5012    
   3  Prefactor     .10000E-03    4.8251        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.109        9.5490        .11063E-03   -1.4984    
   5  Prefactor     20.025        30.912        .89495E-04   -1.4813    
   6  Prefactor     .10000E-03    13.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6863        .10705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.159        16.727        .79879E-04   -1.4704    
  10  Prefactor     5.5438        7.1130        .16072E-03   -1.5237    
  11  Prefactor     .10000E-03    28.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4025        10.243        .26424E-03   -1.5398    
  13  Prefactor     8.9561        37.018        .13401E-03   -1.5109    
  14  Prefactor     .10000E-03    41.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    104.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    198.44        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73616        34.339        .38668E-02   -1.5536    
  20  Prefactor     .10000E-03    47.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.431        146.08        .72721E-04   -1.4604    
  22  Prefactor     100.21        53.637        .40161E-04   -1.3702    
  23  norm          29.223        27.068        .74118E-04   -1.4626    
  24  norm          .10000E-03    7.0065        .14759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.6527        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          24.484        28.902        .80943E-04   -1.4718    
  27  Prefactor     .10000E-03    17.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    100.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.1720        8.8557        .16160E-03   -1.5211    
  30  Prefactor     9.3430        35.138        .13116E-03   -1.5097    
  31  norm          .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2817        .34523        .24822E-03   -.84114    
  33  Prefactor     .58090        .26137        .28954E-03   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22439e-09
Minuit parameter uncertainties:
  1  59.5033
  2  7.81543
  3  2.48931e-05
  4  9.55012
  5  30.9368
  6  0.000103635
  7  0.00011095
  8  9.73314e-07
  9  16.7296
  10  7.11409
  11  5.11193e-05
  12  9.92421
  13  36.455
  14  0.000314863
  15  7.67083e-07
  16  1.00483e-05
  17  3.48688e-06
  18  0.00126091
  19  10.061
  20  2.41118e-05
  21  133.881
  22  53.6633
  23  27.0795
  24  5.97337e-06
  25  1.65487e-06
  26  28.9184
  27  4.48568e-05
  28  2.02635e-05
  29  8.85759
  30  35.2156
  31  9.79504e-06
  32  0.345856
  33  0.261914
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.112e-05  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:  5.809e-01  2.619e-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.282e+00  3.459e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360093/likelihoodResults_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.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) = 3259.64964204
delta logL = -0.000164641775427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3259.64947748
delta logL = -8.25320967124e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0656       1.0000          .0000       10.000    
     3 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58092       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=   3259.649     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7443.2        .90712E-02** at limit **
   2  Index         2.0494        5.6467        .50000        .46705E-05
   3  Normalizat    1.2817        .16744        .56134E-01   -.28915E-04
   4  Prefactor     .58091        .13703        .65429E-01    .32283E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0494
  Normalizat = 1.28169
  Prefactor  = 0.580909
 **********
 **   18 **HESSE 
 **********

 FCN=   3259.649     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0494        5.1283        .50000       -.63121    
   3  Normalizat    1.2817        .31017        .24822E-03   -.84114    
   4  Prefactor     .58091        .25362        .28954E-03   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27059e-10
Minuit parameter uncertainties:
  1  0.000167152
  2  7.32234
  3  0.310619
  4  0.254124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360093': 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) = 3259.64947746
delta logL = -6.24227141088e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.672e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.049e+00  7.322e+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:  5.809e-01  2.541e-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.282e+00  3.106e-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/360093/cmap_HighResolution_500083201_500342401_4FGL_J2234.2-4156_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-28 14:57:02.165247', job_id='360093', GAL2='0.58', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632866222.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-6.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1006' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 360093: <4FGL_J2234.2-4156_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1006 338.568 -41.9411 500083201 500342401 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 :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

