/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 4 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0524.6-2819_daily_bin277
RA = 81.1732, Dec = -28.3288
tmin = 311126401, tmax = 311385601
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='256939', job_status='RUN', time_executed='2021-08-22 13:08:37.927285', time_epoch_executed='1629662917.93' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256939/ft1_4FGL_J0524.6-2819_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256939/ft1_4FGL_J0524.6-2819_daily_bin277.fits outfile=/scratch/kocevski/256939/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin277.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=311126401.0 tmax=311385601.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 13.50
user 3.27
sys 10.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.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/256939/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin277.fits evtable="EVENTS" outfile="/scratch/kocevski/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.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 10.48
user 0.32
sys 10.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/256939/ltcube_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.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/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits
.....................!
real 23.40
user 11.88
sys 11.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/256939/ltcube_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.fits outfile=/scratch/kocevski/256939/expmap_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.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/256939/ltcube_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.fits
.....................!
real 203.56
user 186.12
sys 16.98

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/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits outfile=/scratch/kocevski/256939/cmap_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.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 10.33
user 0.37
sys 9.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits outfile=/scratch/kocevski/256939/cmap_HighResolution_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.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 10.19
user 0.39
sys 9.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/256939/ft2_4FGL_J0524.6-2819_daily_bin277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256939/Model_4FGL_J0524.6-2819_daily_bin277.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/256939/ft1_filtered_4FGL_J0524.6-2819_daily_bin277.fits.....................!
real 67.78
user 53.46
sys 13.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1282       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.9045       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5270       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.063       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7488       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3841       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.503       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .57106       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=   4192.522     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2906 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    89.679        .36911E-05** at limit **
   2  Prefactor     .10000E-03    76.598       -.26991E-05** at limit **
   3  norm          2.1272        3.7527       -.46123E-07    .26792E-04
   4  Prefactor     .10000E-03    2.9006       -.94292E-07** at limit **
   5  norm          .10000E-03    .10394       -.73478E-07** at limit **
   6  Prefactor     .10000E-03    14.404        .50670E-06** at limit **
   7  Prefactor     .10000E-03    10.322        .15175E-06** at limit **
   8  norm          33.609        89.074       -.17453E-04   -.10771E-04
   9  Prefactor     .10000E-03    3.1244       -.35526E-07** at limit **
  10  norm          9.9033        3.9179       -.17074E-06    .22793E-06
  11  Prefactor     .10000E-03    27.646        .24208E-05** at limit **
  12  Prefactor     10.054        10.935       -.12610E-06   -.50817E-07
  13  Prefactor     1.4936        52.472        .13502E-04   -.22457E-04
  14  Prefactor     7.5261        8.7539       -.12003E-06   -.17296E-04
  15  norm          .10000E-03    9.3489        .21551E-08** at limit **
  16  Prefactor     22.062        32.497       -.60146E-06    .15195E-05
  17  norm          4.7471        3.2120       -.11015E-06   -.12071E-04
  18  norm          .10000E-03    5.2336       -.90277E-07** at limit **
  19  Prefactor     5.3847        11.040        .11922E-05    .65118E-05
  20  Prefactor     .10000E-03    43.523       -.20127E-05** at limit **
  21  Prefactor     .10000E-03    20.721       -.18015E-05** at limit **
  22  Prefactor     48.498        35.702        .21706E-06    .97891E-05
  23  Prefactor     .10000E-03    39.641       -.26244E-06** at limit **
  24  Normalizat    1.2305        .22461        .15400E-05    .88455E-04
  25  Prefactor     .57061        .16912       -.97692E-06    .55143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12724
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.6088
  Prefactor  = 0.0001
  norm       = 9.90326
  Prefactor  = 0.0001
  Prefactor  = 10.0538
  Prefactor  = 1.49363
  Prefactor  = 7.52612
  norm       = 0.0001
  Prefactor  = 22.0618
  norm       = 4.74711
  norm       = 0.0001
  Prefactor  = 5.38468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4981
  Prefactor  = 0.0001
  Normalizat = 1.23047
  Prefactor  = 0.570612
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.522     FROM HESSE     STATUS=OK           423 CALLS     3329 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    89.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1272        3.7422        .15820E-03   -1.5416    
   4  Prefactor     .10000E-03    2.9236        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .17455        .40179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.609        89.303        .69233E-04   -1.4548    
   9  Prefactor     .10000E-03    3.1491        .11156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.9033        3.9225        .36759E-03   -1.5078    
  11  Prefactor     .10000E-03    27.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.054        10.897        .63181E-03   -1.5074    
  13  Prefactor     1.4936        53.492        .17536E-02   -1.5464    
  14  Prefactor     7.5261        8.6825        .14618E-03   -1.5159    
  15  norm          .10000E-03    9.5359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.062        32.520        .85274E-04   -1.4768    
  17  norm          4.7471        3.2390        .88498E-04   -1.5272    
  18  norm          .10000E-03    5.2410        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3847        11.027        .86595E-03   -1.5244    
  20  Prefactor     .10000E-03    43.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.498        35.722        .57578E-04   -1.4314    
  23  Prefactor     .10000E-03    39.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2305        .26910        .23429E-03   -.85666    
  25  Prefactor     .57061        .19996        .25715E-03   -1.0884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6774e-11
Minuit parameter uncertainties:
  1  4.18461e-05
  2  6.64287e-05
  3  3.74257
  4  4.98687e-06
  5  3.87105e-07
  6  1.36823e-06
  7  4.58743e-05
  8  89.6608
  9  1.51635e-05
  10  3.92256
  11  1.35145e-05
  12  10.8996
  13  17.8937
  14  8.68396
  15  5.28404e-05
  16  32.5462
  17  3.23916
  18  3.48172e-06
  19  11.0312
  20  3.25656e-05
  21  2.57546e-05
  22  35.7382
  23  3.3845e-05
  24  0.2694
  25  0.200206
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.351e-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:  5.706e-01  2.002e-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.230e+00  2.694e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256939/likelihoodResults_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.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) = 4192.52227503
delta logL = -0.000172124314304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4192.27485997
delta logL = 0.247242927738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.5315       1.0000          .0000       10.000    
     3 'Normalizat'    1.1740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60161       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=   4192.275     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      453 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15369E-03    .20670E-03    .41212E-03** at limit **
   2  Index         9.5880        .89586        .39230E-01    .12233E-04
   3  Normalizat    1.1739        .22040        .54038E-01    .42394E-04
   4  Prefactor     .60186        .16827        .41076E-01    .24105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000153688
  Index      = 9.58803
  Normalizat = 1.17395
  Prefactor  = 0.601864
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.275     FROM HESSE     STATUS=OK            33 CALLS      486 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15369E-03    .13709E-02    .15439E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5880        1.7509        .15692E-02    1.1620    
   3  Normalizat    1.1739        .26198        .23894E-03   -.87412    
   4  Prefactor     .60186        .19962        .25082E-03   -1.0751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73729e-11
Minuit parameter uncertainties:
  1  0.000542589
  2  1.79689
  3  0.262277
  4  0.199853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256939': 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) = 4192.27482957
delta logL = 0.247273332578

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.537e-04  5.426e-04  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  9.588e+00  1.797e+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:  6.019e-01  1.999e-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.174e+00  2.623e-01  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/256939/cmap_HighResolution_311126401_311385601_4FGL_J0524.6-2819_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-22 13:20:44.056849', job_id='256939', GAL2='0.60', fit_tolerance='1e-08', EG2='1.17', EG='1.23', time_epoch_completed='1629663644.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.47e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='277' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 256939: <4FGL_J0524.6-2819_daily_bin277> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin277 81.1732 -28.3288 311126401 311385601 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 :                                   876.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

