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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1036
RA = 81.1732, Dec = -28.3288
tmin = 507859201, tmax = 508118401
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='261569', job_status='RUN', time_executed='2021-08-22 13:24:21.679676', time_epoch_executed='1629663861.68' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261569/ft1_4FGL_J0524.6-2819_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261569/ft1_4FGL_J0524.6-2819_daily_bin1036.fits outfile=/scratch/kocevski/261569/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1036.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=507859201.0 tmax=508118401.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.79
user 3.91
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/261569/ltcube_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.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/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits
.....................!
real 12.40
user 11.31
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/261569/ltcube_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.fits outfile=/scratch/kocevski/261569/expmap_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.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/261569/ltcube_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.fits
.....................!
real 191.02
user 185.10
sys 5.55

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/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits scfile=/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits outfile=/scratch/kocevski/261569/cmap_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.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.20
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits scfile=/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits outfile=/scratch/kocevski/261569/cmap_HighResolution_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.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.23
user 0.38
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/261569/ft2_4FGL_J0524.6-2819_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261569/Model_4FGL_J0524.6-2819_daily_bin1036.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/261569/ft1_filtered_4FGL_J0524.6-2819_daily_bin1036.fits.....................!
real 63.04
user 60.69
sys 2.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .21575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26334E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    103.51       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7864       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4024       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24715E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2797       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82755       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=   4891.679     FROM MIGRAD    STATUS=CONVERGED   1045 CALLS     3766 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    99.575        .18142E-02** at limit **
   2  Prefactor     .10000E-03    133.16        .18142E-02** at limit **
   3  norm          3.4691        3.5476        .12746E-03   -.41920E-05
   4  Prefactor     .10000E-03    4.1057        .13759E-02** at limit **
   5  norm          .21567        .17067        .24353E-04   -.20961E-03
   6  Prefactor     23.197        35.081        .83156E-04    .27343E-05
   7  Prefactor     .10002E-03    46.426        .11628    ** at limit **
   8  norm          103.55        96.358        .19761E-03   -.11046E-04
   9  Prefactor     .10000E-03    3.5255        .25292E-03** at limit **
  10  norm          6.7861        3.1370        .79383E-04    .45398E-04
  11  Prefactor     .10000E-03    16.987        .18142E-02** at limit **
  12  Prefactor     13.688        11.002        .10827E-03    .15226E-04
  13  Prefactor     10.590        17.755        .12309E-03    .36021E-05
  14  Prefactor     .10000E-03    5.6098        .16168E-02** at limit **
  15  norm          12.646        6.6152        .11265E-03    .29267E-05
  16  Prefactor     .10000E-03    16.760        .18142E-02** at limit **
  17  norm          3.4026        2.7379        .97730E-04   -.73287E-05
  18  norm          .10000E-03    4.0489        .13741E-02** at limit **
  19  Prefactor     .10000E-03    10.573        .18142E-02** at limit **
  20  Prefactor     .10000E-03    106.29        .18142E-02** at limit **
  21  Prefactor     .10000E-03    61.171        .18142E-02** at limit **
  22  Prefactor     17.943        41.268        .94579E-04    .12140E-04
  23  Prefactor     .10000E-03    137.23        .18142E-02** at limit **
  24  Normalizat    1.2797        .29813        .26253E-03    .26069E-04
  25  Prefactor     .82756        .22760        .25638E-03   -.10775E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.46911
  Prefactor  = 0.0001
  norm       = 0.215675
  Prefactor  = 23.1968
  Prefactor  = 0.000100018
  norm       = 103.551
  Prefactor  = 0.0001
  norm       = 6.78605
  Prefactor  = 0.0001
  Prefactor  = 13.6878
  Prefactor  = 10.5902
  Prefactor  = 0.0001
  norm       = 12.6463
  Prefactor  = 0.0001
  norm       = 3.40262
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.943
  Prefactor  = 0.000100003
  Normalizat = 1.2797
  Prefactor  = 0.827563
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.679     FROM HESSE     STATUS=OK           411 CALLS     4177 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    99.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    133.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4691        3.5475        .50986E-05   -1.5335    
   4  Prefactor     .10000E-03    4.1067        .27519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21567        .17066        .97411E-06   -1.5615    
   6  Prefactor     23.197        35.077        .33263E-05   -1.4744    
   7  Prefactor     .10002E-03    45.438        .11784       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          103.55        96.331        .79043E-05   -1.3669    
   9  Prefactor     .10000E-03    3.5256        .50583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7861        3.1369        .31753E-05   -1.5187    
  11  Prefactor     .10000E-03    16.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.688        11.001        .43307E-05   -1.4968    
  13  Prefactor     10.590        17.754        .49236E-05   -1.5057    
  14  Prefactor     .10000E-03    5.6098        .32337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.646        6.6149        .45059E-05   -1.4997    
  16  Prefactor     .10000E-03    16.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4026        2.7378        .39092E-05   -1.5339    
  18  norm          .10000E-03    4.0490        .27483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    106.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.943        41.236        .37832E-05   -1.4861    
  23  Prefactor     .10000E-03    137.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2797        .29844        .10501E-04   -.84174    
  25  Prefactor     .82756        .22785        .10255E-04   -.98720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31249e-11
Minuit parameter uncertainties:
  1  0.000587378
  2  0.000424707
  3  3.54769
  4  4.36613e-06
  5  0.170664
  6  35.1085
  7  0.00180573
  8  96.4769
  9  4.58834e-06
  10  3.137
  11  2.45477e-05
  12  11.0029
  13  17.7627
  14  3.30654e-06
  15  6.61533
  16  6.41919e-06
  17  2.73793
  18  5.56637e-07
  19  7.60553e-06
  20  0.000380947
  21  0.000122675
  22  41.3011
  23  0.0013444
  24  0.298838
  25  0.228109
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.455e-05  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.276e-01  2.281e-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.280e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261569/likelihoodResults_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.67910279
delta logL = -0.000280182332062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.67882502
delta logL = -2.40929330175e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0774       1.0000          .0000       10.000    
     3 'Normalizat'    1.2797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82757       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=   4891.679     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      299 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.025        .18142E-01** at limit **
   2  Index         2.0180        8.5463        .50000       -.11528E-07
   3  Normalizat    1.2797        .96865E-02    .26253E-03    .12527E-03
   4  Prefactor     .82756        .78346E-02    .25638E-03    .13392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01798
  Normalizat = 1.2797
  Prefactor  = 0.827564
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.679     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    364.85        .32593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0180        5.0853        .50000       -.63901    
   3  Normalizat    1.2797        .23366E-01    .52505E-04   -.84174    
   4  Prefactor     .82756        .18898E-01    .10255E-04   -.98720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56059e-11
Minuit parameter uncertainties:
  1  4.88131e-05
  2  932.863
  3  0.0233661
  4  0.0188986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261569': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.67882186
delta logL = 7.49735590944e-07

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.881e-05  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.018e+00  9.329e+02  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.276e-01  1.890e-02  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.280e+00  2.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/261569/cmap_HighResolution_507859201_508118401_4FGL_J0524.6-2819_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-08-22 13:35:44.964097', job_id='261569', GAL2='0.83', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1629664544.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1036' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 261569: <4FGL_J0524.6-2819_daily_bin1036> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1036> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:46 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:47 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:20:47 2021
Terminated at Sun Aug 22 13:35:45 2021
Results reported at Sun Aug 22 13:35:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1036 81.1732 -28.3288 507859201 508118401 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 :                                   690.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

