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


Performing analysis on: 4FGL_J0243.2-0550_daily_bin1303
RA = 40.8176, Dec = -5.8465
tmin = 577065601, tmax = 577324801
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='704308', job_status='RUN', time_executed='2021-08-16 14:47:36.612876', time_epoch_executed='1629150456.61' WHERE source_name='4FGL J0243.2-0550' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/704308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/704308/ft1_4FGL_J0243.2-0550_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/704308/ft1_4FGL_J0243.2-0550_daily_bin1303.fits outfile=/scratch/kocevski/704308/ft1_filteredMKT_4FGL_J0243.2-0550_daily_bin1303.fits ra=40.8176 dec=-5.8465 rad=12.0 tmin=577065601.0 tmax=577324801.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.77
user 2.88
sys 8.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.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/704308/ft1_filteredMKT_4FGL_J0243.2-0550_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.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 8.69
user 0.35
sys 8.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/704308/ltcube_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.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/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits
.....................!
real 24.55
user 14.67
sys 9.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/704308/ltcube_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.fits outfile=/scratch/kocevski/704308/expmap_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.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/704308/ltcube_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.fits
.....................!
real 202.72
user 185.85
sys 14.67

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/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits outfile=/scratch/kocevski/704308/cmap_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.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 8.40
user 0.39
sys 7.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits outfile=/scratch/kocevski/704308/cmap_HighResolution_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.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.73
user 0.40
sys 8.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/704308/ft2_4FGL_J0243.2-0550_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/704308/Model_4FGL_J0243.2-0550_daily_bin1303.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/704308/ft1_filtered_4FGL_J0243.2-0550_daily_bin1303.fits.....................!
real 52.19
user 40.31
sys 11.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14989E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27927E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62426       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2464       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=   3108.765     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2048 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8056        5.7742       -.45850E-06   -.22362E-03
   2  Prefactor     .10000E-03    38.247       -.21010E-05** at limit **
   3  norm          3.1815        3.1313       -.21027E-06   -.15993E-03
   4  Prefactor     .10000E-03    13.612       -.18588E-06** at limit **
   5  Prefactor     .10000E-03    10.651       -.21030E-06** at limit **
   6  Prefactor     13.615        26.316        .85274E-06    .52911E-06
   7  Prefactor     .10000E-03    23.096       -.69512E-06** at limit **
   8  Prefactor     6.3939        24.686       -.62019E-05   -.30095E-04
   9  Prefactor     .10000E-03    70.532        .29286E-05** at limit **
  10  Prefactor     3.0446        20.814       -.38271E-05   -.12833E-03
  11  Prefactor     34.822        18.588       -.14159E-08    .10350E-04
  12  Prefactor     .10000E-03    237.46       -.18675E-05** at limit **
  13  Prefactor     11.847        20.075        .36946E-06   -.18539E-04
  14  Prefactor     .10000E-03    8.9804       -.24727E-06** at limit **
  15  Prefactor     .10000E-03    6.2228       -.56939E-07** at limit **
  16  Prefactor     .10000E-03    44.370        .18996E-04** at limit **
  17  Prefactor     64.380        41.986        .17874E-05   -.28375E-03
  18  Prefactor     .10000E-03    3.3345       -.21573E-06** at limit **
  19  Normalizat    .62389        .31726        .22363E-05   -.27339E-04
  20  Prefactor     1.2466        .23388       -.32701E-07   -.19338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80558
  Prefactor  = 0.0001
  norm       = 3.18147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6153
  Prefactor  = 0.0001
  Prefactor  = 6.39392
  Prefactor  = 0.0001
  Prefactor  = 3.04458
  Prefactor  = 34.822
  Prefactor  = 0.0001
  Prefactor  = 11.8466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 64.3797
  Prefactor  = 0.0001
  Normalizat = 0.623892
  Prefactor  = 1.24657
 **********
 **   18 **HESSE 
 **********

 FCN=   3108.765     FROM HESSE     STATUS=OK           287 CALLS     2335 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8056        5.7778        .18421E-03   -1.5373    
   2  Prefactor     .10000E-03    39.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1815        3.1292        .93861E-04   -1.5351    
   4  Prefactor     .10000E-03    13.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.652        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.615        26.288        .10855E-03   -1.4970    
   7  Prefactor     .10000E-03    23.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3939        24.941        .15889E-03   -1.5202    
   9  Prefactor     .10000E-03    70.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0446        21.547        .23217E-03   -1.5359    
  11  Prefactor     34.822        18.641        .67904E-04   -1.4527    
  12  Prefactor     .10000E-03    238.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.847        20.062        .11640E-03   -1.5019    
  14  Prefactor     .10000E-03    8.9867        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2333        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.051        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     64.380        41.141        .50019E-04   -1.4101    
  18  Prefactor     .10000E-03    3.3517        .99413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .62389        .35583        .35647E-03   -1.0698    
  20  Prefactor     1.2466        .26511        .20273E-03   -.84910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35633e-10
Minuit parameter uncertainties:
  1  5.77898
  2  3.80514e-06
  3  3.12936
  4  1.59386e-05
  5  5.83765e-07
  6  26.3102
  7  9.87209e-06
  8  24.9813
  9  5.8926e-05
  10  16.207
  11  18.6439
  12  0.000169759
  13  20.0736
  14  3.38412e-06
  15  3.0079e-06
  16  0.000510683
  17  41.1588
  18  4.45454e-06
  19  0.357152
  20  0.265398
Done.

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

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  6.394e+00  2.498e+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.247e+00  2.654e-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.239e-01  3.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/704308/likelihoodResults_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.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) = 3108.54010784
delta logL = 0.224976760948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3108.51832237
delta logL = 0.246762233941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6142       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1383       1.0000          .0000       10.000    
     3 'Normalizat'    .54992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2836       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.

 FCN=   3108.518     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5990        255.44        .42386E-02    .22018E-03
   2  Index         4.1414        6.9487        .20460        .44966E-04
   3  Normalizat    .54922        .86132E-01    .85441E-01    .17354E-04
   4  Prefactor     1.2838        .67749E-01    .32902E-01   -.34382E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.59902
  Index      = 4.14139
  Normalizat = 0.549215
  Prefactor  = 1.28385
 **********
 **   18 **HESSE 
 **********

 FCN=   3108.518     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5990        22.250        .16869E-03   -1.5235    
   2  Index         4.1414        2.9129        .89937E-02   -.17258    
   3  Normalizat    .54922        .34454        .37850E-03   -1.1019    
   4  Prefactor     1.2838        .25970        .20012E-03   -.83789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81576e-11
Minuit parameter uncertainties:
  1  22.283
  2  3.11676
  3  0.345896
  4  0.259965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/704308': 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) = 3108.51831738
delta logL = 0.246767229251

Extracting fit parameters...

4FGL J0243.2-0550
   Spectrum: PowerLaw
279    Prefactor:  5.599e+00  2.228e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        Index:  4.141e+00  3.117e+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.284e+00  2.600e-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:  5.492e-01  3.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/704308/cmap_HighResolution_577065601_577324801_4FGL_J0243.2-0550_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.42e-07', time_completed='2021-08-16 14:57:21.129524', job_id='704308', GAL2='1.28', fit_tolerance='1e-08', EG2='0.55', EG='0.62', time_epoch_completed='1629151041.13', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.47e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1303' AND source_name='4FGL J0243.2-0550' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 14:57:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 704308: <4FGL_J0243.2-0550_daily_bin1303> in cluster <slac> Done

Job <4FGL_J0243.2-0550_daily_bin1303> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 14:41:05 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 14:44:20 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:44:20 2021
Terminated at Mon Aug 16 14:57:23 2021
Results reported at Mon Aug 16 14:57:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0243.2-0550_daily_bin1303 40.8176 -5.8465 577065601 577324801 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 :                                   694.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            978 sec.

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

