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


Performing analysis on: 4FGL_J0530.9+1332_monthly_bin158
RA = 82.7364, Dec = 13.5402
tmin = 646531201, tmax = 649123201
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='454083', job_status='RUN', time_executed='2021-10-14 13:10:28.049075', time_epoch_executed='1634242228.05' WHERE source_name='4FGL J0530.9+1332' and cadence='monthly' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454083

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454083/ft1_4FGL_J0530.9+1332_monthly_bin158.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454083/ft1_4FGL_J0530.9+1332_monthly_bin158.fits outfile=/scratch/kocevski/454083/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin158.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=646531201.0 tmax=649123201.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 30.05
user 29.26
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.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/454083/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/454083/ft1_filtered_4FGL_J0530.9+1332_monthly_bin158.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 0.86
user 0.65
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454083/ft1_filtered_4FGL_J0530.9+1332_monthly_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/454083/ltcube_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.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/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits
.....................!
real 111.50
user 110.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454083/ft1_filtered_4FGL_J0530.9+1332_monthly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/454083/ltcube_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.fits outfile=/scratch/kocevski/454083/expmap_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.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/454083/ltcube_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.fits
.....................!
real 193.69
user 187.96
sys 5.23

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/454083/ft1_filtered_4FGL_J0530.9+1332_monthly_bin158.fits scfile=/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits outfile=/scratch/kocevski/454083/cmap_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.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 0.88
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454083/ft1_filtered_4FGL_J0530.9+1332_monthly_bin158.fits scfile=/scratch/kocevski/454083/ft2_4FGL_J0530.9+1332_monthly_bin158.fits outfile=/scratch/kocevski/454083/cmap_HighResolution_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.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 0.83
user 0.65
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2664       1.0000         .10000E-03   10000.    
     5 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4014       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34875E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7898       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4830       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42563E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5833       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5681       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0227       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   247888.2     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3118 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5894        .60899         .0000        .17895E-01
   2  Prefactor     6.6770        6.0863         .0000        .50905E-03
   3  Prefactor     15.943        7.9038         .0000        .35300E-03
   4  Prefactor     1.2660        1.6021         .0000        .96465E-02
   5  norm          .10000E-03    .17847E-01     .0000    ** at limit **
   6  norm          6.4013        1.1030         .0000        .53985E-01
   7  Prefactor     .10000E-03    .13364         .0000    ** at limit **
   8  norm          1.0108        1.0713         .0000        .41029E-01
   9  Prefactor     2.0097        1.0436         .0000        .15448E-03
  10  Prefactor     .10003E-03    2.8199         .0000    ** at limit **
  11  norm          4.7897        .86975         .0000        .14077    
  12  Prefactor     .10000E-03    1.2769         .0000    ** at limit **
  13  norm          .10000E-03    .38341         .0000    ** at limit **
  14  norm          1.0060        .32388         .0000        .25997E-01
  15  Prefactor     1.4830        .46196E-01     .0000        .22635E-01
  16  norm          3.1143        .82432         .0000        .73221E-02
  17  Prefactor     4.3896        .36382         .0000        .14064E-01
  18  Prefactor     .10000E-03    1.5886         .0000    ** at limit **
  19  Prefactor     2.5797        8.1394         .0000        .86731E-03
  20  Prefactor     .10000E-03    1.7167         .0000    ** at limit **
  21  Prefactor     .10000E-03    .13091         .0000    ** at limit **
  22  norm          .10000E-03    2.0290         .0000    ** at limit **
  23  Prefactor     4.5680        3.1486         .0000        .16431E-02
  24  Normalizat    1.0463        .10576         .0000        .12570E-02
  25  Prefactor     1.0228        .14450E-01     .0000        .99473E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58937
  Prefactor  = 6.677
  Prefactor  = 15.9429
  Prefactor  = 1.26598
  norm       = 0.0001
  norm       = 6.40134
  Prefactor  = 0.0001
  norm       = 1.01082
  Prefactor  = 2.00971
  Prefactor  = 0.000100026
  norm       = 4.78969
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.00601
  Prefactor  = 1.48298
  norm       = 3.1143
  Prefactor  = 4.38956
  Prefactor  = 0.0001
  Prefactor  = 2.5797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.56803
  Normalizat = 1.04626
  Prefactor  = 1.02276
 **********
 **   18 **HESSE 
 **********

 FCN=   247888.2     FROM HESSE     STATUS=OK           467 CALLS     3585 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5894        .60498        .17865E-03   -1.5386    
   2  Prefactor     6.6770        6.0667        .15534E-03   -1.5191    
   3  Prefactor     15.943        7.7026        .10030E-03   -1.4909    
   4  Prefactor     1.2660        1.5755        .39577E-03   -1.5483    
   5  norm          .10000E-03    .10819        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4013        1.0818        .79318E-03   -1.5202    
   7  Prefactor     .10000E-03    .79640        .34252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0108        1.0506        .50974E-03   -1.5507    
   9  Prefactor     2.0097        1.0428        .29201E-04   -1.5424    
  10  Prefactor     .10003E-03    2.7718        .25964       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7897        .86892        .91915E-03   -1.5270    
  12  Prefactor     .10000E-03    1.2034        .16453       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .39045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0060        .30935        .14764E-03   -1.5507    
  15  Prefactor     1.4830        .49018E-01    .13339E-04   -1.5464    
  16  norm          3.1143        .84674        .20572E-03   -1.5355    
  17  Prefactor     4.3896        .37636        .64472E-04   -1.5289    
  18  Prefactor     .10000E-03    1.5595        .14530       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5797        7.8688        .25391E-03   -1.5387    
  20  Prefactor     .10000E-03    1.7258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .61239        .34416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5680        3.1535        .18834E-03   -1.5280    
  24  Normalizat    1.0463        .10205        .92373E-03   -.91497    
  25  Prefactor     1.0228        .14904E-01    .14610E-03   -.91975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58238e-10
Minuit parameter uncertainties:
  1  0.604986
  2  6.0673
  3  7.70304
  4  1.5756
  5  3.94494e-07
  6  1.0818
  7  3.98898e-06
  8  1.05067
  9  1.04283
  10  0.000541441
  11  0.86892
  12  1.6342e-05
  13  5.98537e-06
  14  0.309351
  15  0.0490177
  16  0.846742
  17  0.376361
  18  3.49078e-05
  19  7.87199
  20  2.12265e-05
  21  2.92055e-07
  22  1.40166e-05
  23  3.15358
  24  0.102069
  25  0.0149045
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  5.985e-06  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.023e+00  1.490e-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.046e+00  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/454083/likelihoodResults_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.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) = 247888.218008
delta logL = -0.0122131602839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 247888.205795
delta logL = 3.64088919014e-08

Fit tolerance = 1e-08

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

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

 FCN=   247888.2     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      217 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.405        .90712E-02** at limit **
   2  alpha         2.0983        3.4240        .41175        .92771E-07
   3  Normalizat    1.0463        .13886E-01    .20710        .13466E-02
   4  Prefactor     1.0228        .21849E-02    .41876E-01    .83696E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09828
  Normalizat = 1.04626
  Prefactor  = 1.02276
 **********
 **   18 **HESSE 
 **********

 FCN=   247888.2     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      248 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    98.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0983        3.9414        .16470       -.16139    
   3  Normalizat    1.0463        .70989E-01    .92373E-03   -.91497    
   4  Prefactor     1.0228        .11282E-01    .14610E-03   -.91975    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.84219e-09
Minuit parameter uncertainties:
  1  2.82274e-05
  2  1623.93
  3  0.0709956
  4  0.0112821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454083': 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) = 247888.205785
delta logL = 1.06494117063e-05

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.000e-04  2.823e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.098e+00  1.624e+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:  1.023e+00  1.128e-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.046e+00  7.100e-02  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 -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/454083/cmap_HighResolution_646531201_649123201_4FGL_J0530.9+1332_monthly_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-06', job_status='DONE', photon_flux_upper_limit='1.62e-08', time_completed='2021-10-14 19:27:48.310388', job_id='454083', GAL2='1.02', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1634264868.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.06e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='158' AND source_name='4FGL J0530.9+1332' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 14 19:27:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 454083: <4FGL_J0530.9+1332_monthly_bin158> in cluster <slac> Done

Job <4FGL_J0530.9+1332_monthly_bin158> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Oct 14 13:10:12 2021
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 14 13:10:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 14 13:10:14 2021
Terminated at Thu Oct 14 19:27:49 2021
Results reported at Thu Oct 14 19:27:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_monthly_bin158 82.7364 13.5402 646531201 649123201 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 :                                   22514.94 sec.
    Max Memory :                                 1054 MB
    Average Memory :                             654.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3400 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   22655 sec.
    Turnaround time :                            22657 sec.

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

