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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1390
RA = 82.7364, Dec = 13.5402
tmin = 599616001, tmax = 599875201
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='376045', job_status='RUN', time_executed='2021-08-22 19:51:39.335998', time_epoch_executed='1629687099.34' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376045/ft1_4FGL_J0530.9+1332_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376045/ft1_4FGL_J0530.9+1332_daily_bin1390.fits outfile=/scratch/kocevski/376045/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1390.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=599616001.0 tmax=599875201.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 11.65
user 2.31
sys 9.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.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/376045/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 10.75
user 0.35
sys 10.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/376045/ltcube_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.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/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits
.....................!
real 22.94
user 12.38
sys 10.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/376045/ltcube_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits outfile=/scratch/kocevski/376045/expmap_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.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/376045/ltcube_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits
.....................!
real 203.92
user 187.30
sys 16.20

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
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 166 point sources and 4 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 J0530.9+1332 @ 82.7364 13.5402

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits outfile=/scratch/kocevski/376045/cmap_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.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=82.7364 yref=13.5402 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 9.78
user 0.37
sys 9.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits outfile=/scratch/kocevski/376045/cmap_HighResolution_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.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=82.7364 yref=13.5402 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 9.45
user 0.38
sys 9.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376045/Model_4FGL_J0530.9+1332_daily_bin1390.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 IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits.....................!
real 48.54
user 35.22
sys 13.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits', '/scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits', expMap='/scratch/kocevski/376045/expmap_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits', expCube='/scratch/kocevski/376045/ltcube_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/376045/Model_4FGL_J0530.9+1332_daily_bin1390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0530.9+1332'

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  4.749e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/376045/ft1_filtered_4FGL_J0530.9+1332_daily_bin1390.fits
Spacecraft file(s): /scratch/kocevski/376045/ft2_4FGL_J0530.9+1332_daily_bin1390.fits
Exposure map: /scratch/kocevski/376045/expmap_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits
Exposure cube: /scratch/kocevski/376045/ltcube_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/376045/Model_4FGL_J0530.9+1332_daily_bin1390.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 976.219901868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 973.63780366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18341E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38444E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39456E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.074       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .53320E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12519E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80492E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    16.952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33874       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1691       1.0000         .10000E-03   10000.    
    14 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2990       1.0000         .10000E-03   10000.    
    16 'norm      '    .34693E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .32607E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7669       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55664       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   973.6187     FROM MIGRAD    STATUS=CONVERGED    394 CALLS      873 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8608        .32368E-01** at limit **
   2  Prefactor     .10000E-03    41.956        .97716E-02** at limit **
   3  Prefactor     .10000E-03    39.513        .92185E-02** at limit **
   4  Prefactor     56.227        56.200        .13392E-02    .58943E-03
   5  norm          .10000E-03    .68671        .90712E-02** at limit **
   6  norm          .10000E-03    4.6809        .10563E-01** at limit **
   7  Prefactor     .10000E-03    7.5909        .90712E-02** at limit **
   8  norm          .10000E-03    12.278        .90712E-02** at limit **
   9  Prefactor     7.9516        43.168        .35653E-02    .55845E-02
  10  Prefactor     .10000E-03    296.69        .92332E-02** at limit **
  11  norm          16.931        25.298        .24319E-02    .34516E-02
  12  Prefactor     .10000E-03    197.77        .10594E-01** at limit **
  13  norm          .10000E-03    696.31        .56915E-02** at limit **
  14  norm          .10000E-03    4.6999        .90712E-02** at limit **
  15  Prefactor     1.2935        .86012        .52054E-02    .45618    
  16  norm          .10000E-03    46.881        .91951E-02** at limit **
  17  Prefactor     .10000E-03    7.6327        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6272.3        .15772E-02** at limit **
  19  Prefactor     95.229        233.73        .16776E-02    .12530E-03
  20  Prefactor     35.183        618.11        .36289E-02    .16868E-03
  21  Prefactor     .10000E-03    35.450        .10436E-01** at limit **
  22  norm          .10000E-03    77.958        .91848E-02** at limit **
  23  Prefactor     1.7669        1.0470         .0000         .0000    
  24  Normalizat    .54664        .88421       -.66787E-05    .12349E-04
  25  Prefactor     1.0304        1.2217        .24743E-06    .57874E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.227
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.95158
  Prefactor  = 0.0001
  norm       = 16.9313
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.29346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.2294
  Prefactor  = 35.1828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.76693
  Normalizat = 0.546639
  Prefactor  = 1.03037
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   973.6187     FROM HESSE     STATUS=FAILED        53 CALLS      926 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.8608        .32368E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.956        .97716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.513        .92185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.227        56.200        .13392E-02   -1.4207    
   5  norm          .10000E-03    .68671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6809        .10563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9516        43.168        .35653E-02   -1.5144    
  10  Prefactor     .10000E-03    296.69        .92332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.931        25.298        .24319E-02   -1.4885    
  12  Prefactor     .10000E-03    197.77        .10594E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    696.31        .56915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2935        .86012        .52054E-02   -1.5481    
  16  norm          .10000E-03    46.881        .91951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6272.3        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     95.229        233.73        .16776E-02   -1.3753    
  20  Prefactor     35.183        618.11        .36289E-02   -1.4521    
  21  Prefactor     .10000E-03    35.450        .10436E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    77.958        .91848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     572.94        571.01         .0000       -1.5442    
  24  Normalizat    .54664        .88421       -.66787E-05   -1.1030    
  25  Prefactor     1.0304        1.2217        .24743E-06   -.91724    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.20662e-10
Minuit parameter uncertainties:
  1  4.61554e-06
  2  2.8021e-05
  3  3.81283e-05
  4  56.2528
  5  6.93495e-08
  6  4.01524e-07
  7  1.41527e-06
  8  3.48978e-06
  9  37.0955
  10  0.000126445
  11  25.3142
  12  0.00032167
  13  0.000479287
  14  6.60857e-07
  15  0.860128
  16  4.38069e-06
  17  7.50897e-07
  18  0.000323433
  19  236.042
  20  298.612
  21  2.07535e-05
  22  4.25598e-06
  23  1.04701
  24  0.908656
  25  1.25727
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 973.61870672

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  4.793e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.030e+00  1.257e+00  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.466e-01  9.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 1.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376045/likelihoodResults_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.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) = 973.618713309
delta logL = -6.58952433241e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 973.618713308
delta logL = -6.5883436946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5845       1.0000          .0000       5.0000    
     3 'Normalizat'    .54664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   973.6148     FROM MIGRAD    STATUS=FAILED       215 CALLS      357 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1133        8953.7        .82697E-02    .27097E-03
   2  alpha         2.0262        3.4738        .16473        .12315E-05
   3  Normalizat    .56271        1.6288        .91311E-03   -.13213E-05
   4  Prefactor     1.0238        .57565        .14462E-03   -.63183E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   973.6148     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      442 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1133        8953.7        .17077E-02   -1.5174    
   2  alpha         2.0262        3.4738        .22106E-02   -.19068    
   3  Normalizat    .56271        1.6288        .84544E-03   -1.0959    
   4  Prefactor     1.0238        .57565        .15040E-03   -.91939    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   973.6148     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      477 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1133        241.16        .16539E-02   -.12287E-05
   2  alpha         2.0262        3.5130        .41577E-02   -.50312E-06
   3  Normalizat    .56271        1.0646        .36525E-04   -.13306E-05
   4  Prefactor     1.0238        .24589        .57849E-05   -.63379E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.11335
  alpha      = 2.02619
  Normalizat = 0.562708
  Prefactor  = 1.02385
 **********
 **   18 **HESSE 
 **********

 FCN=   973.6148     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1133        239.18        .66158E-04   -1.5174    
   2  alpha         2.0262        3.5131        .16631E-03   -.19068    
   3  Normalizat    .56271        1.0644        .73049E-05   -1.0959    
   4  Prefactor     1.0238        .24570        .11570E-05   -.91939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91649e-13
Minuit parameter uncertainties:
  1  82.8565
  2  3.40748
  3  1.10732
  4  0.245972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376045': 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) = 973.61483047
delta logL = 0.00387624948451

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  7.113e+00  8.286e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.026e+00  3.407e+00  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.024e+00  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.627e-01  1.107e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 82.736 13.540

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/376045/cmap_HighResolution_599616001_599875201_4FGL_J0530.9+1332_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-04', job_status='DONE', photon_flux_upper_limit='1.58e-06', time_completed='2021-08-22 19:59:58.592129', job_id='376045', GAL2='1.02', fit_tolerance='1e-08', EG2='0.56', EG='0.55', time_epoch_completed='1629687598.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.03', dlogl='3.88e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1390' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 19:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 376045: <4FGL_J0530.9+1332_daily_bin1390> in cluster <slac> Done

Job <4FGL_J0530.9+1332_daily_bin1390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 19:45:30 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 19:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 19:45:31 2021
Terminated at Sun Aug 22 20:00:01 2021
Results reported at Sun Aug 22 20:00:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1390 82.7364 13.5402 599616001 599875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0530.9+1332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

