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


Performing analysis on: 4FGL_J0525.8-0052_daily_bin1144
RA = 81.4666, Dec = -0.8709
tmin = 535852801, tmax = 536112001
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='272477', job_status='RUN', time_executed='2021-08-22 13:53:07.638244', time_epoch_executed='1629665587.64' WHERE source_name='4FGL J0525.8-0052' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272477/ft1_4FGL_J0525.8-0052_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272477/ft1_4FGL_J0525.8-0052_daily_bin1144.fits outfile=/scratch/kocevski/272477/ft1_filteredMKT_4FGL_J0525.8-0052_daily_bin1144.fits ra=81.4666 dec=-0.8709 rad=12.0 tmin=535852801.0 tmax=536112001.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 2.99
user 2.54
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.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/272477/ft1_filteredMKT_4FGL_J0525.8-0052_daily_bin1144.fits evtable="EVENTS" outfile="/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.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.63
user 0.26
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/272477/ltcube_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.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/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits
.....................!
real 9.41
user 8.83
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/272477/ltcube_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits outfile=/scratch/kocevski/272477/expmap_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.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/272477/ltcube_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits
.....................!
real 146.99
user 142.08
sys 4.67

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/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits outfile=/scratch/kocevski/272477/cmap_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.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.66
user 0.28
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits outfile=/scratch/kocevski/272477/cmap_HighResolution_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.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.67
user 0.30
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272477/Model_4FGL_J0525.8-0052_daily_bin1144.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/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits.....................!
real 167.35
user 165.71
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits', '/scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits', expMap='/scratch/kocevski/272477/expmap_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits', expCube='/scratch/kocevski/272477/ltcube_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272477/Model_4FGL_J0525.8-0052_daily_bin1144.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/272477/ft1_filtered_4FGL_J0525.8-0052_daily_bin1144.fits
Spacecraft file(s): /scratch/kocevski/272477/ft2_4FGL_J0525.8-0052_daily_bin1144.fits
Exposure map: /scratch/kocevski/272477/expmap_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits
Exposure cube: /scratch/kocevski/272477/ltcube_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272477/Model_4FGL_J0525.8-0052_daily_bin1144.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) = 10753.574701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3306       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.615       1.0000         .10000E-03   10000.    
     5 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.448       1.0000         .10000E-03   10000.    
     7 'norm      '    15.012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    66.842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52913E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .82609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .84350       1.0000         .10000E-03   10000.    
    16 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7712       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92451       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=   10753.57     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1928 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .64146       -.14331E-06** at limit **
   2  Prefactor     .10000E-03    9.2691        .48462E-06** at limit **
   3  norm          2.3309        1.7761       -.30646E-07   -.24075E-03
   4  Prefactor     15.631        20.201       -.36402E-05    .85416E-04
   5  norm          .10000E-03    .19056        .13707E-06** at limit **
   6  Prefactor     19.439        22.789       -.12337E-05    .66589E-05
   7  norm          15.012        5.1384        .16586E-06   -.26626E-03
   8  Prefactor     .10000E-03    1.4194        .17175E-06** at limit **
   9  norm          66.850        48.026        .74146E-05   -.25249E-03
  10  Prefactor     .10011E-03    16.810       -.79522E-06** at limit **
  11  Prefactor     .10000E-03    4.0201       -.45995E-06** at limit **
  12  norm          .82499        1.0603       -.24290E-06   -.17090E-02
  13  Prefactor     5.1387        20.500       -.11925E-05    .56899E-05
  14  Prefactor     .10000E-03    20.402        .69378E-06** at limit **
  15  norm          .85271        2.5119       -.39038E-06   -.46018E-03
  16  norm          .10000E-03    10.360       -.13335E-07** at limit **
  17  norm          2.7708        5.5165       -.83334E-06   -.55714E-03
  18  Normalizat    1.1130        .25425       -.13868E-05    .55769E-04
  19  Prefactor     .92448        .58588E-01    .24620E-06    .23673E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33091
  Prefactor  = 15.6311
  norm       = 0.0001
  Prefactor  = 19.4389
  norm       = 15.0124
  Prefactor  = 0.0001
  norm       = 66.8498
  Prefactor  = 0.000100114
  Prefactor  = 0.0001
  norm       = 0.824987
  Prefactor  = 5.13871
  Prefactor  = 0.0001
  norm       = 0.852705
  norm       = 0.0001
  norm       = 2.77079
  Normalizat = 1.11302
  Prefactor  = 0.924477
 **********
 **   18 **HESSE 
 **********

 FCN=   10753.57     FROM HESSE     STATUS=OK           278 CALLS     2206 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64839        .81043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3309        1.7777        .11521E-03   -1.5403    
   4  Prefactor     15.631        20.035        .10136E-03   -1.4917    
   5  norm          .10000E-03    .25341        .85443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.439        22.788        .90823E-04   -1.4826    
   7  norm          15.012        5.0536        .10337E-03   -1.4933    
   8  Prefactor     .10000E-03    1.4305        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          66.850        46.188        .49091E-04   -1.4071    
  10  Prefactor     .10011E-03    132.92        .82139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .82499        .96566        .11179E-02   -1.5526    
  13  Prefactor     5.1387        19.841        .17740E-03   -1.5255    
  14  Prefactor     .10000E-03    20.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .85271        6.2786        .26350E-02   -1.5523    
  16  norm          .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7708        5.6818        .24448E-03   -1.5375    
  18  Normalizat    1.1130        .26547        .52978E-03   -.89335    
  19  Prefactor     .92448        .62984E-01    .13491E-03   -.95291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26853e-09
Minuit parameter uncertainties:
  1  2.31279e-06
  2  1.66111e-06
  3  1.77774
  4  20.0432
  5  5.92409e-06
  6  22.7981
  7  5.05376
  8  3.49011e-07
  9  46.2126
  10  0.00778569
  11  7.97776e-06
  12  0.965676
  13  19.8663
  14  4.19582e-05
  15  4.62805
  16  2.28055e-05
  17  5.68294
  18  0.265787
  19  0.0629894
Done.

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

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.000e-04  7.978e-06  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.245e-01  6.299e-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.113e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 81.467 -0.871
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272477/likelihoodResults_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.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) = 10753.574505
delta logL = -0.00117002289517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10753.5733353
delta logL = -3.13435521093e-07

Fit tolerance = 1e-08

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

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

 FCN=   10753.57     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2485        .90712E-02** at limit **
   2  Index         2.1204        6.0545        .25197       -.23426E-04
   3  Normalizat    1.1130        .23609        .11942        .34855E-04
   4  Prefactor     .92448        .55738E-01    .30530E-01   -.16517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12037
  Normalizat = 1.11302
  Prefactor  = 0.924477
 **********
 **   18 **HESSE 
 **********

 FCN=   10753.57     FROM HESSE     STATUS=OK            27 CALLS      231 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1204        6.0578        .10079E-01   -.61374    
   3  Normalizat    1.1130        .24815        .52978E-03   -.89335    
   4  Prefactor     .92448        .58834E-01    .13491E-03   -.95291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50667e-10
Minuit parameter uncertainties:
  1  7.71533e-06
  2  4.09143
  3  0.248406
  4  0.0588382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272477': 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) = 10753.5733349
delta logL = 1.29106410895e-07

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.000e-04  7.715e-06  1.000e-04  1.000e+04 ( 1.000e-13)
230        Index:  2.120e+00  4.091e+00  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.245e-01  5.884e-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.113e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 81.467 -0.871

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/272477/cmap_HighResolution_535852801_536112001_4FGL_J0525.8-0052_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-08-22 14:03:55.146858', job_id='272477', GAL2='0.92', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629666235.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1144' AND source_name='4FGL J0525.8-0052' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 14:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 272477: <4FGL_J0525.8-0052_daily_bin1144> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0525.8-0052_daily_bin1144 81.4666 -0.8709 535852801 536112001 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 :                                   642.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

