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


Performing analysis on: 4FGL_J0319.8+4130_monthly_bin118
RA = 49.9575, Dec = 41.5121
tmin = 542851201, tmax = 545443201
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='489345', job_status='RUN', time_executed='2021-10-12 00:01:28.262756', time_epoch_executed='1634022088.26' WHERE source_name='4FGL J0319.8+4130' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489345

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489345/ft1_4FGL_J0319.8+4130_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489345/ft1_4FGL_J0319.8+4130_monthly_bin118.fits outfile=/scratch/kocevski/489345/ft1_filteredMKT_4FGL_J0319.8+4130_monthly_bin118.fits ra=49.9575 dec=41.5121 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.39
user 17.83
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.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/489345/ft1_filteredMKT_4FGL_J0319.8+4130_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.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.60
user 0.44
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/489345/ltcube_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.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/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits
.....................!
real 51.84
user 51.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/489345/ltcube_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits outfile=/scratch/kocevski/489345/expmap_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.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/489345/ltcube_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits
.....................!
real 192.40
user 187.60
sys 4.47

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 166 point sources and 2 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 J0319.8+4130 @ 49.9575 41.5121

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits outfile=/scratch/kocevski/489345/cmap_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.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=49.9575 yref=41.5121 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.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits outfile=/scratch/kocevski/489345/cmap_HighResolution_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.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=49.9575 yref=41.5121 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.60
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489345/Model_4FGL_J0319.8+4130_monthly_bin118.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits.....................!
real 64.90
user 63.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits', '/scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits', expMap='/scratch/kocevski/489345/expmap_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits', expCube='/scratch/kocevski/489345/ltcube_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489345/Model_4FGL_J0319.8+4130_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0319.8+4130'

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  4.545e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.046e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/489345/ft1_filtered_4FGL_J0319.8+4130_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/489345/ft2_4FGL_J0319.8+4130_monthly_bin118.fits
Exposure map: /scratch/kocevski/489345/expmap_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits
Exposure cube: /scratch/kocevski/489345/ltcube_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489345/Model_4FGL_J0319.8+4130_monthly_bin118.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) = 2794.3894503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53315       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    51.784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    193.32       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2814       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    118.31       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11699E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.566       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95466       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2794.308     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2434 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53315        .74571       -.17149E-06   -.31433E-03
   2  Prefactor     .10000E-03    48.678        .37449E-05** at limit **
   3  norm          29.148        24.092       -.59437E-06   -.28474E-04
   4  Prefactor     37.104        146.18       -.36138E-05   -.79764E-05
   5  Prefactor     .10000E-03    85.095       -.27377E-06** at limit **
   6  Prefactor     14.965        11.102       -.93027E-06   -.95909E-03
   7  norm          .10000E-03    5.8163       -.52478E-06** at limit **
   8  norm          51.778        84.841       -.71718E-05   -.14856E-05
   9  Prefactor     .10000E-03    14.505        .47007E-06** at limit **
  10  Prefactor     193.35        247.05        .19779E-04   -.67021E-05
  11  norm          7.2813        2.6759       -.39866E-06    .26487E-03
  12  Prefactor     .10000E-03    2.9347        .16120E-06** at limit **
  13  norm          10.063        6.7434       -.17067E-06   -.97370E-04
  14  Prefactor     118.30        178.18       -.58512E-05   -.70557E-06
  15  Prefactor     .10000E-03    31.312       -.68760E-07** at limit **
  16  norm          .10000E-03    222.34       -.44335E-05** at limit **
  17  Prefactor     .10000E-03    4.9670       -.57731E-06** at limit **
  18  norm          5.0866        21.388       -.42837E-06   -.34146E-04
  19  Prefactor     .10000E-03    9.0126       -.26439E-06** at limit **
  20  norm          11.564        12.292        .18133E-06   -.50002E-04
  21  Normalizat    1.1342        .65685        .32590E-05   -.19399E-04
  22  Prefactor     .95469        .11845       -.17803E-06    .13500E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.533145
  Prefactor  = 0.0001
  norm       = 29.1478
  Prefactor  = 37.1041
  Prefactor  = 0.0001
  Prefactor  = 14.9651
  norm       = 0.0001
  norm       = 51.7775
  Prefactor  = 0.0001
  Prefactor  = 193.349
  norm       = 7.28133
  Prefactor  = 0.0001
  norm       = 10.0633
  Prefactor  = 118.304
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08656
  Prefactor  = 0.0001
  norm       = 11.5642
  Normalizat = 1.13424
  Prefactor  = 0.954686
 **********
 **   18 **HESSE 
 **********

 FCN=   2794.308     FROM HESSE     STATUS=OK           340 CALLS     2774 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53315        .70238        .52466E-03   -1.5562    
   2  Prefactor     .10000E-03    49.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.148        24.110        .74212E-04   -1.4628    
   4  Prefactor     37.104        148.07        .65793E-04   -1.4489    
   5  Prefactor     .10000E-03    85.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.965        11.756        .51764E-03   -1.4934    
   7  norm          .10000E-03    5.8202        .12446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          51.778        84.722        .55732E-04   -1.4268    
   9  Prefactor     .10000E-03    14.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     193.35        241.94        .14526E-03   -1.2918    
  11  norm          7.2813        2.6877        .44549E-04   -1.5168    
  12  Prefactor     .10000E-03    2.9781        .88247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.063        6.7415        .10576E-03   -1.5073    
  14  Prefactor     118.30        178.17        .36994E-04   -1.3528    
  15  Prefactor     .10000E-03    31.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    222.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9919        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0866        21.597        .17824E-03   -1.5257    
  19  Prefactor     .10000E-03    9.0419        .15500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.564        12.291        .11780E-03   -1.5028    
  21  Normalizat    1.1342        .67765        .66162E-03   -.88660    
  22  Prefactor     .95469        .12353        .14038E-03   -.94256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81119e-10
Minuit parameter uncertainties:
  1  0.702389
  2  9.41384e-05
  3  24.1179
  4  148.891
  5  4.77654e-05
  6  11.758
  7  1.28831e-06
  8  84.9203
  9  2.33035e-05
  10  243.2
  11  2.68772
  12  3.85779e-06
  13  6.74199
  14  178.986
  15  2.10321e-06
  16  1.37033e-05
  17  1.76066e-06
  18  20.9748
  19  1.28006e-06
  20  12.2935
  21  0.682968
  22  0.123571
Done.

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

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  7.281e+00  2.688e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.046e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.547e-01  1.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.134e+00  6.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.65
Ra Dec: 49.958 41.512
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.96e-07 +/- 2.20e-07
Energy Flux (Fixed Index): 3.32e-04 +/- 1.23e-04

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) = 2794.24949235
delta logL = 0.058084450322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2794.21505876
delta logL = 0.0925180459303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9584       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9018       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2794.215     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9576        6.3653        .35532E-02    .12564E-03
   2  alpha         1.9026        .67787        .13617        .33728E-04
   3  Normalizat    1.1773        .59462        .14660        .93222E-05
   4  Prefactor     .95118        .11331        .31826E-01   -.17290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.95755
  alpha      = 1.90261
  Normalizat = 1.1773
  Prefactor  = 0.951183
 **********
 **   18 **HESSE 
 **********

 FCN=   2794.215     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9576        2.9470        .47181E-04   -1.5144    
   2  alpha         1.9026        .32925        .57769E-02   -.24129    
   3  Normalizat    1.1773        .59530        .65132E-03   -.87307    
   4  Prefactor     .95118        .11628        .14064E-03   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70553e-12
Minuit parameter uncertainties:
  1  2.94704
  2  0.330264
  3  0.598771
  4  0.116314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489345': 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) = 2794.21505515
delta logL = 0.0925216545324

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  7.958e+00  2.947e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  1.903e+00  3.303e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.512e-01  1.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.177e+00  5.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.24
Ra Dec: 49.958 41.512
Photon Index (Free Index): 1.90 +/- 0.33
Photon Flux (Free Index): 5.50e-07 +/- 2.11e-07
Energy Flux (Free Index): 4.07e-04 +/- 2.45e-04

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/489345/cmap_HighResolution_542851201_545443201_4FGL_J0319.8+4130_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.96e-07', energy_flux2='4.07e-04', photon_flux_error='2.20e-07', dlogl='9.25e-02', energy_flux='3.32e-04', photon_flux2='5.50e-07', job_status='DONE', time_completed='2021-10-12 00:12:19.156872', photon_index_error2='0.33', photon_index2='1.90', ts='28.65', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.45e-04', EG='1.13', time_epoch_completed='1634022739.16', return_code='0', job_id='489345', GAL2='0.95', EG2='1.18', return_code2='0', energy_flux_error='1.23e-04', photon_flux_error2='2.11e-07', ts2='29.24', photon_index='2.05' WHERE bin_id='118' AND source_name='4FGL J0319.8+4130' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 12 00:12:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 489345: <4FGL_J0319.8+4130_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0319.8+4130_monthly_bin118> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Oct 12 00:00:16 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 12 00:00:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 12 00:00:17 2021
Terminated at Tue Oct 12 00:12:19 2021
Results reported at Tue Oct 12 00:12:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+4130_monthly_bin118 49.9575 41.5121 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            723 sec.

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

