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


Performing analysis on: 4FGL_J0243.2-0550_daily_bin885
RA = 40.8176, Dec = -5.8465
tmin = 468720001, tmax = 468979201
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='702599', job_status='RUN', time_executed='2021-08-16 14:38:44.976139', time_epoch_executed='1629149924.98' WHERE source_name='4FGL J0243.2-0550' and cadence='daily' and bin_id='885'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702599/ft1_4FGL_J0243.2-0550_daily_bin885.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702599/ft1_4FGL_J0243.2-0550_daily_bin885.fits outfile=/scratch/kocevski/702599/ft1_filteredMKT_4FGL_J0243.2-0550_daily_bin885.fits ra=40.8176 dec=-5.8465 rad=12.0 tmin=468720001.0 tmax=468979201.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 11.10
user 3.22
sys 6.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits" evtable="EVENTS" scfile=/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits sctable="SC_DATA" outfile=/scratch/kocevski/702599/ltcube_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.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/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits
.....................!
real 22.16
user 13.98
sys 7.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits sctable="SC_DATA" expcube=/scratch/kocevski/702599/ltcube_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits outfile=/scratch/kocevski/702599/expmap_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.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/702599/ltcube_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits
.....................!
real 204.91
user 188.14
sys 12.86

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/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits scfile=/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits outfile=/scratch/kocevski/702599/cmap_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.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 7.24
user 0.37
sys 6.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits scfile=/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits outfile=/scratch/kocevski/702599/cmap_HighResolution_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.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 8.94
user 0.39
sys 6.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702599/Model_4FGL_J0243.2-0550_daily_bin885.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/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits.....................!
real 75.08
user 62.49
sys 10.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits', '/scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits', expMap='/scratch/kocevski/702599/expmap_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits', expCube='/scratch/kocevski/702599/ltcube_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/702599/Model_4FGL_J0243.2-0550_daily_bin885.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/702599/ft1_filtered_4FGL_J0243.2-0550_daily_bin885.fits
Spacecraft file(s): /scratch/kocevski/702599/ft2_4FGL_J0243.2-0550_daily_bin885.fits
Exposure map: /scratch/kocevski/702599/expmap_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits
Exposure cube: /scratch/kocevski/702599/ltcube_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/702599/Model_4FGL_J0243.2-0550_daily_bin885.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) = 5449.44078145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4974       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.645       1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5433       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35848E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1247       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80663       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95512       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=   5449.433     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2073 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0740        .22856E-07** at limit **
   2  Prefactor     7.5039        15.021       -.10935E-05    .16913E-04
   3  norm          1.0104        .76829       -.10818E-06   -.46061E-04
   4  Prefactor     .10000E-03    27.496        .49210E-06** at limit **
   5  Prefactor     .10000E-03    8.1655       -.87241E-07** at limit **
   6  Prefactor     20.651        14.842       -.71107E-06    .52021E-04
   7  Prefactor     47.120        24.694       -.68171E-06    .38243E-05
   8  Prefactor     .10000E-03    4.5398        .22293E-06** at limit **
   9  Prefactor     2.3190        162.18        .52012E-07    .59654E-05
  10  Prefactor     6.7627        5.3139       -.47239E-07   -.10560E-04
  11  Prefactor     .10100E-03    10.902       -.42183E-05** at limit **
  12  Prefactor     45.290        88.609        .88194E-06    .51287E-04
  13  Prefactor     .10000E-03    6.9147        .26278E-06** at limit **
  14  Prefactor     .10000E-03    5.0867       -.11725E-05** at limit **
  15  Prefactor     .10000E-03    7.3176        .28439E-06** at limit **
  16  Prefactor     .10000E-03    4.8062        .11626E-06** at limit **
  17  Prefactor     .10000E-03    8.2964        .12737E-06** at limit **
  18  Prefactor     6.1220        5.0118        .34181E-06    .61502E-03
  19  Normalizat    .80623        .19412        .69681E-05    .65300E-03
  20  Prefactor     .95537        .14523       -.27005E-05    .99554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.50387
  norm       = 1.01043
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.6507
  Prefactor  = 47.1201
  Prefactor  = 0.0001
  Prefactor  = 2.31896
  Prefactor  = 6.76272
  Prefactor  = 0.000101
  Prefactor  = 45.29
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12203
  Normalizat = 0.806228
  Prefactor  = 0.955365
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.433     FROM HESSE     STATUS=OK           293 CALLS     2366 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1564        .25258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5039        15.023        .14647E-03   -1.5160    
   3  norm          1.0104        .78833        .54190E-03   -1.5507    
   4  Prefactor     .10000E-03    28.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.651        14.855        .88152E-04   -1.4799    
   7  Prefactor     47.120        24.721        .58417E-04   -1.4334    
   8  Prefactor     .10000E-03    4.5508        .15349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3190        161.48        .25607E-03   -1.5403    
  10  Prefactor     6.7627        5.3224        .14548E-03   -1.5188    
  11  Prefactor     .10100E-03    97.002        .40481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.290        88.721        .29708E-03   -1.4361    
  13  Prefactor     .10000E-03    6.9580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0931        .16266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8116        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1220        5.0185        .14254E-03   -1.5213    
  19  Normalizat    .80623        .20064        .27007E-03   -.99838    
  20  Prefactor     .95537        .15419        .20023E-03   -.94232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01788e-08
Minuit parameter uncertainties:
  1  1.88959e-05
  2  15.0307
  3  0.788339
  4  0.000244694
  5  5.82091e-06
  6  14.8579
  7  24.7259
  8  9.84567e-06
  9  38.8112
  10  5.3228
  11  0.0197317
  12  88.9814
  13  1.22514e-05
  14  2.48382e-05
  15  3.73767e-06
  16  2.87492e-06
  17  7.26539e-06
  18  5.01885
  19  0.20082
  20  0.154258
Done.

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

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  9.846e-06  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:  9.554e-01  1.543e-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:  8.062e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 40.818 -5.846
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702599/likelihoodResults_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.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) = 5449.43356689
delta logL = -0.00104660150191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5449.43252031
delta logL = -2.75822458207e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7700       1.0000          .0000       10.000    
     3 'Normalizat'    .80622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95538       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=   5449.433     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    212.41        .15360E-02** at limit **
   2  Index         2.7205        6.0830        .50000        .66418E-05
   3  Normalizat    .80623        .32561E-01    .27006E-03   -.65714E-04
   4  Prefactor     .95536        .26235E-01    .20023E-03   -.41221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100301
  Index      = 2.72053
  Normalizat = 0.806227
  Prefactor  = 0.955363
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.433     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    734.37        .30721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7205        8.6326        .50000       -.47338    
   3  Normalizat    .80623        .77525E-01    .10802E-04   -.99838    
   4  Prefactor     .95536        .62465E-01    .80093E-05   -.94233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20154e-08
Minuit parameter uncertainties:
  1  0.0301365
  2  2199.51
  3  0.0775355
  4  0.0624696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702599': 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): 102
logL (Free Index) = 5449.43252023
delta logL = 6.0502316046e-08

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  1.003e-04  3.014e-02  1.000e-04  1.000e+04 ( 1.000e-12)
280        Index:  2.721e+00  2.200e+03  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:  9.554e-01  6.247e-02  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:  8.062e-01  7.754e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 40.818 -5.846

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/702599/cmap_HighResolution_468720001_468979201_4FGL_J0243.2-0550_daily_bin885.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-08-16 14:50:04.265151', job_id='702599', GAL2='0.96', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629150604.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='885' AND source_name='4FGL J0243.2-0550' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 14:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 702599: <4FGL_J0243.2-0550_daily_bin885> in cluster <slac> Done

Job <4FGL_J0243.2-0550_daily_bin885> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 14:35:39 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 14:36:24 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:36:24 2021
Terminated at Mon Aug 16 14:50:06 2021
Results reported at Mon Aug 16 14:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0243.2-0550_daily_bin885 40.8176 -5.8465 468720001 468979201 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 :                                   765.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            867 sec.

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

