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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1561
RA = 81.1732, Dec = -28.3288
tmin = 643939201, tmax = 644198401
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='265140', job_status='RUN', time_executed='2021-08-22 13:32:17.819992', time_epoch_executed='1629664337.82' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265140/ft1_4FGL_J0524.6-2819_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265140/ft1_4FGL_J0524.6-2819_daily_bin1561.fits outfile=/scratch/kocevski/265140/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1561.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=643939201.0 tmax=644198401.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 5.49
user 4.21
sys 1.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.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/265140/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.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.63
user 0.34
sys 0.95

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/265140/ltcube_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.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/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits
.....................!
real 17.67
user 12.39
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/265140/ltcube_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits outfile=/scratch/kocevski/265140/expmap_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.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/265140/ltcube_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits
.....................!
real 191.57
user 185.54
sys 5.54

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/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits outfile=/scratch/kocevski/265140/cmap_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.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.38
user 0.37
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits outfile=/scratch/kocevski/265140/cmap_HighResolution_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.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.47
user 0.39
sys 0.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265140/Model_4FGL_J0524.6-2819_daily_bin1561.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/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits.....................!
real 79.80
user 76.76
sys 2.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits', '/scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits', expMap='/scratch/kocevski/265140/expmap_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits', expCube='/scratch/kocevski/265140/ltcube_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265140/Model_4FGL_J0524.6-2819_daily_bin1561.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/265140/ft1_filtered_4FGL_J0524.6-2819_daily_bin1561.fits
Spacecraft file(s): /scratch/kocevski/265140/ft2_4FGL_J0524.6-2819_daily_bin1561.fits
Exposure map: /scratch/kocevski/265140/expmap_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits
Exposure cube: /scratch/kocevski/265140/ltcube_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265140/Model_4FGL_J0524.6-2819_daily_bin1561.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) = 6266.30919766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.543       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.265       1.0000         .10000E-03   10000.    
     5 'norm      '    .64411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4023       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.9850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69755E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.777       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17222E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    187.26       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.360       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.1052       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98253       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=   6265.801     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2971 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    61.130       -.58238E-06** at limit **
   2  Prefactor     44.506        46.548       -.13251E-04    .40959E-05
   3  norm          5.0215        3.2711       -.14623E-06   -.13645E-03
   4  Prefactor     10.261        6.0307       -.10095E-05   -.20060E-02
   5  norm          .64406        .20951        .42314E-07    .37034E-03
   6  Prefactor     34.082        38.075        .98537E-06    .11955E-04
   7  Prefactor     4.3954        25.675        .46055E-05   -.32400E-04
   8  norm          .10000E-03    30.897        .26437E-06** at limit **
   9  Prefactor     .10000E-03    2.2756       -.38825E-07** at limit **
  10  norm          6.9900        2.7624       -.21338E-06    .24453E-03
  11  Prefactor     24.804        34.586       -.47878E-05    .59790E-05
  12  Prefactor     .68612E-02    5.7932       -.72763E-06   -.36233E-04
  13  Prefactor     .10000E-03    14.659       -.25206E-06** at limit **
  14  Prefactor     .10000E-03    3.4112       -.29613E-07** at limit **
  15  norm          .10000E-03    5.5661       -.16113E-06** at limit **
  16  Prefactor     .10000E-03    11.641        .67011E-08** at limit **
  17  norm          17.775        3.8614        .21678E-07    .71520E-04
  18  norm          8.3953        11.439        .23567E-06   -.22299E-04
  19  Prefactor     .10001E-03    24.111        .16683E-05** at limit **
  20  Prefactor     187.20        118.61       -.38932E-04   -.58578E-05
  21  Prefactor     73.346        45.783       -.53620E-05    .55224E-05
  22  Prefactor     .10000E-03    17.888        .17692E-05** at limit **
  23  Prefactor     .10000E-03    18.149       -.15130E-05** at limit **
  24  Normalizat    1.1057        .22526        .28045E-05    .44238E-04
  25  Prefactor     .98245        .17698        .18151E-05    .84738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 44.5057
  norm       = 5.02149
  Prefactor  = 10.2613
  norm       = 0.644059
  Prefactor  = 34.0822
  Prefactor  = 4.39537
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.98996
  Prefactor  = 24.8042
  Prefactor  = 0.00686117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7747
  norm       = 8.39527
  Prefactor  = 0.000100008
  Prefactor  = 187.201
  Prefactor  = 73.346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10568
  Prefactor  = 0.982454
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.801     FROM HESSE     STATUS=OK           437 CALLS     3408 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    61.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.506        46.543        .60072E-04   -1.4373    
   3  norm          5.0215        3.2739        .11049E-03   -1.5260    
   4  Prefactor     10.261        6.1325        .62531E-03   -1.5067    
   5  norm          .64406        .20980        .19631E-04   -1.5547    
   6  Prefactor     34.082        38.081        .68629E-04   -1.4540    
   7  Prefactor     4.3954        25.614        .19195E-03   -1.5289    
   8  norm          .10000E-03    30.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3100        .11641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.9900        2.7657        .77690E-04   -1.5179    
  11  Prefactor     24.804        34.633        .80410E-04   -1.4711    
  12  Prefactor     .68612E-02    7.4602        .53747E-01   -1.5692    
  13  Prefactor     .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4131        .14278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.775        3.8844        .67701E-04   -1.4865    
  18  norm          8.3953        11.441        .13834E-03   -1.5128    
  19  Prefactor     .10001E-03    24.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     187.20        118.26        .14754E-03   -1.2963    
  21  Prefactor     73.346        45.794        .46875E-04   -1.3993    
  22  Prefactor     .10000E-03    17.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1057        .26766        .29586E-03   -.89570    
  25  Prefactor     .98245        .20863        .25943E-03   -.93317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85274e-09
Minuit parameter uncertainties:
  1  5.42331e-06
  2  46.5814
  3  3.27397
  4  6.1329
  5  0.209801
  6  38.1086
  7  21.2345
  8  3.89393e-05
  9  7.96786e-06
  10  2.76579
  11  34.661
  12  0.449231
  13  2.89745e-05
  14  3.49443e-06
  15  3.92144e-05
  16  6.89209e-06
  17  3.88444
  18  11.4441
  19  0.000905468
  20  118.41
  21  45.8156
  22  6.64682e-06
  23  1.5247e-07
  24  0.267988
  25  0.208804
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.480e+01  3.466e+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:  9.825e-01  2.088e-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.106e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265140/likelihoodResults_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.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) = 6265.79966077
delta logL = 0.00106432461143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6265.79932317
delta logL = 0.00140192915751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.755       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5190       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98149       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=   6265.799     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      258 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.756        40.737        .78935E-04    .82066E-04
   2  Index         2.5190        1.0423        .11846E-01    .14778E-04
   3  Normalizat    1.1071        .24664        .29569E-03    .53904E-04
   4  Prefactor     .98159        .20432        .25952E-03    .60715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.756
  Index      = 2.51902
  Normalizat = 1.10711
  Prefactor  = 0.981594
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.799     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.756        39.367        .15787E-04   -1.4693    
   2  Index         2.5190        1.0073        .47384E-03   -.51921    
   3  Normalizat    1.1071        .24682        .11828E-04   -.89524    
   4  Prefactor     .98159        .20445        .10381E-04   -.93346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46433e-11
Minuit parameter uncertainties:
  1  39.4066
  2  1.01653
  3  0.247079
  4  0.204611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265140': 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) = 6265.79932302
delta logL = 0.001402071749

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.576e+01  3.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.519e+00  1.017e+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:  9.816e-01  2.046e-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.107e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/265140/cmap_HighResolution_643939201_644198401_4FGL_J0524.6-2819_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-08-22 13:44:58.291820', job_id='265140', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629665098.29', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.40e-03', ts2='0.72', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1561' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 265140: <4FGL_J0524.6-2819_daily_bin1561> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1561> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 22 13:30:31 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:30:33 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:30:33 2021
Terminated at Sun Aug 22 13:44:58 2021
Results reported at Sun Aug 22 13:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1561 81.1732 -28.3288 643939201 644198401 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

