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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1126
RA = 81.1732, Dec = -28.3288
tmin = 531187201, tmax = 531446401
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='262939', job_status='RUN', time_executed='2021-08-22 13:28:31.207751', time_epoch_executed='1629664111.21' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262939

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262939/ft1_4FGL_J0524.6-2819_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262939/ft1_4FGL_J0524.6-2819_daily_bin1126.fits outfile=/scratch/kocevski/262939/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1126.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=531187201.0 tmax=531446401.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 7.81
user 3.78
sys 3.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.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/262939/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.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 4.28
user 0.33
sys 3.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/262939/ltcube_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.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/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits
.....................!
real 16.99
user 12.42
sys 4.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/262939/ltcube_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.fits outfile=/scratch/kocevski/262939/expmap_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.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/262939/ltcube_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.fits
.....................!
real 195.45
user 185.18
sys 9.72

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/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits outfile=/scratch/kocevski/262939/cmap_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.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 4.16
user 0.37
sys 3.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits outfile=/scratch/kocevski/262939/cmap_HighResolution_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.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 4.16
user 0.37
sys 3.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/262939/ft2_4FGL_J0524.6-2819_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262939/Model_4FGL_J0524.6-2819_daily_bin1126.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/262939/ft1_filtered_4FGL_J0524.6-2819_daily_bin1126.fits.....................!
real 68.08
user 62.30
sys 5.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9146       1.0000         .10000E-03   10000.    
     5 'norm      '    .74059E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.909       1.0000         .10000E-03   10000.    
     8 'norm      '    10.547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43667E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.216       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.197       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.8986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2513       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6674       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0170       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87958       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=   4980.223     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2924 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.553       -.70808E-05** at limit **
   2  Prefactor     .10000E-03    124.94       -.57132E-04** at limit **
   3  norm          .10000E-03    1.5837       -.13661E-06** at limit **
   4  Prefactor     5.9127        7.6301        .27869E-05   -.17729E-03
   5  norm          .73961E-01    .17753       -.51615E-07   -.13491E-02
   6  Prefactor     .10000E-03    18.327       -.41275E-06** at limit **
   7  Prefactor     26.899        33.884       -.52409E-05    .15514E-04
   8  norm          10.547        95.712        .62541E-06    .96464E-06
   9  Prefactor     .10000E-03    3.1060        .28552E-06** at limit **
  10  norm          15.211        4.4719       -.22519E-06   -.13412E-02
  11  Prefactor     35.190        40.509       -.60581E-05   -.68159E-05
  12  Prefactor     .10000E-03    5.9904        .90755E-07** at limit **
  13  Prefactor     24.505        24.272       -.12720E-05   -.26829E-03
  14  Prefactor     .10000E-03    4.4527        .20289E-07** at limit **
  15  norm          9.8993        7.1631        .15147E-05   -.22705E-03
  16  Prefactor     .10000E-03    96.005        .27831E-04** at limit **
  17  norm          3.2507        2.6821        .12994E-06   -.31931E-03
  18  norm          .10000E-03    5.0569        .12990E-06** at limit **
  19  Prefactor     .85626        7.1676        .31922E-06   -.32010E-03
  20  Prefactor     .10000E-03    42.573        .39544E-05** at limit **
  21  Prefactor     .10000E-03    93.790        .31513E-04** at limit **
  22  Prefactor     2.6693        30.563       -.19053E-05   -.55435E-04
  23  Prefactor     .10000E-03    55.800       -.83553E-05** at limit **
  24  Normalizat    1.0172        .23608       -.97537E-06   -.35107E-04
  25  Prefactor     .87944        .17672        .83488E-06   -.10269E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 5.91269
  norm       = 0.0739613
  Prefactor  = 0.0001
  Prefactor  = 26.8993
  norm       = 10.5469
  Prefactor  = 0.0001
  norm       = 15.211
  Prefactor  = 35.1897
  Prefactor  = 0.0001
  Prefactor  = 24.5049
  Prefactor  = 0.0001
  norm       = 9.89935
  Prefactor  = 0.0001
  norm       = 3.25075
  norm       = 0.0001
  Prefactor  = 0.85626
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.66927
  Prefactor  = 0.0001
  Normalizat = 1.01718
  Prefactor  = 0.879445
 **********
 **   18 **HESSE 
 **********

 FCN=   4980.223     FROM HESSE     STATUS=OK           431 CALLS     3355 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    125.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5929        .86668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9127        7.6391        .16512E-03   -1.5222    
   5  norm          .73961E-01    .18247        .42357E-03   -1.5654    
   6  Prefactor     .10000E-03    18.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.899        33.871        .77228E-04   -1.4670    
   8  norm          10.547        95.737        .12337E-03   -1.5058    
   9  Prefactor     .10000E-03    13.866        .22788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.211        4.3703        .35780E-03   -1.4928    
  11  Prefactor     35.190        40.596        .67549E-04   -1.4521    
  12  Prefactor     .10000E-03    6.0214        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.505        23.837        .80871E-04   -1.4718    
  14  Prefactor     .10000E-03    4.4534        .14539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.8993        7.1518        .12736E-03   -1.5079    
  16  Prefactor     .10000E-03    97.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2507        2.6774        .97371E-04   -1.5347    
  18  norm          .10000E-03    5.0617        .15497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .85626        38.042        .35166E-02   -1.5523    
  20  Prefactor     .10000E-03    42.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    95.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6693        30.550        .24954E-03   -1.5381    
  23  Prefactor     .10000E-03    55.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0172        .27364        .27549E-03   -.92457    
  25  Prefactor     .87944        .20755        .23659E-03   -.96863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81225e-09
Minuit parameter uncertainties:
  1  4.23676e-07
  2  0.000929707
  3  5.34635e-06
  4  7.64036
  5  0.182474
  6  8.37585e-07
  7  33.8947
  8  63.6878
  9  3.56326e-05
  10  4.37039
  11  40.6278
  12  6.51196e-07
  13  23.8463
  14  1.44703e-05
  15  7.15238
  16  0.000272003
  17  2.67752
  18  1.49718e-06
  19  11.4218
  20  8.97697e-06
  21  0.000664974
  22  18.072
  23  8.75579e-05
  24  0.274015
  25  0.207741
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.519e+01  4.063e+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:  8.794e-01  2.077e-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.017e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 81.173 -28.329
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.28e-05

TS (Fixed Index): 1.09
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262939/likelihoodResults_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.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) = 4980.22024812
delta logL = 0.00231983122103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4980.21863255
delta logL = 0.00393540432651

Fit tolerance = 1e-08

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

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

 FCN=   4980.219     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.993        1383.3        .16256E-02    .42318E-04
   2  Index         2.4815        5.9786        .23601        .37007E-04
   3  Normalizat    1.0204        .84486E-01    .62248E-01    .99472E-05
   4  Prefactor     .87726        .59703E-01    .44713E-01    .80545E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9927
  Index      = 2.4815
  Normalizat = 1.0204
  Prefactor  = 0.877262
 **********
 **   18 **HESSE 
 **********

 FCN=   4980.219     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.993        54.447        .65024E-04   -1.4474    
   2  Index         2.4815        1.0455        .92797E-02   -.52788    
   3  Normalizat    1.0204        .25401        .27530E-03   -.92350    
   4  Prefactor     .87726        .20283        .23684E-03   -.96940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7127e-12
Minuit parameter uncertainties:
  1  54.5178
  2  1.05595
  3  0.254316
  4  0.203001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262939': 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) = 4980.21863232
delta logL = 0.00393563140824

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.799e+01  5.452e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.481e+00  1.056e+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:  8.773e-01  2.030e-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.020e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 2.48 +/- 1.06
Photon Flux (Free Index): 3.93e-08 +/- 4.98e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/262939/cmap_HighResolution_531187201_531446401_4FGL_J0524.6-2819_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.17e-05', photon_flux_error='4.77e-08', dlogl='3.94e-03', energy_flux='1.11e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-08-22 13:40:01.229306', photon_index_error2='1.06', photon_index2='2.48', ts='1.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.53e-05', EG='1.02', time_epoch_completed='1629664801.23', return_code='0', job_id='262939', GAL2='0.88', EG2='1.02', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.98e-08', ts2='1.09', photon_index='2.57' WHERE bin_id='1126' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 262939: <4FGL_J0524.6-2819_daily_bin1126> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1126> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 13:25:40 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:25: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:25:42 2021
Terminated at Sun Aug 22 13:40:02 2021
Results reported at Sun Aug 22 13:40:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1126 81.1732 -28.3288 531187201 531446401 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

