/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 8 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0524.6-2819_daily_bin248
RA = 81.1732, Dec = -28.3288
tmin = 303609601, tmax = 303868801
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='256896', job_status='RUN', time_executed='2021-08-22 13:06:21.538151', time_epoch_executed='1629662781.54' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256896/ft1_4FGL_J0524.6-2819_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256896/ft1_4FGL_J0524.6-2819_daily_bin248.fits outfile=/scratch/kocevski/256896/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin248.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=303609601.0 tmax=303868801.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.68
user 3.18
sys 1.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/256896/ltcube_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.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/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits
.....................!
real 13.53
user 11.73
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/256896/ltcube_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.fits outfile=/scratch/kocevski/256896/expmap_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.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/256896/ltcube_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.fits
.....................!
real 192.45
user 185.54
sys 6.38

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/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits scfile=/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits outfile=/scratch/kocevski/256896/cmap_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.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.75
user 0.37
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits scfile=/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits outfile=/scratch/kocevski/256896/cmap_HighResolution_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.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.81
user 0.38
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/256896/ft2_4FGL_J0524.6-2819_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256896/Model_4FGL_J0524.6-2819_daily_bin248.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/256896/ft1_filtered_4FGL_J0524.6-2819_daily_bin248.fits.....................!
real 93.32
user 90.24
sys 2.81

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    140.42       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.831       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3454       1.0000         .10000E-03   10000.    
     5 'norm      '    .21976       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6745       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12616E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .64900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3616       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6861       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3788       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81823       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=   8541.242     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2904 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          140.44        117.66        .16621E-05    .30359E-04
   2  Prefactor     31.824        32.765       -.60229E-06   -.35970E-04
   3  norm          5.9944        3.5334       -.51403E-07   -.11786E-03
   4  Prefactor     1.3440        4.1162        .13060E-05   -.28242E-03
   5  norm          .21973        .12484        .11635E-07    .10392E-03
   6  Prefactor     .10000E-03    7.2846        .12984E-06** at limit **
   7  Prefactor     .10000E-03    23.291       -.30057E-05** at limit **
   8  norm          .10000E-03    18.872        .31301E-06** at limit **
   9  Prefactor     1.6733        2.1723        .13911E-06   -.13516E-03
  10  norm          6.9828        2.1096       -.28166E-07   -.21844E-03
  11  Prefactor     6.0775        24.077       -.15045E-05   -.46003E-04
  12  Prefactor     .10000E-03    4.4978       -.12112E-07** at limit **
  13  Prefactor     .10000E-03    3.1528        .29698E-08** at limit **
  14  Prefactor     .10000E-03    2.7867       -.73648E-07** at limit **
  15  norm          .64847        1.4532        .67365E-06    .42028E-03
  16  Prefactor     .10000E-03    5.1348        .15700E-06** at limit **
  17  norm          6.3610        2.0030        .21691E-07   -.11700E-03
  18  norm          .10000E-03    9.4609       -.19875E-06** at limit **
  19  Prefactor     8.6872        5.9739        .71389E-06   -.40609E-03
  20  Prefactor     .10000E-03    18.547        .75067E-06** at limit **
  21  Prefactor     8.3770        21.275        .65294E-07   -.14920E-04
  22  Prefactor     .10000E-03    5.5327       -.14295E-06** at limit **
  23  Prefactor     .10000E-03    28.841        .23998E-05** at limit **
  24  Normalizat    1.0619        .16480       -.11376E-06   -.83897E-04
  25  Prefactor     .81793        .12992       -.45989E-06    .14932E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 140.435
  Prefactor  = 31.8238
  norm       = 5.99439
  Prefactor  = 1.34398
  norm       = 0.219734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.67329
  norm       = 6.98281
  Prefactor  = 6.07753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.648466
  Prefactor  = 0.0001
  norm       = 6.36099
  norm       = 0.0001
  Prefactor  = 8.68721
  Prefactor  = 0.0001
  Prefactor  = 8.37701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06195
  Prefactor  = 0.817934
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.242     FROM HESSE     STATUS=OK           431 CALLS     3335 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          140.44        118.18        .16998E-03   -1.3332    
   2  Prefactor     31.824        32.830        .71020E-04   -1.4579    
   3  norm          5.9944        3.5351        .12187E-03   -1.5218    
   4  Prefactor     1.3440        4.1660        .30688E-03   -1.5476    
   5  norm          .21973        .12308        .23128E-04   -1.5614    
   6  Prefactor     .10000E-03    7.2868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6733        2.1413        .14742E-03   -1.5449    
  10  norm          6.9828        2.1041        .69079E-04   -1.5179    
  11  Prefactor     6.0775        24.422        .16216E-03   -1.5215    
  12  Prefactor     .10000E-03    4.6822        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1585        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8033        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .64847        1.3194        .17559E-02   -1.5547    
  16  Prefactor     .10000E-03    5.1379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3610        2.0085        .68325E-04   -1.5203    
  18  norm          .10000E-03    9.6530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6872        5.9916        .68004E-03   -1.5118    
  20  Prefactor     .10000E-03    18.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3770        21.287        .13849E-03   -1.5129    
  22  Prefactor     .10000E-03    5.5403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0619        .19240        .24710E-03   -.90983    
  25  Prefactor     .81793        .15056        .23634E-03   -.99071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65962e-10
Minuit parameter uncertainties:
  1  118.383
  2  32.8485
  3  3.53521
  4  4.16691
  5  0.123084
  6  6.33715e-06
  7  0.000217504
  8  2.87212e-05
  9  2.14139
  10  2.10412
  11  24.3833
  12  2.27317e-06
  13  7.11029e-07
  14  7.27254e-06
  15  1.31945
  16  6.41046e-06
  17  2.00852
  18  1.39864e-05
  19  5.992
  20  5.91323e-05
  21  21.3064
  22  7.95959e-06
  23  0.000205083
  24  0.192526
  25  0.150637
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  6.078e+00  2.438e+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.179e-01  1.506e-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.062e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256896/likelihoodResults_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.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) = 8541.08809107
delta logL = 0.153723808746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8541.06181033
delta logL = 0.180004549442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3663       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7203       1.0000          .0000       10.000    
     3 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83050       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8541.062     FROM MIGRAD    STATUS=FAILED        94 CALLS      259 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3614        414.38        .11028E-02   -.16998E-03
   2  Index         3.7214        5.2662        .10377E-01    .39895E-03
   3  Normalizat    1.0388        .14049        .24947E-03    .99681E-03
   4  Prefactor     .83049        .11988        .23473E-03    .12456E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8541.062     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      344 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3614        414.38        .22621E-03   -.16998E-03
   2  Index         3.7214        5.2662        .19456E-02    .39895E-03
   3  Normalizat    1.0388        .14049        .20314E-03    .99681E-03
   4  Prefactor     .83049        .11988        .17710E-03    .12456E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8541.062     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      375 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3616        15.299        .44111E-04   -.10825E-03
   2  Index         3.7214        2.4108        .20755E-02   -.31135E-04
   3  Normalizat    1.0388        .17876        .49894E-04    .94242E-03
   4  Prefactor     .83049        .14919        .46945E-04    .11799E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36155
  Index      = 3.72138
  Normalizat = 1.03879
  Prefactor  = 0.830486
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.062     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3616        12.532        .17644E-05   -1.5341    
   2  Index         3.7214        2.1288        .83019E-04   -.25860    
   3  Normalizat    1.0388        .17881        .99788E-05   -.91742    
   4  Prefactor     .83049        .14918        .93890E-05   -.98614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06018e-09
Minuit parameter uncertainties:
  1  12.5414
  2  2.20441
  3  0.178916
  4  0.149257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256896': 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) = 8541.06181014
delta logL = 0.180004746157

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.362e+00  1.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.721e+00  2.204e+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.305e-01  1.493e-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.039e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/256896/cmap_HighResolution_303609601_303868801_4FGL_J0524.6-2819_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-08-22 13:21:00.493550', job_id='256896', GAL2='0.83', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1629663660.49', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.80e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='248' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 256896: <4FGL_J0524.6-2819_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin248 81.1732 -28.3288 303609601 303868801 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 :                                   895.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

