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


Performing analysis on: 4FGL_J0243.2-0550_daily_bin509
RA = 40.8176, Dec = -5.8465
tmin = 371260801, tmax = 371520001
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='700826', job_status='RUN', time_executed='2021-08-16 14:31:41.566163', time_epoch_executed='1629149501.57' WHERE source_name='4FGL J0243.2-0550' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700826

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700826/ft1_4FGL_J0243.2-0550_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700826/ft1_4FGL_J0243.2-0550_daily_bin509.fits outfile=/scratch/kocevski/700826/ft1_filteredMKT_4FGL_J0243.2-0550_daily_bin509.fits ra=40.8176 dec=-5.8465 rad=12.0 tmin=371260801.0 tmax=371520001.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.15
user 5.06
sys 0.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.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/700826/ft1_filteredMKT_4FGL_J0243.2-0550_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.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 2.34
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/700826/ltcube_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.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/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits
.....................!
real 14.37
user 12.83
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/700826/ltcube_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits outfile=/scratch/kocevski/700826/expmap_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.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/700826/ltcube_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits
.....................!
real 195.19
user 185.78
sys 5.84

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

Setting source of interest to:
4FGL J0243.2-0550 @ 40.8176 -5.8465

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits outfile=/scratch/kocevski/700826/cmap_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.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=40.8176 yref=-5.8465 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.21
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits outfile=/scratch/kocevski/700826/cmap_HighResolution_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.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=40.8176 yref=-5.8465 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.24
user 0.40
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700826/Model_4FGL_J0243.2-0550_daily_bin509.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/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits.....................!
real 55.35
user 51.55
sys 2.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits', '/scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits', expMap='/scratch/kocevski/700826/expmap_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits', expCube='/scratch/kocevski/700826/ltcube_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700826/Model_4FGL_J0243.2-0550_daily_bin509.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0243.2-0550'

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  2.604e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        Index:  2.774e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  4.555e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/700826/ft1_filtered_4FGL_J0243.2-0550_daily_bin509.fits
Spacecraft file(s): /scratch/kocevski/700826/ft2_4FGL_J0243.2-0550_daily_bin509.fits
Exposure map: /scratch/kocevski/700826/expmap_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits
Exposure cube: /scratch/kocevski/700826/ltcube_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700826/Model_4FGL_J0243.2-0550_daily_bin509.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) = 4379.35727003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2661       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68850       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4379.354     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2042 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3710        7.5442       -.10705E-06   -.26701E-04
   2  Prefactor     .10000E-03    18.652       -.96764E-05** at limit **
   3  norm          .23830        .74780       -.36060E-06   -.60954E-03
   4  Prefactor     24.650        18.108       -.17771E-06    .36974E-05
   5  Prefactor     .10000E-03    9.4402        .60178E-05** at limit **
   6  Prefactor     .10000E-03    5.8740        .71958E-07** at limit **
   7  Prefactor     77.698        24.732        .22040E-06    .29944E-04
   8  Prefactor     13.258        16.940       -.53864E-06   -.42221E-04
   9  Prefactor     .10000E-03    24.372        .59601E-05** at limit **
  10  Prefactor     .10000E-03    7.3358       -.26660E-06** at limit **
  11  Prefactor     .10000E-03    12.386        .25825E-05** at limit **
  12  Prefactor     .10000E-03    90.545       -.32699E-05** at limit **
  13  Prefactor     .10000E-03    12.710        .41859E-05** at limit **
  14  Prefactor     .10000E-03    10.275       -.93691E-05** at limit **
  15  Prefactor     .10000E-03    3.3798       -.83870E-07** at limit **
  16  Prefactor     .10000E-03    16.459        .16880E-05** at limit **
  17  Prefactor     12.690        22.350       -.18165E-05   -.42736E-04
  18  Prefactor     3.2657        5.0124       -.74735E-06   -.28765E-03
  19  Normalizat    .68839        .22133        .29592E-06    .34773E-04
  20  Prefactor     1.1690        .16737        .43574E-06    .24600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37102
  Prefactor  = 0.0001
  norm       = 0.238296
  Prefactor  = 24.6499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.6984
  Prefactor  = 13.2581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.69
  Prefactor  = 3.26572
  Normalizat = 0.688393
  Prefactor  = 1.169
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.354     FROM HESSE     STATUS=OK           287 CALLS     2329 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3710        7.5734        .14773E-03   -1.5165    
   2  Prefactor     .10000E-03    18.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .23830        .94396        .94640E-03   -1.5610    
   4  Prefactor     24.650        18.122        .80683E-04   -1.4715    
   5  Prefactor     .10000E-03    9.4247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8805        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.698        24.726        .45558E-04   -1.3943    
   8  Prefactor     13.258        17.068        .11001E-03   -1.4980    
   9  Prefactor     .10000E-03    24.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4707        .17490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    90.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3914        .11878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.690        22.374        .11239E-03   -1.4995    
  18  Prefactor     3.2657        5.0224        .17695E-03   -1.5347    
  19  Normalizat    .68839        .24830        .30837E-03   -1.0435    
  20  Prefactor     1.1690        .18895        .19609E-03   -.87291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88612e-10
Minuit parameter uncertainties:
  1  7.57437
  2  1.62874e-05
  3  0.944019
  4  18.1259
  5  5.7812e-07
  6  4.02214e-07
  7  24.7291
  8  17.0746
  9  1.3625e-06
  10  4.98591e-06
  11  2.73582e-05
  12  1.62352e-05
  13  2.79471e-05
  14  4.25085e-06
  15  3.09674e-06
  16  6.2575e-05
  17  22.389
  18  5.02309
  19  0.248708
  20  0.189058
Done.

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

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  1.326e+01  1.707e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        Index:  2.774e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  4.555e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.169e+00  1.891e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  6.884e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 40.818 -5.846
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700826/likelihoodResults_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.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) = 4379.27119733
delta logL = 0.0829521188098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4379.25342386
delta logL = 0.100725588613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.481       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2559       1.0000          .0000       10.000    
     3 'Normalizat'    .67076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .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=   4379.253     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.476        17.131        .12376E-03    .11823E-02
   2  Index         3.2561        1.2469        .92962E-02    .28000E-03
   3  Normalizat    .67075        .23639        .31218E-03   -.11396E-02
   4  Prefactor     1.1783        .18548        .19542E-03   -.14203E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4763
  Index      = 3.25607
  Normalizat = 0.670748
  Prefactor  = 1.17827
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.253     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.476        15.840        .49504E-05   -1.5061    
   2  Index         3.2561        1.1531        .37185E-03   -.35628    
   3  Normalizat    .67075        .23672        .62435E-04   -1.0506    
   4  Prefactor     1.1783        .18558        .39084E-04   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42138e-09
Minuit parameter uncertainties:
  1  15.846
  2  1.16509
  3  0.237076
  4  0.185684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700826': 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) = 4379.25342377
delta logL = 0.100725677784

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  1.048e+01  1.585e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        Index:  3.256e+00  1.165e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  4.555e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.178e+00  1.857e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  6.707e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 40.818 -5.846
Photon Index (Free Index): 3.26 +/- 1.17
Photon Flux (Free Index): 6.48e-08 +/- 7.56e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.34e-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/700826/cmap_HighResolution_371260801_371520001_4FGL_J0243.2-0550_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.01e-01', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-08-16 14:40:46.020576', photon_index_error2='1.17', photon_index2='3.26', ts='0.80', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.34e-05', EG='0.69', time_epoch_completed='1629150046.02', return_code='0', job_id='700826', GAL2='1.18', EG2='0.67', return_code2='0', photon_flux_error2='7.56e-08', ts2='1.03', photon_index='2.77' WHERE bin_id='509' AND source_name='4FGL J0243.2-0550' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 14:40:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 700826: <4FGL_J0243.2-0550_daily_bin509> in cluster <slac> Done

Job <4FGL_J0243.2-0550_daily_bin509> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 16 14:30:21 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 14:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 14:30:44 2021
Terminated at Mon Aug 16 14:40:46 2021
Results reported at Mon Aug 16 14:40:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0243.2-0550_daily_bin509 40.8176 -5.8465 371260801 371520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0243.2-0550 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            625 sec.

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

