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


Performing analysis on: 4FGL_J0530.9+1332_monthly_bin126
RA = 82.7364, Dec = 13.5402
tmin = 563587201, tmax = 566179201
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='452809', job_status='RUN', time_executed='2021-10-14 13:05:35.058691', time_epoch_executed='1634241935.06' WHERE source_name='4FGL J0530.9+1332' and cadence='monthly' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452809

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452809/ft1_4FGL_J0530.9+1332_monthly_bin126.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452809/ft1_4FGL_J0530.9+1332_monthly_bin126.fits outfile=/scratch/kocevski/452809/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin126.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=563587201.0 tmax=566179201.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 29.50
user 28.44
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.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/452809/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/452809/ft1_filtered_4FGL_J0530.9+1332_monthly_bin126.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.85
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452809/ft1_filtered_4FGL_J0530.9+1332_monthly_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/452809/ltcube_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.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/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits
.....................!
real 108.51
user 107.47
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452809/ft1_filtered_4FGL_J0530.9+1332_monthly_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/452809/ltcube_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.fits outfile=/scratch/kocevski/452809/expmap_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.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/452809/ltcube_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.fits
.....................!
real 193.84
user 187.73
sys 5.08

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/452809/ft1_filtered_4FGL_J0530.9+1332_monthly_bin126.fits scfile=/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits outfile=/scratch/kocevski/452809/cmap_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.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.79
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452809/ft1_filtered_4FGL_J0530.9+1332_monthly_bin126.fits scfile=/scratch/kocevski/452809/ft2_4FGL_J0530.9+1332_monthly_bin126.fits outfile=/scratch/kocevski/452809/cmap_HighResolution_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.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.84
user 0.65
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6292       1.0000         .10000E-03   10000.    
     5 'norm      '    .16814       1.0000         .10000E-03   10000.    
     6 'norm      '    12.665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.016       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11435E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3384       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3960       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2880       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8461       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13292E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13609E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .78681       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96962       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=   208315.3     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2594 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1887        .62320       -.53021E-07   -.60289E-04
   2  Prefactor     .10000E-03    5.1958        .41561E-06** at limit **
   3  Prefactor     .10000E-03    10.898       -.14229E-05** at limit **
   4  Prefactor     6.6285        1.0075       -.19079E-07    .87737E-03
   5  norm          .16798        .22063        .19770E-07    .98965E-04
   6  norm          12.665        1.8150       -.14558E-07    .47314E-04
   7  Prefactor     .10000E-03    .41935       -.20828E-06** at limit **
   8  norm          2.1320        1.3069       -.86651E-08   -.64951E-05
   9  Prefactor     2.4847        1.2532       -.25167E-07    .10946E-04
  10  Prefactor     16.012        1.0182       -.22948E-07   -.36908E-03
  11  norm          3.9834        .83363       -.28210E-07    .30359E-05
  12  Prefactor     .10000E-03    4.4158       -.65304E-06** at limit **
  13  norm          3.3392        1.8949        .54364E-07    .26500E-04
  14  norm          1.3965        .38310        .68676E-07    .39274E-03
  15  Prefactor     1.2881        .53335E-01   -.10277E-08   -.68720E-03
  16  norm          5.8455        1.2861        .23549E-07   -.36725E-04
  17  Prefactor     2.2514        .34843        .30894E-08   -.13450E-03
  18  Prefactor     .10128E-03    29.936       -.55266E-05** at limit **
  19  Prefactor     .10141E-03    30.745       -.56466E-05** at limit **
  20  Prefactor     .10000E-03    1.6233       -.11743E-06** at limit **
  21  Prefactor     .10000E-03    1.4923       -.13586E-06** at limit **
  22  norm          .10000E-03    2.0285       -.36396E-06** at limit **
  23  Prefactor     .78806        2.6103       -.19757E-06   -.61997E-05
  24  Normalizat    1.1484        .11085       -.39642E-06    .42560E-04
  25  Prefactor     .96961        .15563E-01    .33944E-07    .17135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.62854
  norm       = 0.167976
  norm       = 12.665
  Prefactor  = 0.0001
  norm       = 2.13204
  Prefactor  = 2.48468
  Prefactor  = 16.012
  norm       = 3.9834
  Prefactor  = 0.0001
  norm       = 3.33921
  norm       = 1.39646
  Prefactor  = 1.28806
  norm       = 5.84547
  Prefactor  = 2.25143
  Prefactor  = 0.000101277
  Prefactor  = 0.000101411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.788064
  Normalizat = 1.14843
  Prefactor  = 0.969611
 **********
 **   18 **HESSE 
 **********

 FCN=   208315.3     FROM HESSE     STATUS=OK           521 CALLS     3115 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1887        .63372        .10451E-01   -1.5490    
   2  Prefactor     .10000E-03    5.1647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6285        3.1717        .38964E-02   -1.5193    
   5  norm          .16798        .16619        .28204E-01   -1.5626    
   6  norm          12.665        1.8433        .28139E-02   -1.4996    
   7  Prefactor     .10000E-03    .14774        .66147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1320        1.3162        .70626E-02   -1.5416    
   9  Prefactor     2.4847        1.2652        .64836E-02   -1.5393    
  10  Prefactor     16.012        15.076        .25020E-02   -1.4907    
  11  norm          3.9834        .83768        .50521E-02   -1.5309    
  12  Prefactor     .10000E-03    .85750        .16228       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3392        1.9291        .55380E-02   -1.5342    
  14  norm          1.3965        .40136        .91872E-02   -1.5472    
  15  Prefactor     1.2881        .48723E-01    .28506E-02   -1.5481    
  16  norm          5.8455        1.1919        .41524E-03   -1.5224    
  17  Prefactor     2.2514        .33965        .68457E-02   -1.5408    
  18  Prefactor     .10128E-03    1.9635        .14569       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10141E-03    2.0988        .15194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .18350        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .78806        1.0584        .12391       -1.5530    
  24  Normalizat    1.1484        .12051        .20579       -.88212    
  25  Prefactor     .96961        .15357E-01    .32471E-01   -.93749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0436e-08
Minuit parameter uncertainties:
  1  0.633725
  2  8.52897e-06
  3  3.2794e-05
  4  3.17177
  5  0.166194
  6  1.84327
  7  9.88671e-08
  8  1.31625
  9  1.26525
  10  15.0798
  11  0.837682
  12  1.26803e-06
  13  1.92914
  14  0.40136
  15  0.0487227
  16  1.19191
  17  0.339649
  18  0.00316746
  19  0.00344138
  20  3.18659e-07
  21  8.27406e-08
  22  1.51418e-06
  23  1.05841
  24  0.120543
  25  0.0153573
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  3.339e+00  1.929e+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

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.696e-01  1.536e-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.148e+00  1.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 82.736 13.540
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 5.54e-06

TS (Fixed Index): 3.89
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452809/likelihoodResults_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.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) = 208315.256177
delta logL = 0.00657285976922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 208315.254944
delta logL = 0.00780610361835

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   208315.3     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      259 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4374        2.3504        .10908E-02   -.33882E-02
   2  alpha         2.5244        .53943        .62511E-01    .16516E-03
   3  Normalizat    1.1498        .10282        .91744E-03    .31802E-04
   4  Prefactor     .96953        .15045E-01    .14350E-03   -.76056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.43739
  alpha      = 2.5244
  Normalizat = 1.14976
  Prefactor  = 0.969532
 **********
 **   18 **HESSE 
 **********

 FCN=   208315.3     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4374        2.0804        .43632E-04   -1.5337    
   2  alpha         2.5244        .47971        .25004E-02    .97593E-02
   3  Normalizat    1.1498        .10262        .18349E-03   -.88170    
   4  Prefactor     .96953        .15027E-01    .57400E-05   -.93752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5902e-09
Minuit parameter uncertainties:
  1  2.08042
  2  0.482707
  3  0.102638
  4  0.0150271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452809': 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) = 208315.254944
delta logL = 0.00780645606574

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  3.437e+00  2.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.524e+00  4.827e-01  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.695e-01  1.503e-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.150e+00  1.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.90
Ra Dec: 82.736 13.540
Photon Index (Free Index): 2.52 +/- 0.48
Photon Flux (Free Index): 2.80e-08 +/- 1.97e-08
Energy Flux (Free Index): 9.55e-06 +/- 5.44e-06

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/452809/cmap_HighResolution_563587201_566179201_4FGL_J0530.9+1332_monthly_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='9.55e-06', photon_flux_error='1.70e-08', dlogl='7.81e-03', energy_flux='9.59e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2021-10-14 17:59:25.857636', photon_index_error2='0.48', photon_index2='2.52', ts='3.89', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.00e-08', energy_flux_error2='5.44e-06', EG='1.15', time_epoch_completed='1634259565.86', return_code='0', job_id='452809', GAL2='0.97', EG2='1.15', return_code2='0', energy_flux_error='5.54e-06', photon_flux_error2='1.97e-08', ts2='3.90', photon_index='2.58' WHERE bin_id='126' AND source_name='4FGL J0530.9+1332' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 14 17:59:25 PDT 2021


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

Job <4FGL_J0530.9+1332_monthly_bin126> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Oct 14 13:05:18 2021
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 14 13:05:19 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:05:19 2021
Terminated at Thu Oct 14 17:59:27 2021
Results reported at Thu Oct 14 17:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_monthly_bin126 82.7364 13.5402 563587201 566179201 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 :                                   17510.09 sec.
    Max Memory :                                 1279 MB
    Average Memory :                             607.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   17647 sec.
    Turnaround time :                            17649 sec.

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

