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


Performing analysis on: 4FGL_J0538.2-3910_daily_bin1020
RA = 84.5746, Dec = -39.1696
tmin = 503712001, tmax = 503971201
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='673039', job_status='RUN', time_executed='2021-08-23 12:43:37.187624', time_epoch_executed='1629747817.19' WHERE source_name='4FGL J0538.2-3910' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673039/ft1_4FGL_J0538.2-3910_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673039/ft1_4FGL_J0538.2-3910_daily_bin1020.fits outfile=/scratch/kocevski/673039/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1020.fits ra=84.5746 dec=-39.1696 rad=12.0 tmin=503712001.0 tmax=503971201.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 6.10
user 5.43
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.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/673039/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.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.92
user 0.37
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/673039/ltcube_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.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/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits
.....................!
real 18.25
user 17.20
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/673039/ltcube_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits outfile=/scratch/kocevski/673039/expmap_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.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/673039/ltcube_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits
.....................!
real 199.63
user 192.00
sys 5.80

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J0538.2-3910 @ 84.5746 -39.1696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits outfile=/scratch/kocevski/673039/cmap_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.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=84.5746 yref=-39.1696 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.92
user 0.40
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits outfile=/scratch/kocevski/673039/cmap_HighResolution_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.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=84.5746 yref=-39.1696 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.93
user 0.42
sys 0.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/673039/Model_4FGL_J0538.2-3910_daily_bin1020.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/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits.....................!
real 46.22
user 43.99
sys 1.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits', '/scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits', expMap='/scratch/kocevski/673039/expmap_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits', expCube='/scratch/kocevski/673039/ltcube_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/673039/Model_4FGL_J0538.2-3910_daily_bin1020.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0538.2-3910'

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.828e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/673039/ft1_filtered_4FGL_J0538.2-3910_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/673039/ft2_4FGL_J0538.2-3910_daily_bin1020.fits
Exposure map: /scratch/kocevski/673039/expmap_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits
Exposure cube: /scratch/kocevski/673039/ltcube_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/673039/Model_4FGL_J0538.2-3910_daily_bin1020.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) = 3393.77173596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.713       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15864E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.170       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5421       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83193E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.706       1.0000         .10000E-03   10000.    
    13 'norm      '    22.581       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51258E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
    18 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6418       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8952       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7867       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3622       1.0000         .10000E-03   10000.    
    27 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.035       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3393.743     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4176 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.732        27.429       -.10420E-05    .13862E-04
   2  norm          2.0165        2.0393        .89739E-08    .62761E-04
   3  Prefactor     .10001E-03    3.6616       -.43882E-06** at limit **
   4  Prefactor     12.148        38.946       -.52857E-06    .47550E-04
   5  norm          2.5615        13.015        .35700E-05    .18715E-03
   6  Prefactor     .10000E-03    47.206       -.17611E-06** at limit **
   7  Prefactor     .10000E-03    14.403        .28162E-06** at limit **
   8  Prefactor     .10000E-03    39.075       -.95590E-06** at limit **
   9  Prefactor     .88167E-01    2.5488       -.41407E-06   -.21561E-04
  10  Prefactor     .10000E-03    6.5295       -.11698E-06** at limit **
  11  norm          .22115        2.8003       -.90840E-06    .15213E-03
  12  Prefactor     62.708        64.517       -.43312E-06    .93298E-05
  13  norm          22.580        10.041       -.11693E-06    .10639E-03
  14  norm          .10000E-03    2.7183       -.23078E-07** at limit **
  15  Prefactor     .10009E-03    17.903        .74855E-06** at limit **
  16  Prefactor     32.485        35.604        .29218E-05   -.11717E-03
  17  Prefactor     17.089        18.153       -.10963E-06    .13979E-03
  18  norm          .10000E-03    17.873       -.13986E-05** at limit **
  19  Prefactor     6.6793        93.281       -.30121E-05   -.72030E-04
  20  norm          2.8956        1.5221        .57578E-07   -.75401E-04
  21  norm          .10000E-03    1.1720       -.29378E-07** at limit **
  22  norm          3.7841        27.162       -.19277E-06   -.10022E-05
  23  Prefactor     .10000E-03    23.404        .69255E-06** at limit **
  24  Prefactor     .10000E-03    29.646        .54666E-06** at limit **
  25  Prefactor     .10000E-03    29.920        .61935E-06** at limit **
  26  Prefactor     8.3613        16.920       -.14717E-06   -.13076E-04
  27  norm          .10000E-03    41.400       -.10203E-05** at limit **
  28  Prefactor     31.049        46.797       -.21787E-05   -.64225E-05
  29  Prefactor     .10000E-03    3.2724       -.16927E-07** at limit **
  30  Normalizat    1.0876        .31351        .13763E-05    .58632E-04
  31  Prefactor     1.0177        .22014        .56234E-06    .44852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.7319
  norm       = 2.01655
  Prefactor  = 0.000100007
  Prefactor  = 12.1477
  norm       = 2.56153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0881671
  Prefactor  = 0.0001
  norm       = 0.221148
  Prefactor  = 62.7081
  norm       = 22.5799
  norm       = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 32.4851
  Prefactor  = 17.0894
  norm       = 0.0001
  Prefactor  = 6.67927
  norm       = 2.89557
  norm       = 0.0001
  norm       = 3.78407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3613
  norm       = 0.0001
  Prefactor  = 31.0493
  Prefactor  = 0.0001
  Normalizat = 1.08763
  Prefactor  = 1.01771
 **********
 **   18 **HESSE 
 **********

 FCN=   3393.743     FROM HESSE     STATUS=OK           626 CALLS     4802 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.732        26.635        .56315E-04   -1.4282    
   2  norm          2.0165        2.0181        .79519E-04   -1.5424    
   3  Prefactor     .10001E-03    25.635        .19739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.148        38.687        .11483E-03   -1.5011    
   5  norm          2.5615        14.040        .12807E-02   -1.5388    
   6  Prefactor     .10000E-03    47.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88167E-01    34.891        .17041E-02   -1.5649    
  10  Prefactor     .10000E-03    6.6169        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22115        13.681        .17199E-02   -1.5614    
  12  Prefactor     62.708        64.726        .50674E-04   -1.4123    
  13  norm          22.580        10.063        .84292E-04   -1.4757    
  14  norm          .10000E-03    2.7219        .93706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    56.302        .39768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.485        35.861        .70318E-04   -1.4567    
  17  Prefactor     17.089        17.966        .96897E-04   -1.4881    
  18  norm          .10000E-03    18.296        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6793        94.449        .15571E-03   -1.5191    
  20  norm          2.8956        1.5206        .50154E-04   -1.5368    
  21  norm          .10000E-03    1.1785        .61587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7841        27.271        .20745E-03   -1.5319    
  23  Prefactor     .10000E-03    23.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.3613        16.907        .13863E-03   -1.5130    
  27  norm          .10000E-03    41.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.049        46.828        .71923E-04   -1.4593    
  29  Prefactor     .10000E-03    3.2753        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0876        .36918        .31167E-03   -.90150    
  31  Prefactor     1.0177        .25631        .23454E-03   -.92142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91532e-09
Minuit parameter uncertainties:
  1  26.6415
  2  2.01821
  3  0.000865388
  4  38.7669
  5  11.9982
  6  1.82413e-05
  7  3.68353e-05
  8  3.55056e-05
  9  3.50789
  10  4.49177e-05
  11  3.47879
  12  64.7991
  13  10.0635
  14  1.79069e-06
  15  0.00440343
  16  35.8847
  17  17.9712
  18  5.70274e-05
  19  50.3293
  20  1.52066
  21  1.79439e-06
  22  20.3298
  23  1.09518e-05
  24  3.84371e-05
  25  1.81966e-06
  26  16.9167
  27  6.42244e-05
  28  46.8838
  29  2.96146e-06
  30  0.370056
  31  0.256619
Done.

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

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  6.679e+00  5.033e+01  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.018e+00  2.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.088e+00  3.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 84.575 -39.170
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/673039/likelihoodResults_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.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) = 3393.60684482
delta logL = 0.136143000192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3393.26149702
delta logL = 0.48149080846

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3393.261     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      542 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .47833E-02    .32158E-03** at limit **
   2  Index         6.5001        2.1634        .85842E-01    .15123E-03
   3  Normalizat    .97603        .73749E-01    .73820E-01   -.17603E-03
   4  Prefactor     1.0724        .53008E-01    .38733E-01   -.17063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.50014
  Normalizat = 0.976033
  Prefactor  = 1.07238
 **********
 **   18 **HESSE 
 **********

 FCN=   3393.261     FROM HESSE     STATUS=OK            33 CALLS      575 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16359E-02    .91236E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.5001        .34602        .31032E-02    .30472    
   3  Normalizat    .97603        .35014        .32665E-03   -.93838    
   4  Prefactor     1.0724        .25142        .22923E-03   -.90354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33848e-10
Minuit parameter uncertainties:
  1  2.08549e-08
  2  0.346327
  3  0.350967
  4  0.251702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673039': 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) = 3393.26149512
delta logL = 0.481492702912

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.085e-08  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  6.500e+00  3.463e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.072e+00  2.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  9.760e-01  3.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 84.575 -39.170
Photon Index (Free Index): 6.50 +/- 0.35
Photon Flux (Free Index): 1.00e-07 +/- 1.12e-07
Energy Flux (Free Index): 1.22e-05 +/- 1.35e-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/673039/cmap_HighResolution_503712001_503971201_4FGL_J0538.2-3910_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='4.81e-01', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-08-23 12:55:40.150441', photon_index_error2='0.35', photon_index2='6.50', ts='0.03', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.35e-05', EG='1.09', time_epoch_completed='1629748540.15', return_code='0', job_id='673039', GAL2='1.07', EG2='0.98', return_code2='0', photon_flux_error2='1.12e-07', ts2='1.08', photon_index='1.96' WHERE bin_id='1020' AND source_name='4FGL J0538.2-3910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:55:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 673039: <4FGL_J0538.2-3910_daily_bin1020> in cluster <slac> Done

Job <4FGL_J0538.2-3910_daily_bin1020> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 12:40:33 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 12:40:34 2021
Terminated at Mon Aug 23 12:55:42 2021
Results reported at Mon Aug 23 12:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.2-3910_daily_bin1020 84.5746 -39.1696 503712001 503971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0538.2-3910 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   721.51 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             249.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

