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


Performing analysis on: 4FGL_J1238.1-4541_daily_bin1221
RA = 189.545, Dec = -45.6861
tmin = 555811201, tmax = 556070401
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='838191', job_status='RUN', time_executed='2021-09-06 01:40:43.909132', time_epoch_executed='1630917643.91' WHERE source_name='4FGL J1238.1-4541' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838191/ft1_4FGL_J1238.1-4541_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838191/ft1_4FGL_J1238.1-4541_daily_bin1221.fits outfile=/scratch/kocevski/838191/ft1_filteredMKT_4FGL_J1238.1-4541_daily_bin1221.fits ra=189.545 dec=-45.6861 rad=12.0 tmin=555811201.0 tmax=556070401.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.67
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.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/838191/ft1_filteredMKT_4FGL_J1238.1-4541_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.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.56
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/838191/ltcube_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.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/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits
.....................!
real 13.45
user 12.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/838191/ltcube_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits outfile=/scratch/kocevski/838191/expmap_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.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/838191/ltcube_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits
.....................!
real 194.51
user 186.94
sys 5.29

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 286 point sources and 8 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 J1238.1-4541 @ 189.545 -45.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits outfile=/scratch/kocevski/838191/cmap_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.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=189.545 yref=-45.6861 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits outfile=/scratch/kocevski/838191/cmap_HighResolution_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.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=189.545 yref=-45.6861 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838191/Model_4FGL_J1238.1-4541_daily_bin1221.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 CenA Lobes
adding source EG_v02
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
Working on...
/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits......................!
real 46.11
user 44.24
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits', '/scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits', expMap='/scratch/kocevski/838191/expmap_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits', expCube='/scratch/kocevski/838191/ltcube_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838191/Model_4FGL_J1238.1-4541_daily_bin1221.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.1-4541'

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  1.519e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
505        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/838191/ft1_filtered_4FGL_J1238.1-4541_daily_bin1221.fits
Spacecraft file(s): /scratch/kocevski/838191/ft2_4FGL_J1238.1-4541_daily_bin1221.fits
Exposure map: /scratch/kocevski/838191/expmap_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits
Exposure cube: /scratch/kocevski/838191/ltcube_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838191/Model_4FGL_J1238.1-4541_daily_bin1221.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) = 1467.27551908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    336.92       1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    432.19       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.259       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.2083       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .59033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1045E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1467.236     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2034 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.973        52.932       -.12903E-05    .49526E-05
   2  Prefactor     .10000E-03    43.013        .13934E-06** at limit **
   3  Prefactor     50.204        132.85       -.14640E-06    .71291E-05
   4  Prefactor     .10000E-03    350.77       -.22226E-05** at limit **
   5  Prefactor     7.6918        13.463       -.33146E-06    .23625E-04
   6  Prefactor     336.30        341.54       -.45039E-05    .17977E-04
   7  norm          .10000E-03    26.349       -.50179E-06** at limit **
   8  Prefactor     36.697        40.580       -.10524E-05    .11993E-04
   9  Prefactor     .10000E-03    28.008        .26289E-07** at limit **
  10  Prefactor     432.16        333.18       -.31998E-06    .61650E-05
  11  Prefactor     10.994        94.071       -.53973E-05    .32631E-05
  12  Prefactor     11.253        35.359       -.55975E-06    .23047E-05
  13  norm          .10000E-03    27.766       -.50023E-07** at limit **
  14  Prefactor     .10000E-03    33.774        .78670E-06** at limit **
  15  Prefactor     .10000E-03    262.82        .48800E-05** at limit **
  16  norm          .10000E-03    42.974       -.10344E-05** at limit **
  17  norm          25.102        22.244        .64642E-06    .21423E-04
  18  Prefactor     .10001E-03    1221.6       -.21257E-04** at limit **
  19  Normalizat    2.2056        1.0134        .12273E-04    .24770E-04
  20  Prefactor     .59100        .23608       -.18032E-05    .65317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.9734
  Prefactor  = 0.0001
  Prefactor  = 50.2037
  Prefactor  = 0.0001
  Prefactor  = 7.69178
  Prefactor  = 336.298
  norm       = 0.0001
  Prefactor  = 36.6969
  Prefactor  = 0.0001
  Prefactor  = 432.164
  Prefactor  = 10.9935
  Prefactor  = 11.253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.1018
  Prefactor  = 0.000100005
  Normalizat = 2.20557
  Prefactor  = 0.591002
 **********
 **   18 **HESSE 
 **********

 FCN=   1467.236     FROM HESSE     STATUS=OK           289 CALLS     2323 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.973        52.935        .67771E-04   -1.4525    
   2  Prefactor     .10000E-03    43.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.204        132.54        .56699E-04   -1.4290    
   4  Prefactor     .10000E-03    350.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6918        13.441        .14335E-03   -1.5153    
   6  Prefactor     336.30        340.27        .11084E-03   -1.2019    
   7  norm          .10000E-03    26.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.697        40.578        .66165E-04   -1.4496    
   9  Prefactor     .10000E-03    28.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     432.16        333.15        .98352E-04   -1.1520    
  11  Prefactor     10.994        94.090        .12101E-03   -1.5045    
  12  Prefactor     11.253        35.360        .11940E-03   -1.5037    
  13  norm          .10000E-03    27.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    257.99        .46330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    43.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.102        22.248        .79945E-04   -1.4706    
  18  Prefactor     .10001E-03    1212.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    2.2056        1.0121        .42402E-03   -.59493    
  20  Prefactor     .59100        .23562        .18264E-03   -1.0797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72345e-11
Minuit parameter uncertainties:
  1  53.0062
  2  8.5654e-05
  3  133.326
  4  0.000230362
  5  13.4467
  6  342.321
  7  9.6456e-06
  8  40.6084
  9  1.52494e-05
  10  334.658
  11  64.4604
  12  35.4254
  13  1.03513e-05
  14  0.000120288
  15  0.000242385
  16  0.000133596
  17  22.2558
  18  0.00503557
  19  1.02252
  20  0.236009
Done.

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

Extracting fit parameters...

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  3.670e+01  4.061e+01  1.000e-04  1.000e+04 ( 1.000e-13)
505        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1033    Prefactor:  5.910e-01  2.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1034        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1035        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1018   Normalization:  2.206e+00  1.023e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 189.545 -45.686
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.64e-07 +/- 1.81e-07
Energy Flux (Fixed Index): 7.51e-05 +/- 8.31e-05

TS (Fixed Index): 1.31
Ra Dec: 189.545 -45.686
Photon Flux Upper Limit: 6.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838191/likelihoodResults_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.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) = 1467.13057509
delta logL = 0.105877432513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1467.12993721
delta logL = 0.106515311144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5449       1.0000          .0000       10.000    
     3 'Normalizat'    2.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1045E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1467.130     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      278 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.643        43.137        .86106E-04   -.31427E-03
   2  Index         2.5451        .88936        .35244E-02   -.15674E-03
   3  Normalizat    2.1722        .92076        .42603E-03    .91737E-04
   4  Prefactor     .59520        .22549        .18194E-03    .20251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6433
  Index      = 2.54506
  Normalizat = 2.17223
  Prefactor  = 0.595197
 **********
 **   18 **HESSE 
 **********

 FCN=   1467.130     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.643        39.291        .17221E-04   -1.4777    
   2  Index         2.5451        .81056        .14098E-03   -.51322    
   3  Normalizat    2.1722        .92146        .85207E-04   -.60301    
   4  Prefactor     .59520        .22563        .36388E-04   -1.0779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90155e-10
Minuit parameter uncertainties:
  1  39.3381
  2  0.815308
  3  0.929347
  4  0.225971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838191': 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) = 1467.12993698
delta logL = 0.106515540798

Extracting fit parameters...

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  2.164e+01  3.934e+01  1.000e-04  1.000e+04 ( 1.000e-13)
505        Index:  2.545e+00  8.153e-01  0.000e+00  1.000e+01 (-1.000e+00)
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1033    Prefactor:  5.952e-01  2.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1034        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1035        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1018   Normalization:  2.172e+00  9.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 189.545 -45.686
Photon Index (Free Index): 2.55 +/- 0.82
Photon Flux (Free Index): 2.06e-07 +/- 2.21e-07
Energy Flux (Free Index): 5.71e-05 +/- 6.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/838191/cmap_HighResolution_555811201_556070401_4FGL_J1238.1-4541_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-02', comment='SUCCESS', photon_flux='1.64e-07', energy_flux2='5.71e-05', photon_flux_error='1.81e-07', dlogl='1.07e-01', energy_flux='7.51e-05', photon_flux2='2.06e-07', job_status='DONE', time_completed='2021-09-06 01:49:08.247156', photon_index_error2='0.82', photon_index2='2.55', ts='1.31', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='6.20e-07', energy_flux_error2='6.58e-05', EG='2.21', time_epoch_completed='1630918148.25', return_code='0', job_id='838191', GAL2='0.60', EG2='2.17', return_code2='0', energy_flux_error='8.31e-05', photon_flux_error2='2.21e-07', ts2='1.53', photon_index='2.19' WHERE bin_id='1221' AND source_name='4FGL J1238.1-4541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 01:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 838191: <4FGL_J1238.1-4541_daily_bin1221> in cluster <slac> Done

Job <4FGL_J1238.1-4541_daily_bin1221> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 01:35:43 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 01:36:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 01:36:41 2021
Terminated at Mon Sep  6 01:49:09 2021
Results reported at Mon Sep  6 01:49:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.1-4541_daily_bin1221 189.545 -45.6861 555811201 556070401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.1-4541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   498.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             250.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            806 sec.

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

