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


Performing analysis on: 4FGL_J0319.8+4130_monthly_bin119
RA = 49.9575, Dec = 41.5121
tmin = 545443201, tmax = 548035201
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='489347', job_status='RUN', time_executed='2021-10-12 00:01:55.375940', time_epoch_executed='1634022115.38' WHERE source_name='4FGL J0319.8+4130' and cadence='monthly' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489347

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489347/ft1_4FGL_J0319.8+4130_monthly_bin119.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489347/ft1_4FGL_J0319.8+4130_monthly_bin119.fits outfile=/scratch/kocevski/489347/ft1_filteredMKT_4FGL_J0319.8+4130_monthly_bin119.fits ra=49.9575 dec=41.5121 rad=12.0 tmin=545443201.0 tmax=548035201.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 33.21
user 32.41
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.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/489347/ft1_filteredMKT_4FGL_J0319.8+4130_monthly_bin119.fits evtable="EVENTS" outfile="/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.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.66
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/489347/ltcube_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.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/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits
.....................!
real 108.30
user 107.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/489347/ltcube_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits outfile=/scratch/kocevski/489347/expmap_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.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/489347/ltcube_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits
.....................!
real 191.45
user 185.78
sys 5.17

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/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits outfile=/scratch/kocevski/489347/cmap_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.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.80
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits outfile=/scratch/kocevski/489347/cmap_HighResolution_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.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.81
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489347/Model_4FGL_J0319.8+4130_monthly_bin119.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/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits.....................!
real 2994.28
user 2987.51
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits', '/scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits', expMap='/scratch/kocevski/489347/expmap_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits', expCube='/scratch/kocevski/489347/ltcube_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489347/Model_4FGL_J0319.8+4130_monthly_bin119.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/489347/ft1_filtered_4FGL_J0319.8+4130_monthly_bin119.fits
Spacecraft file(s): /scratch/kocevski/489347/ft2_4FGL_J0319.8+4130_monthly_bin119.fits
Exposure map: /scratch/kocevski/489347/expmap_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits
Exposure cube: /scratch/kocevski/489347/ltcube_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489347/Model_4FGL_J0319.8+4130_monthly_bin119.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) = 160159.622918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38178       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0112       1.0000         .10000E-03   10000.    
     8 'norm      '    15.633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7114       1.0000         .10000E-03   10000.    
    11 'norm      '    13.625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39607       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5945       1.0000         .10000E-03   10000.    
    18 'norm      '    34.081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1918       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7899       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99793       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   160159.6     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2491 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38178        .92714E-01     .0000        .74949E-02
   2  Prefactor     .10000E-03    .73948         .0000    ** at limit **
   3  norm          2.2214        1.4461         .0000        .83612E-01
   4  Prefactor     .10000E-03    3.1825         .0000    ** at limit **
   5  Prefactor     40.315        24.780         .0000       -.11740E-02
   6  Prefactor     .10000E-03    .88667E-01     .0000    ** at limit **
   7  norm          1.0112        .75271         .0000        .61001E-02
   8  norm          15.633        9.7270         .0000        .10869E-02
   9  Prefactor     .10000E-03    1.8413         .0000    ** at limit **
  10  Prefactor     5.7113        14.452         .0000        .68658E-04
  11  norm          13.625        .43581         .0000       -.11198E-01
  12  Prefactor     .39621        .43099         .0000        .25193E-01
  13  norm          2.0470        .83975         .0000        .16118E-01
  14  Prefactor     20.116        25.470         .0000        .10778E-02
  15  Prefactor     .10000E-03    2.8237         .0000    ** at limit **
  16  norm          .10187        4.1947         .0000        .39734E-03
  17  Prefactor     2.5946        1.2571         .0000        .31317    
  18  norm          34.081        4.1723         .0000       -.97094E-03
  19  Prefactor     1.1920        2.1097         .0000        .19138    
  20  norm          1.7899        1.4001         .0000        .33458    
  21  Normalizat    1.3333        .89953E-01     .0000        .17119E-03
  22  Prefactor     .99793        .16356E-01     .0000       -.82307E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.381782
  Prefactor  = 0.0001
  norm       = 2.22144
  Prefactor  = 0.0001
  Prefactor  = 40.3153
  Prefactor  = 0.0001
  norm       = 1.01122
  norm       = 15.633
  Prefactor  = 0.0001
  Prefactor  = 5.71128
  norm       = 13.6248
  Prefactor  = 0.396208
  norm       = 2.04698
  Prefactor  = 20.1162
  Prefactor  = 0.0001
  norm       = 0.101866
  Prefactor  = 2.59457
  norm       = 34.0807
  Prefactor  = 1.19199
  norm       = 1.78988
  Normalizat = 1.33333
  Prefactor  = 0.997933
 **********
 **   18 **HESSE 
 **********

 FCN=   160159.6     FROM HESSE     STATUS=OK           360 CALLS     2851 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38178        .91247E-01    .57774E-04   -1.5584    
   2  Prefactor     .10000E-03    .76286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2214        1.4420        .13795E-02   -1.5410    
   4  Prefactor     .10000E-03    3.1955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        24.798        .63130E-04   -1.4437    
   6  Prefactor     .10000E-03    .59242        .22912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0112        .75393        .29045E-03   -1.5507    
   8  norm          15.633        9.7108        .10130E-03   -1.4917    
   9  Prefactor     .10000E-03    1.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7113        14.441        .16807E-03   -1.5230    
  11  norm          13.625        .43543        .43737E-04   -1.4970    
  12  Prefactor     .39621        .59606        .24315E-02   -1.5582    
  13  norm          2.0470        .82021        .21607E-03   -1.5422    
  14  Prefactor     20.116        25.454        .89302E-04   -1.4811    
  15  Prefactor     .10000E-03    2.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10187        4.0438        .25107       -1.5644    
  17  Prefactor     2.5946        1.2469        .12666E-02   -1.5386    
  18  norm          34.081        4.1872        .68643E-04   -1.4540    
  19  Prefactor     1.1920        2.0911        .20853E-02   -1.5490    
  20  norm          1.7899        1.3973        .15633E-02   -1.5440    
  21  Normalizat    1.3333        .91666E-01    .66729E-03   -.82577    
  22  Prefactor     .99793        .17197E-01    .14393E-03   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81929e-07
Minuit parameter uncertainties:
  1  0.0912467
  2  3.52479e-07
  3  1.44207
  4  3.80933e-05
  5  24.8047
  6  1.85238e-06
  7  0.753939
  8  9.71181
  9  1.51074e-05
  10  14.4503
  11  0.435431
  12  0.596068
  13  0.820219
  14  25.4677
  15  6.71517e-06
  16  1.2831
  17  1.24688
  18  4.18722
  19  2.09121
  20  1.39732
  21  0.0916769
  22  0.0171972
Done.

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

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  1.362e+01  4.354e-01  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.979e-01  1.720e-02  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.333e+00  9.168e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4333.50
Ra Dec: 49.958 41.512
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.12e-06 +/- 3.57e-08
Energy Flux (Fixed Index): 6.22e-04 +/- 1.99e-05

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) = 160156.351434
delta logL = 3.26688896547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 160156.351431
delta logL = 3.26689209248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.156       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99432       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=   160156.4     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.156        .59752        .26614E-02   -.59827E-03
   2  alpha         1.9732        .35015E-01    .90762E-01    .11424E-02
   3  Normalizat    1.3788        .84375E-01    .14829        .55319E-03
   4  Prefactor     .99432        .15561E-01    .32633E-01    .43633E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1561
  alpha      = 1.97315
  Normalizat = 1.37877
  Prefactor  = 0.994319
 **********
 **   18 **HESSE 
 **********

 FCN=   160156.4     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.156        .48264        .45120E-04   -1.4955    
   2  alpha         1.9732        .28527E-01    .39697E-03   -.21233    
   3  Normalizat    1.3788        .87691E-01    .65890E-03   -.81245    
   4  Prefactor     .99432        .16267E-01    .14421E-03   -.92919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32802e-12
Minuit parameter uncertainties:
  1  0.482638
  2  0.0285274
  3  0.0877007
  4  0.0162675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489347': 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) = 160156.35143
delta logL = 3.26689245817

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  1.416e+01  4.826e-01  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  1.973e+00  2.853e-02  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.943e-01  1.627e-02  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.379e+00  8.770e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4327.32
Ra Dec: 49.958 41.512
Photon Index (Free Index): 1.97 +/- 0.03
Photon Flux (Free Index): 1.06e-06 +/- 3.98e-08
Energy Flux (Free Index): 6.79e-04 +/- 3.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/489347/cmap_HighResolution_545443201_548035201_4FGL_J0319.8+4130_monthly_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-06', energy_flux2='6.79e-04', photon_flux_error='3.57e-08', dlogl='3.27e+00', energy_flux='6.22e-04', photon_flux2='1.06e-06', job_status='DONE', time_completed='2021-10-12 02:52:20.250041', photon_index_error2='0.03', photon_index2='1.97', ts='4333.50', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.23e-05', EG='1.33', time_epoch_completed='1634032340.25', return_code='0', job_id='489347', GAL2='0.99', EG2='1.38', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='3.98e-08', ts2='4327.32', photon_index='2.05' WHERE bin_id='119' AND source_name='4FGL J0319.8+4130' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 12 02:52:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 489347: <4FGL_J0319.8+4130_monthly_bin119> in cluster <slac> Done

Job <4FGL_J0319.8+4130_monthly_bin119> 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) <bullet0297>, 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 02:52:21 2021
Results reported at Tue Oct 12 02:52:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+4130_monthly_bin119 49.9575 41.5121 545443201 548035201 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 :                                   9988.00 sec.
    Max Memory :                                 795 MB
    Average Memory :                             526.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10324 sec.
    Turnaround time :                            10325 sec.

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

