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


Performing analysis on: 4FGL_J0238.1-3905_daily_bin226
RA = 39.5299, Dec = -39.0874
tmin = 297907201, tmax = 298166401
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='573802', job_status='RUN', time_executed='2021-08-16 08:10:01.920397', time_epoch_executed='1629126601.92' WHERE source_name='4FGL J0238.1-3905' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573802/ft1_4FGL_J0238.1-3905_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573802/ft1_4FGL_J0238.1-3905_daily_bin226.fits outfile=/scratch/kocevski/573802/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin226.fits ra=39.5299 dec=-39.0874 rad=12.0 tmin=297907201.0 tmax=298166401.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 4.55
user 3.33
sys 1.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.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/573802/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.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 1.36
user 0.34
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/573802/ltcube_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.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/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits
.....................!
real 14.14
user 12.74
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/573802/ltcube_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits outfile=/scratch/kocevski/573802/expmap_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.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/573802/ltcube_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits
.....................!
real 192.90
user 186.33
sys 5.94

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0238.1-3905 @ 39.5299 -39.0874

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits outfile=/scratch/kocevski/573802/cmap_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.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=39.5299 yref=-39.0874 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 1.43
user 0.40
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits outfile=/scratch/kocevski/573802/cmap_HighResolution_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.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=39.5299 yref=-39.0874 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 1.43
user 0.39
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573802/Model_4FGL_J0238.1-3905_daily_bin226.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits.....................!
real 89.97
user 87.22
sys 2.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits', '/scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits', expMap='/scratch/kocevski/573802/expmap_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits', expCube='/scratch/kocevski/573802/ltcube_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573802/Model_4FGL_J0238.1-3905_daily_bin226.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.1-3905'

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  7.176e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  1.990e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/573802/ft1_filtered_4FGL_J0238.1-3905_daily_bin226.fits
Spacecraft file(s): /scratch/kocevski/573802/ft2_4FGL_J0238.1-3905_daily_bin226.fits
Exposure map: /scratch/kocevski/573802/expmap_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits
Exposure cube: /scratch/kocevski/573802/ltcube_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573802/Model_4FGL_J0238.1-3905_daily_bin226.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) = 4292.96009549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11905E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.338       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9630       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14859E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.023       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8913       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8836       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86984       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4292.953     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2095 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9169        4.7973        .37652E-06   -.65606E-04
   2  Prefactor     .10453E-03    9.8355       -.32046E-05** at limit **
   3  norm          3.0766        8.5332        .23957E-04    .57942E-03
   4  Prefactor     46.314        21.012        .16373E-05    .44566E-05
   5  Prefactor     57.827        45.272       -.54237E-04   -.33108E-04
   6  Prefactor     .10000E-03    10.350       -.13676E-05** at limit **
   7  Prefactor     5.4197        15.953        .18617E-04   -.59097E-05
   8  Prefactor     41.341        66.342        .34591E-05    .22495E-04
   9  norm          .10000E-03    1.5719       -.25032E-06** at limit **
  10  Prefactor     7.9660        16.197        .11739E-06   -.12508E-04
  11  Prefactor     .10000E-03    27.058       -.50977E-06** at limit **
  12  Prefactor     7.7987        46.558       -.20483E-05   -.77637E-05
  13  Prefactor     .10000E-03    4.6379       -.45419E-06** at limit **
  14  norm          4.4548        1.7625       -.68773E-07    .22690E-04
  15  Prefactor     .10000E-03    155.20        .31032E-04** at limit **
  16  Prefactor     27.024        24.541       -.17271E-05    .43652E-05
  17  norm          2.8908        4.0889       -.16049E-06   -.35606E-03
  18  norm          2.8836        1.1490       -.49133E-07    .60778E-04
  19  Normalizat    .86957        .20323        .72928E-05   -.14386E-03
  20  Prefactor     1.0677        .22139       -.42987E-05    .34926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91694
  Prefactor  = 0.000104534
  norm       = 3.07657
  Prefactor  = 46.3142
  Prefactor  = 57.8268
  Prefactor  = 0.000100001
  Prefactor  = 5.41974
  Prefactor  = 41.3412
  norm       = 0.0001
  Prefactor  = 7.96603
  Prefactor  = 0.0001
  Prefactor  = 7.79866
  Prefactor  = 0.000100002
  norm       = 4.4548
  Prefactor  = 0.0001
  Prefactor  = 27.0237
  norm       = 2.89083
  norm       = 2.88358
  Normalizat = 0.869573
  Prefactor  = 1.0677
 **********
 **   18 **HESSE 
 **********

 FCN=   4292.953     FROM HESSE     STATUS=OK           307 CALLS     2402 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9169        4.7927        .13742E-03   -1.5264    
   2  Prefactor     .10453E-03    11.088        .60170E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0766        8.4547        .23193E-03   -1.5357    
   4  Prefactor     46.314        21.015        .58916E-04   -1.4346    
   5  Prefactor     57.827        45.082        .26361E-03   -1.4186    
   6  Prefactor     .10000E-03    10.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4197        15.894        .17243E-03   -1.5242    
   8  Prefactor     41.341        65.846        .62347E-04   -1.4421    
   9  norm          .10000E-03    1.5893        .80151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9660        16.180        .14209E-03   -1.5143    
  11  Prefactor     .10000E-03    27.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7987        46.549        .14358E-03   -1.5149    
  13  Prefactor     .10000E-03    11.406        .27005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4548        1.7603        .50848E-04   -1.5286    
  15  Prefactor     .10000E-03    155.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.024        24.545        .77065E-04   -1.4668    
  17  norm          2.8908        4.0758        .15120E-03   -1.5368    
  18  norm          2.8836        1.1486        .42748E-04   -1.5368    
  19  Normalizat    .86957        .23792        .25305E-03   -.97538    
  20  Prefactor     1.0677        .25959        .25922E-03   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09276e-09
Minuit parameter uncertainties:
  1  4.79303
  2  0.0141826
  3  8.45794
  4  21.0188
  5  45.1087
  6  0.000229074
  7  15.9065
  8  65.9617
  9  7.94622e-06
  10  16.1891
  11  2.45499e-05
  12  38.1506
  13  0.000312284
  14  1.76032
  15  6.60772e-05
  16  24.5539
  17  4.07624
  18  1.14865
  19  0.238209
  20  0.259895
Done.

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

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  7.799e+00  3.815e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  1.990e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.068e+00  2.599e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.696e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 39.530 -39.087
Photon Flux Upper Limit: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573802/likelihoodResults_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.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): 0
logL (Free Index) = 4292.88142988
delta logL = 0.0717072156085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4292.87715359
delta logL = 0.0759835037852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5908       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6717       1.0000          .0000       10.000    
     3 'Normalizat'    .86200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4292.877     FROM MIGRAD    STATUS=FAILED       108 CALLS      271 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5721        58.645        .84953E-03    .52191E-04
   2  Index         2.6716        2.6110        .10317E-01    .27310E-03
   3  Normalizat    .86171        .23031        .25413E-03    .62183E-05
   4  Prefactor     1.0695        .25778        .25901E-03    .21508E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4292.877     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      350 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5721        58.645        .29399E-03   -1.5236    
   2  Index         2.6716        2.6110        .21780E-02   -.48441    
   3  Normalizat    .86171        .23031        .30974E-03   -.97819    
   4  Prefactor     1.0695        .25778        .40057E-03   -.90447    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4292.877     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      379 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5721        25.157        .16991E-03   -.40147E-06
   2  Index         2.6716        1.7764        .20634E-02    .10829E-04
   3  Normalizat    .86171        .22958        .10165E-04    .62631E-05
   4  Prefactor     1.0695        .25719        .10360E-04    .21947E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57209
  Index      = 2.67157
  Normalizat = 0.861711
  Prefactor  = 1.06952
 **********
 **   18 **HESSE 
 **********

 FCN=   4292.877     FROM HESSE     STATUS=OK            25 CALLS      404 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5721        22.801        .67962E-05   -1.5236    
   2  Index         2.6716        1.6952        .41268E-03   -.48441    
   3  Normalizat    .86171        .22932        .20330E-05   -.97819    
   4  Prefactor     1.0695        .25688        .20721E-05   -.90447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66073e-13
Minuit parameter uncertainties:
  1  22.558
  2  1.73969
  3  0.229578
  4  0.257175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573802': 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) = 4292.87715154
delta logL = 0.0759855581791

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  5.572e+00  2.256e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.672e+00  1.740e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.070e+00  2.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.617e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 39.530 -39.087

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/573802/cmap_HighResolution_297907201_298166401_4FGL_J0238.1-3905_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-08-16 08:19:52.658541', job_id='573802', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1629127192.66', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.60e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='226' AND source_name='4FGL J0238.1-3905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 08:19:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 573802: <4FGL_J0238.1-3905_daily_bin226> in cluster <slac> Done

Job <4FGL_J0238.1-3905_daily_bin226> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 08:06:23 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:09:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 08:09:08 2021
Terminated at Mon Aug 16 08:19:53 2021
Results reported at Mon Aug 16 08:19:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.1-3905_daily_bin226 39.5299 -39.0874 297907201 298166401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.1-3905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            810 sec.

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

