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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1195
RA = 82.7364, Dec = 13.5402
tmin = 549072001, tmax = 549331201
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='374461', job_status='RUN', time_executed='2021-08-22 19:43:53.970827', time_epoch_executed='1629686633.97' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374461/ft1_4FGL_J0530.9+1332_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374461/ft1_4FGL_J0530.9+1332_daily_bin1195.fits outfile=/scratch/kocevski/374461/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1195.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=549072001.0 tmax=549331201.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.29
user 2.71
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374461/ft1_filtered_4FGL_J0530.9+1332_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/374461/ltcube_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.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/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits
.....................!
real 13.76
user 12.65
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374461/ft1_filtered_4FGL_J0530.9+1332_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/374461/ltcube_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.fits outfile=/scratch/kocevski/374461/expmap_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.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/374461/ltcube_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.fits
.....................!
real 190.97
user 185.64
sys 4.91

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/374461/ft1_filtered_4FGL_J0530.9+1332_daily_bin1195.fits scfile=/scratch/kocevski/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits outfile=/scratch/kocevski/374461/cmap_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.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.21
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374461/ft1_filtered_4FGL_J0530.9+1332_daily_bin1195.fits scfile=/scratch/kocevski/374461/ft2_4FGL_J0530.9+1332_daily_bin1195.fits outfile=/scratch/kocevski/374461/cmap_HighResolution_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.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.20
user 0.38
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13528E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11784E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28396E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12610E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15501E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0778       1.0000         .10000E-03   10000.    
    16 'norm      '    12.555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13145E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8557       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0360       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=   3538.106     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3051 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        547.13        .10012E-05** at limit **
   2  Prefactor     .10000E-03    188.98        .24771E-06** at limit **
   3  Prefactor     .10000E-03    222.69        .43699E-06** at limit **
   4  Prefactor     .10004E-03    2078.2       -.41079E-05** at limit **
   5  norm          .10000E-03    2.4056        .66183E-07** at limit **
   6  norm          .10000E-03    14.261        .11206E-07** at limit **
   7  Prefactor     .10000E-03    31.536       -.12951E-06** at limit **
   8  norm          .10000E-03    433.27        .47029E-08** at limit **
   9  Prefactor     .10000E-03    42.716       -.20233E-07** at limit **
  10  Prefactor     .10000E-03    396.22       -.16647E-06** at limit **
  11  norm          .10000E-03    15.298       -.28697E-07** at limit **
  12  Prefactor     .10000E-03    302.13        .30662E-06** at limit **
  13  norm          .10000E-03    14.948        .96185E-07** at limit **
  14  norm          .10002E-03    4.4472       -.16445E-05** at limit **
  15  Prefactor     1.0779        .51429       -.34971E-08    .47553E-03
  16  norm          12.552        11.712       -.10665E-08    .10589E-05
  17  Prefactor     7.4209        4.6808        .20954E-07    .25675E-03
  18  Prefactor     51.036        105.79        .10322E-04   -.62599E-04
  19  Prefactor     .10000E-03    148.53       -.36136E-05** at limit **
  20  Prefactor     .10000E-03    37.489        .19972E-06** at limit **
  21  Prefactor     2.8797        42.457       -.35814E-06    .30410E-04
  22  norm          .10000E-03    17.062       -.15696E-07** at limit **
  23  Prefactor     .10000E-03    8.9849       -.13751E-07** at limit **
  24  Normalizat    .10000E-01    .32764       -.13736E-04** at limit **
  25  Prefactor     1.0362        .72616E-01    .13435E-05    .34997E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 1.07791
  norm       = 12.5523
  Prefactor  = 7.42086
  Prefactor  = 51.0362
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.8797
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.03616
 **********
 **   18 **HESSE 
 **********

 FCN=   3538.106     FROM HESSE     STATUS=OK           415 CALLS     3466 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        546.40        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    188.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    222.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    2067.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.0984        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    433.62        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    396.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    302.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    26.175        .22169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0779        .55788        .20534E-04   -1.5500    
  16  norm          12.552        12.256        .11305E-03   -1.4999    
  17  Prefactor     7.4209        4.9472        .77468E-04   -1.5163    
  18  Prefactor     51.036        101.70        .56089E-04   -1.4278    
  19  Prefactor     .10000E-03    148.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8797        42.186        .24058E-03   -1.5369    
  22  norm          .10000E-03    17.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.9987        .17415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .51023        .19966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0362        .72840E-01    .13058E-03   -.91534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32864e-09
Minuit parameter uncertainties:
  1  0.00235336
  2  0.000337928
  3  0.000619552
  4  0.0196693
  5  1.39602e-05
  6  4.34223e-06
  7  2.69377e-05
  8  2.51668e-05
  9  1.65489e-05
  10  0.000389785
  11  1.31219e-05
  12  0.000408535
  13  2.3472e-05
  14  0.0014211
  15  0.557879
  16  12.2585
  17  4.94751
  18  102.047
  19  0.000674846
  20  6.88709e-06
  21  22.0623
  22  3.51728e-06
  23  8.76965e-06
  24  1.96253e-05
  25  0.0728469
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  2.347e-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:  1.036e+00  7.285e-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  1.963e-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: 5.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374461/likelihoodResults_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.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) = 3538.10620764
delta logL = -0.000327463668327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3538.10588159
delta logL = -1.40676274896e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5769       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0360       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=   3538.106     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    666.09        .18142E-01** at limit **
   2  alpha         2.0633        3.9093        .16471        .31889E-07
   3  Normalizat    .10000E-01    .47618E-01    .19967E-01** at limit **
   4  Prefactor     1.0362        .20778E-01    .13058E-03    .72745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 2.06328
  Normalizat = 0.01
  Prefactor  = 1.03616
 **********
 **   18 **HESSE 
 **********

 FCN=   3538.106     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.325        .23352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0633        3.7080        .65882E-02   -.17559    
   3  Normalizat    .10000E-01    .51040        .39934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0362        .68506E-01    .26116E-04   -.91534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40828e-10
Minuit parameter uncertainties:
  1  0.000562779
  2  798.338
  3  3.8861e-07
  4  0.0685116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374461': 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) = 3538.10587993
delta logL = 2.52362951869e-07

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  5.628e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.063e+00  7.983e+02  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.036e+00  6.851e-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  3.886e-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/374461/cmap_HighResolution_549072001_549331201_4FGL_J0530.9+1332_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-04', job_status='DONE', photon_flux_upper_limit='5.84e-07', time_completed='2021-08-22 19:54:15.487504', job_id='374461', GAL2='1.04', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629687255.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1195' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 19:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 374461: <4FGL_J0530.9+1332_daily_bin1195> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1195 82.7364 13.5402 549072001 549331201 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 :                                   628.54 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

