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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1494
RA = 82.7364, Dec = 13.5402
tmin = 626572801, tmax = 626832001
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='377391', job_status='RUN', time_executed='2021-08-22 19:54:10.236902', time_epoch_executed='1629687250.24' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377391

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377391/ft1_4FGL_J0530.9+1332_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377391/ft1_4FGL_J0530.9+1332_daily_bin1494.fits outfile=/scratch/kocevski/377391/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1494.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=626572801.0 tmax=626832001.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.68
user 2.73
sys 4.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.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/377391/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1494.fits evtable="EVENTS" outfile="/scratch/kocevski/377391/ft1_filtered_4FGL_J0530.9+1332_daily_bin1494.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 5.59
user 0.33
sys 5.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377391/ft1_filtered_4FGL_J0530.9+1332_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/377391/ltcube_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.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/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits
.....................!
real 17.67
user 12.02
sys 5.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377391/ft1_filtered_4FGL_J0530.9+1332_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/377391/ltcube_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.fits outfile=/scratch/kocevski/377391/expmap_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.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/377391/ltcube_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.fits
.....................!
real 196.53
user 185.22
sys 10.77

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/377391/ft1_filtered_4FGL_J0530.9+1332_daily_bin1494.fits scfile=/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits outfile=/scratch/kocevski/377391/cmap_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.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.11
user 0.37
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377391/ft1_filtered_4FGL_J0530.9+1332_daily_bin1494.fits scfile=/scratch/kocevski/377391/ft2_4FGL_J0530.9+1332_daily_bin1494.fits outfile=/scratch/kocevski/377391/cmap_HighResolution_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.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 5.14
user 0.39
sys 4.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11251E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .78754E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.998       1.0000         .10000E-03   10000.    
    14 'norm      '    .77250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4288       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23834E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.769       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61887       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97642       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=   4758.163     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2877 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    39.329       -.51903E-05** at limit **
   2  Prefactor     .10000E-03    140.02       -.28943E-04** at limit **
   3  Prefactor     .10000E-03    51.899       -.17881E-04** at limit **
   4  Prefactor     .10000E-03    19.756       -.53003E-05** at limit **
   5  norm          .10000E-03    .85940        .94170E-08** at limit **
   6  norm          .10000E-03    6.5494       -.11784E-06** at limit **
   7  Prefactor     10.910        13.822       -.91741E-06   -.52477E-03
   8  norm          .10000E-03    10.924       -.52293E-06** at limit **
   9  Prefactor     .10000E-03    11.687        .17545E-05** at limit **
  10  Prefactor     .10000E-03    80.261        .40976E-04** at limit **
  11  norm          .10002E-03    9.0651       -.42122E-06** at limit **
  12  Prefactor     .10000E-03    21.532        .12258E-05** at limit **
  13  norm          20.991        20.820        .34625E-06   -.16397E-05
  14  norm          .77094        4.4025       -.19119E-05   -.10958E-02
  15  Prefactor     1.4295        .28839        .11777E-07    .28178E-02
  16  norm          .10000E-03    3.2260       -.22614E-08** at limit **
  17  Prefactor     .10001E-03    1.1321       -.24700E-06** at limit **
  18  Prefactor     .10000E-03    35.889        .10116E-04** at limit **
  19  Prefactor     .10000E-03    56.753       -.98127E-05** at limit **
  20  Prefactor     .10000E-03    16.235        .40924E-05** at limit **
  21  Prefactor     31.768        15.646       -.18884E-06    .16494E-04
  22  norm          .10000E-03    13.406       -.17874E-05** at limit **
  23  Prefactor     .10000E-03    36.951        .33996E-05** at limit **
  24  Normalizat    .62072        .96879        .55494E-05    .24318E-04
  25  Prefactor     .97623        .11496       -.20833E-06    .15180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  norm       = 20.9915
  norm       = 0.770945
  Prefactor  = 1.42955
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7681
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.620719
  Prefactor  = 0.976235
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.163     FROM HESSE     STATUS=OK           421 CALLS     3298 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    139.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .86261        .62420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5630        .17240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.910        13.771        .60620E-03   -1.5047    
   8  norm          .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    72.056        .40146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.991        20.708        .87407E-04   -1.4791    
  14  norm          .77094        4.2444        .25457E-02   -1.5532    
  15  Prefactor     1.4295        .25749        .14195E-04   -1.5469    
  16  norm          .10000E-03    3.2318        .12088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.013        .12363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.768        15.487        .71089E-04   -1.4580    
  22  norm          .10000E-03    13.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62072        .75524        .12831E-02   -1.0711    
  25  Prefactor     .97623        .95088E-01    .13409E-03   -.93526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91292e-09
Minuit parameter uncertainties:
  1  6.78532e-05
  2  3.52759e-05
  3  7.734e-06
  4  3.74019e-06
  5  3.87899e-07
  6  2.57444e-06
  7  13.7751
  8  1.16391e-06
  9  3.84894e-06
  10  3.62495e-06
  11  0.00224624
  12  5.04505e-07
  13  20.7155
  14  3.61801
  15  0.257495
  16  7.64905e-07
  17  0.000754691
  18  4.24025e-05
  19  5.3281e-05
  20  4.2239e-07
  21  15.4887
  22  4.71971e-07
  23  5.03989e-05
  24  0.768368
  25  0.0951047
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  2.099e+01  2.072e+01  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.762e-01  9.510e-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:  6.207e-01  7.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 82.736 13.540
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 1.82e-07
Energy Flux (Fixed Index): 6.03e-05 +/- 5.95e-05

TS (Fixed Index): 1.57
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 5.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377391/likelihoodResults_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.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): 0
logL (Free Index) = 4757.86944482
delta logL = 0.29346381753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4757.85900262
delta logL = 0.303906022629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.347       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3983       1.0000          .0000       5.0000    
     3 'Normalizat'    .50743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98380       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=   4757.859     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      298 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.349        20.810        .11893E-03   -.56113E-04
   2  alpha         3.3986        1.2474        .13718E-01    .15902E-03
   3  Normalizat    .50728        .73682        .13975E-02   -.73483E-04
   4  Prefactor     .98377        .95602E-01    .13352E-03   -.29700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.349
  alpha      = 3.39857
  Normalizat = 0.507282
  Prefactor  = 0.983765
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.859     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.349        17.483        .47571E-05   -1.5034    
   2  alpha         3.3986        1.0636        .27437E-02    .36766    
   3  Normalizat    .50728        .73300        .55901E-04   -1.1208    
   4  Prefactor     .98377        .95180E-01    .26704E-04   -.93273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44638e-10
Minuit parameter uncertainties:
  1  17.4908
  2  1.10439
  3  0.747665
  4  0.0951962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377391': 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) = 4757.8590021
delta logL = 0.303906535391

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.135e+01  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  3.399e+00  1.104e+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:  9.838e-01  9.520e-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:  5.073e-01  7.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 82.736 13.540
Photon Index (Free Index): 3.40 +/- 1.10
Photon Flux (Free Index): 3.34e-07 +/- 3.08e-07
Energy Flux (Free Index): 6.98e-05 +/- 5.58e-05

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/377391/cmap_HighResolution_626572801_626832001_4FGL_J0530.9+1332_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-04', comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='6.98e-05', photon_flux_error='1.82e-07', dlogl='3.04e-01', energy_flux='6.03e-05', photon_flux2='3.34e-07', job_status='DONE', time_completed='2021-08-22 20:07:00.873542', photon_index_error2='1.10', photon_index2='3.40', ts='1.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.87e-07', energy_flux_error2='5.58e-05', EG='0.62', time_epoch_completed='1629688020.87', return_code='0', job_id='377391', GAL2='0.98', EG2='0.51', return_code2='0', energy_flux_error='5.95e-05', photon_flux_error2='3.08e-07', ts2='2.24', photon_index='2.58' WHERE bin_id='1494' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 20:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 377391: <4FGL_J0530.9+1332_daily_bin1494> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1494 82.7364 13.5402 626572801 626832001 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

