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


Performing analysis on: 4FGL_J0525.8-0052_daily_bin1493
RA = 81.4666, Dec = -0.8709
tmin = 626313601, tmax = 626572801
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='275542', job_status='RUN', time_executed='2021-08-22 14:01:37.308263', time_epoch_executed='1629666097.31' WHERE source_name='4FGL J0525.8-0052' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275542/ft1_4FGL_J0525.8-0052_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275542/ft1_4FGL_J0525.8-0052_daily_bin1493.fits outfile=/scratch/kocevski/275542/ft1_filteredMKT_4FGL_J0525.8-0052_daily_bin1493.fits ra=81.4666 dec=-0.8709 rad=12.0 tmin=626313601.0 tmax=626572801.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 7.31
user 4.16
sys 3.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits" evtable="EVENTS" scfile=/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits sctable="SC_DATA" outfile=/scratch/kocevski/275542/ltcube_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.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/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits
.....................!
real 17.81
user 13.83
sys 3.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/275542/ltcube_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.fits outfile=/scratch/kocevski/275542/expmap_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.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/275542/ltcube_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.fits
.....................!
real 197.13
user 186.00
sys 8.45

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/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits scfile=/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits outfile=/scratch/kocevski/275542/cmap_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.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 3.58
user 0.38
sys 3.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits scfile=/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits outfile=/scratch/kocevski/275542/cmap_HighResolution_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.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 3.69
user 0.38
sys 3.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/275542/ft2_4FGL_J0525.8-0052_daily_bin1493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/275542/Model_4FGL_J0525.8-0052_daily_bin1493.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/275542/ft1_filtered_4FGL_J0525.8-0052_daily_bin1493.fits.....................!
real 187.95
user 181.98
sys 5.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5022       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9164       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2365       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .93113       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.859       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0558       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9357       1.0000         .10000E-03   10000.    
    17 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3052       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88307       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=   8680.167     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1918 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5020        2.5780       -.26670E-06   -.23398E-03
   2  Prefactor     .10000E-03    10.567       -.16590E-06** at limit **
   3  norm          2.6915        2.4522        .78239E-06    .91253E-04
   4  Prefactor     .10000E-03    54.324       -.15295E-05** at limit **
   5  norm          .10000E-03    .22896       -.45612E-07** at limit **
   6  Prefactor     4.8915        50.900       -.52815E-04   -.38371E-05
   7  norm          2.4252        3.2878       -.37538E-06   -.46974E-03
   8  Prefactor     3.2361        5.5299       -.17312E-05   -.53774E-03
   9  norm          .10000E-03    19.413       -.13784E-04** at limit **
  10  Prefactor     .10000E-03    39.715        .47926E-05** at limit **
  11  Prefactor     .10000E-03    2.5231       -.77583E-08** at limit **
  12  norm          .93221        1.3588       -.78955E-07   -.13376E-02
  13  Prefactor     .10000E-03    18.230        .13063E-04** at limit **
  14  Prefactor     11.845        28.074       -.14968E-04   -.10423E-03
  15  norm          8.0561        4.6540       -.10575E-06   -.27637E-03
  16  norm          9.9364        17.012       -.47870E-06   -.25621E-04
  17  norm          .10000E-03    5.4964       -.90611E-07** at limit **
  18  Normalizat    1.3054        .28528        .70888E-05   -.14772E-04
  19  Prefactor     .88303        .63029E-01   -.14461E-06    .31383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.502
  Prefactor  = 0.0001
  norm       = 2.69153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.89149
  norm       = 2.42521
  Prefactor  = 3.23607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.93221
  Prefactor  = 0.000100001
  Prefactor  = 11.845
  norm       = 8.05608
  norm       = 9.93641
  norm       = 0.0001
  Normalizat = 1.30539
  Prefactor  = 0.883033
 **********
 **   18 **HESSE 
 **********

 FCN=   8680.167     FROM HESSE     STATUS=OK           270 CALLS     2188 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5020        2.5774        .14626E-03   -1.5392    
   2  Prefactor     .10000E-03    10.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6915        2.4419        .13080E-03   -1.5380    
   4  Prefactor     .10000E-03    55.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .32513        .84550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8915        50.631        .18140E-03   -1.5266    
   7  norm          2.4252        3.2072        .18667E-03   -1.5396    
   8  Prefactor     3.2361        5.5451        .22515E-03   -1.5348    
   9  norm          .10000E-03    19.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5280        .14452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .93221        1.3163        .12293E-03   -1.5515    
  13  Prefactor     .10000E-03    18.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.845        27.993        .11633E-03   -1.5019    
  15  norm          8.0561        4.6627        .14126E-03   -1.5140    
  16  norm          9.9364        17.007        .12712E-03   -1.5077    
  17  norm          .10000E-03    5.6222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3054        .30298        .50370E-03   -.83406    
  19  Prefactor     .88303        .67767E-01    .13662E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60462e-10
Minuit parameter uncertainties:
  1  2.57756
  2  4.77888e-06
  3  2.44201
  4  9.00027e-05
  5  2.25357e-06
  6  31.5086
  7  3.20747
  8  5.546
  9  9.9556e-05
  10  8.00752e-05
  11  2.02732e-06
  12  1.31631
  13  0.000289222
  14  28.0243
  15  4.66294
  16  17.0154
  17  2.18408e-05
  18  0.303389
  19  0.0677732
Done.

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

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.000e-04  2.027e-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:  8.830e-01  6.777e-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.305e+00  3.034e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275542/likelihoodResults_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.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) = 8680.16907647
delta logL = -0.00188237435214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8680.16719415
delta logL = -4.97220753459e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0794       1.0000          .0000       10.000    
     3 'Normalizat'    1.3054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88303       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8680.167     FROM MIGRAD    STATUS=FAILED        92 CALLS      248 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10494E-03    1.3747        .14646E-01** at limit **
   2  Index         1.7547        5.4467        .50000        .22410E-04
   3  Normalizat    1.3054        .55478E-02    .50370E-03   -.68163E-04
   4  Prefactor     .88303        .12767E-02    .13662E-03   -.73892E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8680.167     FROM SIMPLEX   STATUS=PROGRESS      87 CALLS      335 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    1.3747        .22210E-03** at limit **
   2  Index         1.7202        5.4467        .12830E-01    .22410E-04
   3  Normalizat    1.3053        .55478E-02    .28982E-04   -.68163E-04
   4  Prefactor     .88301        .12767E-02    .10225E-04   -.73892E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8680.167     FROM MIGRAD    STATUS=FAILED        76 CALLS      411 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    533.24        .31829E-03** at limit **
   2  Index         1.5478        7.9475        .50000       -.62578E-06
   3  Normalizat    1.3054        .14508        .40296E-05    .46270E-04
   4  Prefactor     .88303        .33311E-01    .10930E-05   -.16957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54781
  Normalizat = 1.30539
  Prefactor  = 0.883032
 **********
 **   18 **HESSE 
 **********

 FCN=   8680.167     FROM HESSE     STATUS=OK            27 CALLS      438 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7322        .63658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5478        7.8160        .50000       -.76210    
   3  Normalizat    1.3054        .28319        .80591E-06   -.83406    
   4  Prefactor     .88303        .65350E-01    .23064E-06   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98333e-10
Minuit parameter uncertainties:
  1  1.99647e-06
  2  146.594
  3  0.283529
  4  0.0653555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275542': 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): 1
logL (Free Index) = 8680.16719005
delta logL = 4.04900492867e-06

Extracting fit parameters...

4FGL J0525.8-0052
   Spectrum: PowerLaw
229    Prefactor:  1.000e-04  1.996e-06  1.000e-04  1.000e+04 ( 1.000e-13)
230        Index:  1.548e+00  1.466e+02  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:  8.830e-01  6.536e-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.305e+00  2.835e-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/275542/cmap_HighResolution_626313601_626572801_4FGL_J0525.8-0052_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-08-22 14:15:34.516373', job_id='275542', GAL2='0.88', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1629666934.52', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1493' AND source_name='4FGL J0525.8-0052' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 14:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 275542: <4FGL_J0525.8-0052_daily_bin1493> in cluster <slac> Done

Job <4FGL_J0525.8-0052_daily_bin1493> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 14:00:28 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 14:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 14:00:29 2021
Terminated at Sun Aug 22 14:15:35 2021
Results reported at Sun Aug 22 14:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0525.8-0052_daily_bin1493 81.4666 -0.8709 626313601 626572801 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 :                                   858.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

