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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1215
RA = 82.7364, Dec = 13.5402
tmin = 554256001, tmax = 554515201
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='374492', job_status='RUN', time_executed='2021-08-22 19:41:01.973793', time_epoch_executed='1629686461.97' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374492/ft1_4FGL_J0530.9+1332_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374492/ft1_4FGL_J0530.9+1332_daily_bin1215.fits outfile=/scratch/kocevski/374492/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1215.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.69
user 3.81
sys 0.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/374492/ltcube_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.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/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits
.....................!
real 12.78
user 11.67
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/374492/ltcube_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits outfile=/scratch/kocevski/374492/expmap_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.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/374492/ltcube_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits
.....................!
real 192.36
user 186.76
sys 5.02

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/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits scfile=/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits outfile=/scratch/kocevski/374492/cmap_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.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 1.31
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits scfile=/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits outfile=/scratch/kocevski/374492/cmap_HighResolution_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.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 1.24
user 0.37
sys 0.81

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits', '/scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits', expMap='/scratch/kocevski/374492/expmap_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits', expCube='/scratch/kocevski/374492/ltcube_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374492/Model_4FGL_J0530.9+1332_daily_bin1215.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/374492/ft1_filtered_4FGL_J0530.9+1332_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/374492/ft2_4FGL_J0530.9+1332_daily_bin1215.fits
Exposure map: /scratch/kocevski/374492/expmap_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits
Exposure cube: /scratch/kocevski/374492/ltcube_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374492/Model_4FGL_J0530.9+1332_daily_bin1215.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 648.554237441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    114.32       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18714E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3523       1.0000         .10000E-03   10000.    
     6 'norm      '    .85180       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    755.93       1.0000         .10000E-03   10000.    
    11 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91788E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14798E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.603       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61704E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    60.160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20176E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36941E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40220E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10651E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   648.1126     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2916 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6832        .78383E-05** at limit **
   2  Prefactor     114.38        12.157        .13040E-05   -.53265E-02
   3  Prefactor     .10131E-03    557.48       -.53262E-04** at limit **
   4  Prefactor     .10169E-03    43.047       -.13147E-04** at limit **
   5  norm          1.3568        2.6740       -.35044E-05   -.66350E-04
   6  norm          .81395        5.3602       -.72211E-05    .21996E-03
   7  Prefactor     .10000E-03    18.390       -.26524E-05** at limit **
   8  norm          .10058E-03    25.262        .17834E-04** at limit **
   9  Prefactor     .10106E-03    16.014        .14267E-04** at limit **
  10  Prefactor     755.93        1.0005        .17163E-08   -.77916E-04
  11  norm          .11260E-03    70.822       -.39500E-05** at limit **
  12  Prefactor     .10199E-03    24.205        .24965E-05** at limit **
  13  norm          .14367E-03    134.88        .11219E-04** at limit **
  14  norm          15.596        10.177       -.86009E-06    .12944E-02
  15  Prefactor     .69459E-01    7.1413       -.73748E-05   -.40147E-05
  16  norm          59.946        38.187       -.57245E-05    .85689E-04
  17  Prefactor     9.8082        10.643        .22227E-05   -.16607E-02
  18  Prefactor     .27708E-03    82.940       -.92883E-05** at limit **
  19  Prefactor     .47809E-02    524.66       -.52576E-04    .12179E-02
  20  Prefactor     .30856E-03    167.13       -.84450E-05** at limit **
  21  Prefactor     .10004E-03    28.418        .44093E-05** at limit **
  22  norm          .10135E-03    30.496       -.32520E-05** at limit **
  23  Prefactor     .13509E-03    80.643        .83801E-05** at limit **
  24  Normalizat    .10000E-01    .81922       -.19660E-04** at limit **
  25  Prefactor     .67891        .12666        .25818E-05    .11854E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 114.377
  Prefactor  = 0.000101305
  Prefactor  = 0.000101687
  norm       = 1.35685
  norm       = 0.813953
  Prefactor  = 0.0001
  norm       = 0.000100581
  Prefactor  = 0.000101057
  Prefactor  = 755.929
  norm       = 0.000112597
  Prefactor  = 0.000101994
  norm       = 0.000143666
  norm       = 15.5959
  Prefactor  = 0.0694585
  norm       = 59.946
  Prefactor  = 9.80815
  Prefactor  = 0.000277078
  Prefactor  = 0.00478091
  Prefactor  = 0.000308556
  Prefactor  = 0.00010004
  norm       = 0.00010135
  Prefactor  = 0.00013509
  Normalizat = 0.01
  Prefactor  = 0.678906
 **********
 **   18 **HESSE 
 **********

 FCN=   648.1126     FROM HESSE     STATUS=OK           475 CALLS     3391 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     114.38        209.16        .94069E-03   -1.3565    
   3  Prefactor     .10131E-03    1420.6        .91162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10169E-03    45.873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3568        3.0780        .94030E-02   -1.5475    
   6  norm          .81395        33.149        .71659E-01   -1.5528    
   7  Prefactor     .10000E-03    18.383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10058E-03    38.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10106E-03    36.491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     755.93        1102.7        .37829E-03   -1.0137    
  11  norm          .11260E-03    76.767        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10199E-03    283.96        .10409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .14367E-03    160.47        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.596        10.187        .25349E-02   -1.4918    
  15  Prefactor     .69459E-01    8.6875        .16884E-01   -1.5655    
  16  norm          59.946        95.347        .12932E-02   -1.4158    
  17  Prefactor     9.8082        14.064        .31916E-02   -1.5082    
  18  Prefactor     .27708E-03    493.40        .10111E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .47809E-02    6264.5        .92062E-02   -1.5694    
  20  Prefactor     .30856E-03    400.91        .97438E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    28.447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10135E-03    33.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13509E-03    96.684        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .74184        .32140       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .67891        .13422        .26602E-01   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56771e-06
Minuit parameter uncertainties:
  1  3.05022e-05
  2  210.529
  3  0.0883035
  4  0.0176082
  5  3.07841
  6  10.3942
  7  1.78281e-05
  8  0.0095095
  9  0.0124282
  10  1137.48
  11  0.0622742
  12  0.0478207
  13  0.167865
  14  10.1885
  15  1.55271
  16  95.5915
  17  14.0685
  18  0.596143
  19  7.21974
  20  0.582251
  21  0.00212896
  22  0.0135237
  23  0.116681
  24  7.36387e-07
  25  0.134279
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.437e-04  1.679e-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:  6.789e-01  1.343e-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:  1.000e-02  7.364e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/374492/likelihoodResults_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.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) = 648.112648521
delta logL = -3.40704095834e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 648.112617633
delta logL = -3.18202853578e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10867E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1938       1.0000          .0000       5.0000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67891       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=   648.1126     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      288 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6462.5        .18142E-01** at limit **
   2  alpha         2.1953        3.6953        .17343        .15372E-07
   3  Normalizat    .10000E-01    .27424E-01    .12594E-01** at limit **
   4  Prefactor     .67890        .21479E-01    .11758E-03   -.50841E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19535
  Normalizat = 0.01
  Prefactor  = 0.678903
 **********
 **   18 **HESSE 
 **********

 FCN=   648.1126     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    241.27        .35737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1953        3.2296        .69374E-02   -.12216    
   3  Normalizat    .10000E-01    .81872        .25188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67890        .11889        .23515E-04   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63455e-10
Minuit parameter uncertainties:
  1  0.000442609
  2  1261.37
  3  7.23143e-06
  4  0.118931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374492': 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) = 648.112614247
delta logL = 2.03720674108e-07

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  4.426e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.195e+00  1.261e+03  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:  6.789e-01  1.189e-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:  1.000e-02  7.231e-06  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/374492/cmap_HighResolution_554256001_554515201_4FGL_J0530.9+1332_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-04', job_status='DONE', photon_flux_upper_limit='2.41e-06', time_completed='2021-08-22 19:47:30.025309', job_id='374492', GAL2='0.68', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629686850.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1215' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 19:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 374492: <4FGL_J0530.9+1332_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0530.9+1332_daily_bin1215> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 19:40:36 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 19:40:38 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:40:38 2021
Terminated at Sun Aug 22 19:47:30 2021
Results reported at Sun Aug 22 19:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1215 82.7364 13.5402 554256001 554515201 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 :                                   391.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   412 sec.
    Turnaround time :                            414 sec.

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

