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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin702
RA = 81.1732, Dec = -28.3288
tmin = 421286401, tmax = 421545601
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='259808', job_status='RUN', time_executed='2021-08-22 13:16:11.470742', time_epoch_executed='1629663371.47' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259808

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259808/ft1_4FGL_J0524.6-2819_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259808/ft1_4FGL_J0524.6-2819_daily_bin702.fits outfile=/scratch/kocevski/259808/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin702.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=421286401.0 tmax=421545601.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 4.25
user 3.42
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.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/259808/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.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 1.22
user 0.31
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/259808/ltcube_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.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/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits
.....................!
real 12.96
user 11.78
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/259808/ltcube_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits outfile=/scratch/kocevski/259808/expmap_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.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/259808/ltcube_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits
.....................!
real 192.54
user 187.51
sys 4.69

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

Setting source of interest to:
4FGL J0524.6-2819 @ 81.1732 -28.3288

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits outfile=/scratch/kocevski/259808/cmap_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.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=81.1732 yref=-28.3288 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.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits outfile=/scratch/kocevski/259808/cmap_HighResolution_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.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=81.1732 yref=-28.3288 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.22
user 0.37
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259808/Model_4FGL_J0524.6-2819_daily_bin702.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/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits.....................!
real 68.92
user 66.78
sys 1.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits', '/scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits', expMap='/scratch/kocevski/259808/expmap_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits', expCube='/scratch/kocevski/259808/ltcube_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259808/Model_4FGL_J0524.6-2819_daily_bin702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0524.6-2819'

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259808/ft1_filtered_4FGL_J0524.6-2819_daily_bin702.fits
Spacecraft file(s): /scratch/kocevski/259808/ft2_4FGL_J0524.6-2819_daily_bin702.fits
Exposure map: /scratch/kocevski/259808/expmap_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits
Exposure cube: /scratch/kocevski/259808/ltcube_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259808/Model_4FGL_J0524.6-2819_daily_bin702.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) = 5089.27333418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    81.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1168       1.0000         .10000E-03   10000.    
     5 'norm      '    .52473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.120       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32191E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3451       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60179E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.568       1.0000         .10000E-03   10000.    
    15 'norm      '    13.601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.406       1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1369       1.0000         .10000E-03   10000.    
    20 'Prefactor '    153.66       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5089.264     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3477 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          81.640        148.75       -.14142E-06   -.11030E-05
   2  Prefactor     .10000E-03    84.763        .14887E-05** at limit **
   3  norm          4.8439        5.5855       -.10867E-06    .13341E-04
   4  Prefactor     4.1121        9.7243        .58349E-06    .16358E-04
   5  norm          .52460        .26969        .12727E-07   -.33181E-03
   6  Prefactor     .10000E-03    16.893        .26155E-08** at limit **
   7  Prefactor     12.115        30.026       -.15800E-06   -.61298E-06
   8  norm          .10000E-03    27.329       -.11140E-06** at limit **
   9  Prefactor     .10000E-03    3.7590       -.83420E-06** at limit **
  10  norm          8.3483        4.0410        .59242E-06    .58470E-03
  11  Prefactor     8.5432        31.552       -.39118E-06   -.96679E-06
  12  Prefactor     .10124E-03    7.0161       -.26458E-06** at limit **
  13  Prefactor     .10000E-03    109.10       -.93064E-05** at limit **
  14  Prefactor     35.575        23.389       -.20323E-06    .44452E-04
  15  norm          13.592        11.925        .38266E-06    .13283E-03
  16  Prefactor     60.477        46.843        .31552E-05   -.14169E-03
  17  norm          .10000E-03    1.4576       -.22521E-07** at limit **
  18  norm          .10000E-03    5.4384        .44914E-07** at limit **
  19  Prefactor     1.1409        28.250        .66525E-05   -.26042E-05
  20  Prefactor     153.65        117.29       -.12782E-05    .11110E-04
  21  Prefactor     .10000E-03    42.051       -.51556E-06** at limit **
  22  Prefactor     .10000E-03    18.901        .50033E-07** at limit **
  23  Prefactor     .10000E-03    35.247        .56046E-06** at limit **
  24  Normalizat    1.5102        .26623        .43914E-06    .80837E-04
  25  Prefactor     .79733        .19679       -.27598E-07    .10114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 81.64
  Prefactor  = 0.0001
  norm       = 4.84386
  Prefactor  = 4.11208
  norm       = 0.524598
  Prefactor  = 0.0001
  Prefactor  = 12.1151
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.34828
  Prefactor  = 8.54322
  Prefactor  = 0.000101238
  Prefactor  = 0.0001
  Prefactor  = 35.5753
  norm       = 13.5923
  Prefactor  = 60.4769
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.1409
  Prefactor  = 153.654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51019
  Prefactor  = 0.797329
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.264     FROM HESSE     STATUS=OK           433 CALLS     3910 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          81.640        148.77        .44454E-04   -1.3898    
   2  Prefactor     .10000E-03    84.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8439        5.5670        .16516E-03   -1.5268    
   4  Prefactor     4.1121        9.7687        .99339E-03   -1.5302    
   5  norm          .52460        .26868        .25071E-04   -1.5563    
   6  Prefactor     .10000E-03    16.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.115        30.037        .11506E-03   -1.5012    
   8  norm          .10000E-03    27.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.856        .25160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3483        4.0214        .91718E-04   -1.5130    
  11  Prefactor     8.5432        31.585        .13696E-03   -1.5123    
  12  Prefactor     .10124E-03    12.180        .59436E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    111.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.575        23.491        .67196E-04   -1.4514    
  15  norm          13.592        12.054        .10861E-03   -1.4970    
  16  Prefactor     60.477        48.356        .25812E-03   -1.4151    
  17  norm          .10000E-03    1.5051        .16800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.4448        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1409        28.388        .21839E-02   -1.5494    
  20  Prefactor     153.65        117.53        .32519E-04   -1.3222    
  21  Prefactor     .10000E-03    42.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5102        .32625        .27430E-03   -.77492    
  25  Prefactor     .79733        .23912        .28459E-03   -.99827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01144e-09
Minuit parameter uncertainties:
  1  149.455
  2  0.000201261
  3  5.56761
  4  9.77248
  5  0.268681
  6  6.59752e-06
  7  30.0746
  8  2.06518e-05
  9  0.00011917
  10  4.02151
  11  31.647
  12  0.00776788
  13  0.000234262
  14  23.4969
  15  12.0561
  16  48.3871
  17  7.30133e-06
  18  4.81909e-06
  19  11.3877
  20  117.711
  21  0.000171465
  22  1.99554e-05
  23  6.02775e-05
  24  0.326711
  25  0.23943
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  8.543e+00  3.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.973e-01  2.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.510e+00  3.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259808/likelihoodResults_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.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) = 5089.24483848
delta logL = 0.0186648190238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5089.23720633
delta logL = 0.0262969724181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.197       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0831       1.0000          .0000       10.000    
     3 'Normalizat'    1.5150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5089.237     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      262 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.189        39.922        .11026E-03    .15680E-03
   2  Index         2.0810        1.7471        .11350E-01    .10481E-03
   3  Normalizat    1.5149        .29556        .27393E-03   -.52897E-03
   4  Prefactor     .79343        .23216        .28521E-03   -.53848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1894
  Index      = 2.081
  Normalizat = 1.51494
  Prefactor  = 0.793433
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.237     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.189        39.672        .22053E-04   -1.4981    
   2  Index         2.0810        1.7375        .45400E-03   -.62340    
   3  Normalizat    1.5149        .29579        .54786E-04   -.77359    
   4  Prefactor     .79343        .23232        .57041E-04   -.99971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93385e-09
Minuit parameter uncertainties:
  1  39.7515
  2  1.79542
  3  0.296133
  4  0.232611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259808': 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) = 5089.23720341
delta logL = 0.0262998945173

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.319e+01  3.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.081e+00  1.795e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.934e-01  2.326e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.515e+00  2.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 81.173 -28.329

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/259808/cmap_HighResolution_421286401_421545601_4FGL_J0524.6-2819_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-22 13:27:26.972964', job_id='259808', GAL2='0.79', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1629664046.97', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.63e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='702' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:27:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 259808: <4FGL_J0524.6-2819_daily_bin702> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin702> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 22 13:15:40 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:15:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 13:15:42 2021
Terminated at Sun Aug 22 13:27:27 2021
Results reported at Sun Aug 22 13:27:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin702 81.1732 -28.3288 421286401 421545601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0524.6-2819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

