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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1444
RA = 82.7364, Dec = 13.5402
tmin = 613612801, tmax = 613872001
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='377313', job_status='RUN', time_executed='2021-08-22 19:56:00.183966', time_epoch_executed='1629687360.18' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377313

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377313/ft1_4FGL_J0530.9+1332_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377313/ft1_4FGL_J0530.9+1332_daily_bin1444.fits outfile=/scratch/kocevski/377313/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1444.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=613612801.0 tmax=613872001.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 8.20
user 2.33
sys 5.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.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/377313/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.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 6.18
user 0.34
sys 5.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/377313/ltcube_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.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/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits
.....................!
real 19.39
user 12.64
sys 6.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/377313/ltcube_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits outfile=/scratch/kocevski/377313/expmap_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.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/377313/ltcube_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits
.....................!
real 196.97
user 184.91
sys 11.57

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/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits outfile=/scratch/kocevski/377313/cmap_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.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 5.47
user 0.38
sys 5.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits outfile=/scratch/kocevski/377313/cmap_HighResolution_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.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 6.68
user 0.39
sys 5.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377313/Model_4FGL_J0530.9+1332_daily_bin1444.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/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits......................!
real 78.05
user 66.80
sys 8.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits', '/scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits', expMap='/scratch/kocevski/377313/expmap_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits', expCube='/scratch/kocevski/377313/ltcube_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377313/Model_4FGL_J0530.9+1332_daily_bin1444.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/377313/ft1_filtered_4FGL_J0530.9+1332_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/377313/ft2_4FGL_J0530.9+1332_daily_bin1444.fits
Exposure map: /scratch/kocevski/377313/expmap_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits
Exposure cube: /scratch/kocevski/377313/ltcube_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377313/Model_4FGL_J0530.9+1332_daily_bin1444.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) = 2352.02182113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    143.66       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.527       1.0000         .10000E-03   10000.    
     8 'norm      '    .11151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18143E-03   1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10555E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12886E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16476E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    44.232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96539       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.

 FCN=   2351.774     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     4250 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6725       -.13967E-07** at limit **
   2  Prefactor     68.838        191.42        .89834E-05    .13144E-04
   3  Prefactor     143.68        200.55       -.11523E-04    .55363E-04
   4  Prefactor     .10000E-03    73.243        .66892E-06** at limit **
   5  norm          .10000E-03    .98524       -.33114E-06** at limit **
   6  norm          2.8004        8.4243        .12277E-04   -.10313E-04
   7  Prefactor     10.521        24.130       -.21739E-07    .61690E-04
   8  norm          .10000E-03    137.08        .53384E-09** at limit **
   9  Prefactor     .10000E-03    55.669       -.13680E-06** at limit **
  10  Prefactor     .10013E-03    893.61       -.70917E-05** at limit **
  11  norm         10000.0        9975.8        .29989E-05** at limit **
  12  Prefactor    10000.0        5025.0        .11335E-04** at limit **
  13  norm          .10000E-03    25.635        .14056E-06** at limit **
  14  norm          2.6822        6.2917        .55590E-06    .18894E-03
  15  Prefactor     .10000E-03    76.841        .18634E-06** at limit **
  16  norm          .10059E-03    2267.9       -.15416E-04** at limit **
  17  Prefactor     .10013E-03    891.25       -.70953E-05** at limit **
  18  Prefactor     32.720        147.17        .70981E-05    .35344E-04
  19  Prefactor     .10002E-03    299.10        .59269E-05** at limit **
  20  Prefactor     .10000E-03    144.13        .45922E-06** at limit **
  21  Prefactor     .10000E-03    13.375        .46010E-07** at limit **
  22  norm          44.228        48.955        .43807E-06    .65210E-04
  23  Prefactor     .10000E-03    95.910       -.15057E-05** at limit **
  24  Normalizat    .10000E-01    .48943       -.12035E-04** at limit **
  25  Prefactor     .96538        .10059       -.23663E-06    .62924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 68.8384
  Prefactor  = 143.681
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.80038
  Prefactor  = 10.5208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100127
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 2.6822
  Prefactor  = 0.0001
  norm       = 0.000100594
  Prefactor  = 0.000100125
  Prefactor  = 32.7197
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 44.2283
  Prefactor  = 0.000100005
  Normalizat = 0.01
  Prefactor  = 0.965379
 **********
 **   18 **HESSE 
 **********

 FCN=   2351.774     FROM HESSE     STATUS=OK           409 CALLS     4659 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6762        .90765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.838        191.34        .48363E-04   -1.4047    
   3  Prefactor     143.68        197.77        .33615E-04   -1.3305    
   4  Prefactor     .10000E-03    73.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .99926        .46834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8004        8.3634        .11206E-02   -1.5373    
   7  Prefactor     10.521        24.001        .12349E-03   -1.5059    
   8  norm          .10000E-03    137.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10013E-03    895.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        9975.8        .21440E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        5025.0        .19951E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    25.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6822        6.1053        .13610E-03   -1.5380    
  15  Prefactor     .10000E-03    76.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10059E-03    2276.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    893.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.720        139.87        .70089E-04   -1.4563    
  19  Prefactor     .10002E-03    298.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    144.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.376        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          44.228        49.093        .60282E-04   -1.4377    
  23  Prefactor     .10000E-03    96.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .76912        .17571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .96538        .90643E-01    .13200E-03   -.93893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36623e-09
Minuit parameter uncertainties:
  1  1.89643e-06
  2  193.088
  3  198.69
  4  0.00059156
  5  1.86656e-05
  6  8.3669
  7  24.0229
  8  1.95388e-06
  9  0.000112361
  10  0.0216397
  11  0.045485
  12  0.363904
  13  1.89423e-05
  14  6.10673
  15  0.000187282
  16  0.0766605
  17  0.0215017
  18  135.84
  19  0.00463099
  20  0.000535416
  21  2.92833e-06
  22  49.1383
  23  0.00135242
  24  2.43895e-05
  25  0.0906569
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  1.894e-05  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:  9.654e-01  9.066e-02  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:  1.000e-02  2.439e-05  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.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377313/likelihoodResults_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.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) = 2351.77435471
delta logL = -0.00019166325319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2351.77417184
delta logL = -8.79041454027e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1731       1.0000          .0000       5.0000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96538       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.

 FCN=   2351.774     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      289 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    506.53        .14366E-01** at limit **
   2  alpha         2.0959        2.8932        .50000       -.90949E-10
   3  Normalizat    .10000E-01    .30832E-01    .17558E-01** at limit **
   4  Prefactor     .96538        .16284E-01    .13200E-03    .13949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09594
  Normalizat = 0.01
  Prefactor  = 0.965378
 **********
 **   18 **HESSE 
 **********

 FCN=   2351.774     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      316 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7188.8        .24758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0959        3.5341        .20000       -.16234    
   3  Normalizat    .10000E-01    .48012        .35116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96538        .64684E-01    .26401E-04   -.93893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03466e-11
Minuit parameter uncertainties:
  1  1.76935e-05
  2  13738.1
  3  5.1425e-07
  4  0.0646889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377313': 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): 102
logL (Free Index) = 2351.77416293
delta logL = 1.19428477774e-07

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  1.769e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.096e+00  1.374e+04  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:  9.654e-01  6.469e-02  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:  1.000e-02  5.143e-07  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/377313/cmap_HighResolution_613612801_613872001_4FGL_J0530.9+1332_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-04', job_status='DONE', photon_flux_upper_limit='1.11e-06', time_completed='2021-08-22 20:06:05.032084', job_id='377313', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629687965.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1444' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 20:06:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 377313: <4FGL_J0530.9+1332_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0530.9+1332_daily_bin1444> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 19:50:25 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 19:50:26 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:50:26 2021
Terminated at Sun Aug 22 20:06:06 2021
Results reported at Sun Aug 22 20:06:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1444 82.7364 13.5402 613612801 613872001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

