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


Performing analysis on: 4FGL_J0525.8-0052_daily_bin325
RA = 81.4666, Dec = -0.8709
tmin = 323568001, tmax = 323827201
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='267624', job_status='RUN', time_executed='2021-08-22 13:35:50.673184', time_epoch_executed='1629664550.67' WHERE source_name='4FGL J0525.8-0052' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267624/ft1_4FGL_J0525.8-0052_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267624/ft1_4FGL_J0525.8-0052_daily_bin325.fits outfile=/scratch/kocevski/267624/ft1_filteredMKT_4FGL_J0525.8-0052_daily_bin325.fits ra=81.4666 dec=-0.8709 rad=12.0 tmin=323568001.0 tmax=323827201.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 3.29
user 3.09
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.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/267624/ft1_filteredMKT_4FGL_J0525.8-0052_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.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 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/267624/ltcube_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.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/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits
.....................!
real 12.22
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/267624/ltcube_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits outfile=/scratch/kocevski/267624/expmap_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.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/267624/ltcube_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits
.....................!
real 190.96
user 186.50
sys 4.13

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 147 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0525.8-0052 @ 81.4666 -0.8709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits outfile=/scratch/kocevski/267624/cmap_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.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.4666 yref=-0.8709 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 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits outfile=/scratch/kocevski/267624/cmap_HighResolution_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.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.4666 yref=-0.8709 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 0.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267624/Model_4FGL_J0525.8-0052_daily_bin325.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits.....................!
real 243.17
user 241.40
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits', '/scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits', expMap='/scratch/kocevski/267624/expmap_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits', expCube='/scratch/kocevski/267624/ltcube_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267624/Model_4FGL_J0525.8-0052_daily_bin325.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0525.8-0052'

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.005e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
230        Index:  2.098e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
231        Scale:  2.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/267624/ft1_filtered_4FGL_J0525.8-0052_daily_bin325.fits
Spacecraft file(s): /scratch/kocevski/267624/ft2_4FGL_J0525.8-0052_daily_bin325.fits
Exposure map: /scratch/kocevski/267624/expmap_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits
Exposure cube: /scratch/kocevski/267624/ltcube_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267624/Model_4FGL_J0525.8-0052_daily_bin325.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) = 11924.718515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61566E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5929       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.022       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.546       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3096       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5394       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11924.68     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1924 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50611E-01    2.1889       -.15587E-05    .15412E-02
   2  Prefactor     6.5825        43.573        .60059E-05    .63140E-04
   3  norm          1.2655        1.9959        .18698E-06    .34663E-03
   4  Prefactor     .10000E-03    8.3566       -.54930E-06** at limit **
   5  norm          .31485        .44119       -.98569E-07   -.14446E-02
   6  Prefactor     .10000E-03    12.843       -.67352E-06** at limit **
   7  norm          11.578        4.4715        .19735E-06    .19885E-03
   8  Prefactor     .10000E-03    5.1115       -.29498E-06** at limit **
   9  norm          .10000E-03    10.411        .86616E-07** at limit **
  10  Prefactor     .10000E-03    13.717       -.21105E-06** at limit **
  11  Prefactor     14.021        8.5031        .11517E-06    .27268E-04
  12  norm          2.6747        1.7378        .40329E-07    .61008E-04
  13  Prefactor     24.858        45.213       -.68527E-06    .88844E-05
  14  Prefactor     16.542        36.882        .17320E-05    .50654E-04
  15  norm          .10000E-03    1.5483        .13901E-07** at limit **
  16  norm          .10000E-03    9.5876        .67492E-06** at limit **
  17  norm          6.3100        5.8676        .16063E-05    .96342E-03
  18  Normalizat    1.5398        .26699        .24097E-06    .11765E-03
  19  Prefactor     .94517        .58698E-01   -.47392E-06   -.62571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.050611
  Prefactor  = 6.58251
  norm       = 1.26548
  Prefactor  = 0.0001
  norm       = 0.314847
  Prefactor  = 0.0001
  norm       = 11.5782
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0213
  norm       = 2.67471
  Prefactor  = 24.8579
  Prefactor  = 16.542
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.31002
  Normalizat = 1.53977
  Prefactor  = 0.945174
 **********
 **   18 **HESSE 
 **********

 FCN=   11924.68     FROM HESSE     STATUS=OK           276 CALLS     2200 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50611E-01    19.836        .20608E-02   -1.5663    
   2  Prefactor     6.5825        43.959        .15629E-03   -1.5195    
   3  norm          1.2655        1.9760        .18226E-03   -1.5483    
   4  Prefactor     .10000E-03    8.3878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31485        .34237        .81818E-03   -1.5596    
   6  Prefactor     .10000E-03    12.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.578        4.4390        .11773E-03   -1.5027    
   8  Prefactor     .10000E-03    5.3130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.021        8.5092        .10696E-03   -1.4959    
  12  norm          2.6747        1.7188        .10057E-03   -1.5381    
  13  Prefactor     24.858        44.573        .80347E-04   -1.4710    
  14  Prefactor     16.542        36.563        .98463E-04   -1.4894    
  15  norm          .10000E-03    1.5605        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3100        5.8844        .79900E-03   -1.5206    
  18  Normalizat    1.5398        .28689        .51229E-03   -.76667    
  19  Prefactor     .94517        .62698E-01    .14584E-03   -.94580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15892e-08
Minuit parameter uncertainties:
  1  2.0026
  2  34.0571
  3  1.97614
  4  6.29054e-05
  5  0.342373
  6  2.75846e-05
  7  4.43913
  8  3.35636e-05
  9  9.99377e-06
  10  1.106e-05
  11  8.50994
  12  1.71888
  13  44.6327
  14  36.6121
  15  3.08585e-06
  16  4.35276e-05
  17  5.88497
  18  0.287196
  19  0.0627029
Done.

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

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.402e+01  8.510e+00  1.000e-04  1.000e+04 ( 1.000e-13)
230        Index:  2.098e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
231        Scale:  2.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.452e-01  6.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.540e+00  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 81.467 -0.871
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.33e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 2.79e-05

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) = 11924.6645285
delta logL = 0.0200233227752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11924.6536288
delta logL = 0.0309230020539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.500       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9920       1.0000          .0000       10.000    
     3 'Normalizat'    1.5470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94476       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+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=   11924.65     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      266 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.501        11.280        .10173E-03    .35760E-04
   2  Index         1.9920        .43562        .79659E-02    .69859E-03
   3  Normalizat    1.5470        .26100        .51135E-03   -.25701E-04
   4  Prefactor     .94476        .60159E-01    .14587E-03   -.10272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5009
  Index      = 1.99197
  Normalizat = 1.54702
  Prefactor  = 0.944758
 **********
 **   18 **HESSE 
 **********

 FCN=   11924.65     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.501        10.965        .40693E-05   -1.4920    
   2  Index         1.9920        .42334        .15932E-02   -.64551    
   3  Normalizat    1.5470        .26092        .20454E-04   -.76466    
   4  Prefactor     .94476        .60172E-01    .58347E-05   -.94594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.513e-12
Minuit parameter uncertainties:
  1  10.9667
  2  0.424136
  3  0.261148
  4  0.0601764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267624': 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) = 11924.6536288
delta logL = 0.0309230066141

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.550e+01  1.097e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        Index:  1.992e+00  4.241e-01  0.000e+00  1.000e+01 (-1.000e+00)
231        Scale:  2.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.448e-01  6.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.547e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.25
Ra Dec: 81.467 -0.871
Photon Index (Free Index): 1.99 +/- 0.42
Photon Flux (Free Index): 7.35e-08 +/- 6.00e-08
Energy Flux (Free Index): 5.18e-05 +/- 4.17e-05

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/267624/cmap_HighResolution_323568001_323827201_4FGL_J0525.8-0052_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.33e-08', energy_flux2='5.18e-05', photon_flux_error='5.05e-08', dlogl='3.09e-02', energy_flux='4.60e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-08-22 13:50:14.485498', photon_index_error2='0.42', photon_index2='1.99', ts='7.20', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.17e-05', EG='1.54', time_epoch_completed='1629665414.49', return_code='0', job_id='267624', GAL2='0.94', EG2='1.55', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='6.00e-08', ts2='7.25', photon_index='2.10' WHERE bin_id='325' AND source_name='4FGL J0525.8-0052' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 267624: <4FGL_J0525.8-0052_daily_bin325> in cluster <slac> Done

Job <4FGL_J0525.8-0052_daily_bin325> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 13:35:36 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:35:38 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:35:38 2021
Terminated at Sun Aug 22 13:50:15 2021
Results reported at Sun Aug 22 13:50:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0525.8-0052_daily_bin325 81.4666 -0.8709 323568001 323827201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0525.8-0052 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   860.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             391.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

