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


Performing analysis on: 4FGL_J0319.8+1845_monthly_bin148
RA = 49.9722, Dec = 18.7532
tmin = 620611201, tmax = 623203201
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='485717', job_status='RUN', time_executed='2021-10-11 23:45:26.596685', time_epoch_executed='1634021126.6' WHERE source_name='4FGL J0319.8+1845' and cadence='monthly' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485717

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

Retrieving the FT1 file...

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

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

Retrieving 451 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485717/ft1_4FGL_J0319.8+1845_monthly_bin148.fits


Retrieving the FT1 file...

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

Retrieving 451 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485717/ft1_4FGL_J0319.8+1845_monthly_bin148.fits outfile=/scratch/kocevski/485717/ft1_filteredMKT_4FGL_J0319.8+1845_monthly_bin148.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=620611201.0 tmax=623203201.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.39
user 32.22
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.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/485717/ft1_filteredMKT_4FGL_J0319.8+1845_monthly_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.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.82
user 0.62
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/485717/ltcube_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.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/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits
.....................!
real 113.21
user 112.01
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/485717/ltcube_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits outfile=/scratch/kocevski/485717/expmap_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.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/485717/ltcube_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits
.....................!
real 197.37
user 187.46
sys 8.06

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0319.8+1845 @ 49.9722 18.7532

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits outfile=/scratch/kocevski/485717/cmap_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.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.9722 yref=18.7532 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.78
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits outfile=/scratch/kocevski/485717/cmap_HighResolution_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.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.9722 yref=18.7532 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.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485717/Model_4FGL_J0319.8+1845_monthly_bin148.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
Working on...
/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits.....................!
real 1599.53
user 1585.19
sys 10.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits', '/scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits', expMap='/scratch/kocevski/485717/expmap_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits', expCube='/scratch/kocevski/485717/ltcube_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485717/Model_4FGL_J0319.8+1845_monthly_bin148.xml', optimizer='MINUIT')

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

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.356e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/485717/ft1_filtered_4FGL_J0319.8+1845_monthly_bin148.fits
Spacecraft file(s): /scratch/kocevski/485717/ft2_4FGL_J0319.8+1845_monthly_bin148.fits
Exposure map: /scratch/kocevski/485717/expmap_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits
Exposure cube: /scratch/kocevski/485717/ltcube_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485717/Model_4FGL_J0319.8+1845_monthly_bin148.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) = 115746.913137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4396       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3380       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16421E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .78312       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0222       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2352       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74505       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3540       1.0000         .10000E-03   10000.    
    15 'norm      '    .82590       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7707       1.0000         .10000E-03   10000.    
    17 'norm      '    .55764       1.0000         .10000E-03   10000.    
    18 'norm      '    23.303       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.296       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   115746.9     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1986 TOTAL
                     EDM=   .26E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4403        3.4289         .0000       -.18070E-02
   2  norm          1.4734        .21188         .0000        .81781E-03
   3  Prefactor     10.321        10.347         .0000        .38237E-02
   4  norm          8.3324        4.7302         .0000       -.23755E-02
   5  Prefactor     .10012E-03    .98550         .0000    ** at limit **
   6  Prefactor     1.3305        31.001         .0000       -.18701E-02
   7  Prefactor     .78331        1.8383         .0000        .34487    
   8  Prefactor     5.0226        3.3754         .0000        .62393E-02
   9  norm          2.2354        1.5997         .0000        .45221E-01
  10  norm          .10000E-03    .45465         .0000    ** at limit **
  11  Prefactor     .10007E-03    11.603         .0000    ** at limit **
  12  Prefactor     2.5203        1.0439         .0000        .82843E-04
  13  Prefactor     .74786        1.3143         .0000        .24604E-01
  14  Prefactor     3.3520        2.2311         .0000        .16621E-03
  15  norm          .82599        .56904         .0000        .21255E-01
  16  norm          8.7698        2.7536         .0000       -.14331E-02
  17  norm          .55762        .70225         .0000        .98618E-02
  18  norm          23.306        13.572         .0000       -.31024E-02
  19  Prefactor     16.293        7.4057         .0000        .24909E-02
  20  Normalizat    1.0152        .73612E-01     .0000        .40345E-03
  21  Prefactor     .97533        .21209E-01     .0000       -.93090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44025
  norm       = 1.47338
  Prefactor  = 10.3207
  norm       = 8.33242
  Prefactor  = 0.000100117
  Prefactor  = 1.33055
  Prefactor  = 0.783314
  Prefactor  = 5.02256
  norm       = 2.23538
  norm       = 0.0001
  Prefactor  = 0.000100074
  Prefactor  = 2.52027
  Prefactor  = 0.747859
  Prefactor  = 3.35204
  norm       = 0.825993
  norm       = 8.76983
  norm       = 0.557624
  norm       = 23.3061
  Prefactor  = 16.2929
  Normalizat = 1.01523
  Prefactor  = 0.975327
 **********
 **   18 **HESSE 
 **********

 FCN=   115746.9     FROM HESSE     STATUS=OK           335 CALLS     2321 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4403        3.4248        .19112E-03   -1.5286    
   2  norm          1.4734        .21295        .51887E-04   -1.5465    
   3  Prefactor     10.321        10.121        .12464E-03   -1.5065    
   4  norm          8.3324        4.6701        .13883E-03   -1.5131    
   5  Prefactor     .10012E-03    1.1158        .10672       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3305        29.265        .38302E-03   -1.5477    
   7  Prefactor     .78331        1.8592        .24754E-02   -1.5531    
   8  Prefactor     5.0226        3.3747        .17944E-03   -1.5260    
   9  norm          2.2354        1.5988        .13747E-02   -1.5409    
  10  norm          .10000E-03    .46509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    11.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5203        1.0440        .25734E-04   -1.5390    
  13  Prefactor     .74786        1.2785        .48168E-03   -1.5535    
  14  Prefactor     3.3520        2.2302        .22098E-03   -1.5342    
  15  norm          .82599        .54434        .19379E-03   -1.5526    
  16  norm          8.7698        2.7549        .13535E-03   -1.5116    
  17  norm          .55762        .66496        .31192E-02   -1.5559    
  18  norm          23.306        13.569        .82978E-04   -1.4742    
  19  Prefactor     16.293        7.4025        .49608E-03   -1.4900    
  20  Normalizat    1.0152        .80532E-01    .45923E-03   -.92522    
  21  Prefactor     .97533        .23646E-01    .14171E-03   -.93557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90353e-07
Minuit parameter uncertainties:
  1  3.42494
  2  0.212951
  3  10.1227
  4  4.6703
  5  0.000722913
  6  12.4867
  7  1.85931
  8  3.37485
  9  1.59879
  10  2.18767e-06
  11  0.00185238
  12  1.04401
  13  1.27851
  14  2.23023
  15  0.544347
  16  2.75495
  17  0.664971
  18  13.5705
  19  7.40289
  20  0.0805411
  21  0.0236461
Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  3.352e+00  2.230e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.753e-01  2.365e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.015e+00  8.054e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.10
Ra Dec: 49.972 18.753
Photon Index (Fixed Index): 1.66 +/- 0.00
Photon Flux (Fixed Index): 4.81e-09 +/- 3.20e-09
Energy Flux (Fixed Index): 8.85e-06 +/- 5.89e-06

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) = 115746.644104
delta logL = 0.215396813161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 115746.639576
delta logL = 0.219925460377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6328       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9727       1.0000          .0000       10.000    
     3 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   115746.6     FROM MIGRAD    STATUS=FAILED       104 CALLS      323 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6328        4.9047        .12565E-02   -.29734E-03
   2  Index         1.9727        1.0008        .24924E-01    .13507E-01
   3  Normalizat    1.0107        .79795E-01    .46017E-03    .54549E-04
   4  Prefactor     .97570        .23546E-01    .14168E-03    .12325E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   115746.6     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      407 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6328        4.9047        .59873E-04   -1.5383    
   2  Index         1.9727        1.0008        .47196E-03   -.65034    
   3  Normalizat    1.0107        .79795E-01    .12200E-03   -.92674    
   4  Prefactor     .97570        .23546E-01    .38795E-04   -.93544    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   115746.6     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      439 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6328        2.2994        .50262E-04   -.35466E-03
   2  Index         1.9727        .47746        .49849E-02    .51615E-03
   3  Normalizat    1.0107        .77190E-01    .18407E-04    .55340E-04
   4  Prefactor     .97570        .23396E-01    .56672E-05    .12839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6328
  Index      = 1.97272
  Normalizat = 1.01068
  Prefactor  = 0.975695
 **********
 **   18 **HESSE 
 **********

 FCN=   115746.6     FROM HESSE     STATUS=OK            25 CALLS      464 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6328        2.1980        .20105E-05   -1.5383    
   2  Index         1.9727        .45641        .99698E-03   -.65034    
   3  Normalizat    1.0107        .77103E-01    .36814E-05   -.92674    
   4  Prefactor     .97570        .23389E-01    .11334E-05   -.93544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42126e-11
Minuit parameter uncertainties:
  1  2.19811
  2  0.457421
  3  0.0771118
  4  0.0233894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485717': 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) = 115746.639576
delta logL = 0.219925460435

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  2.633e+00  2.198e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.973e+00  4.574e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.757e-01  2.339e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.011e+00  7.711e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.56
Ra Dec: 49.972 18.753
Photon Index (Free Index): 1.97 +/- 0.46
Photon Flux (Free Index): 9.34e-09 +/- 9.85e-09
Energy Flux (Free Index): 6.91e-06 +/- 4.74e-06

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/485717/cmap_HighResolution_620611201_623203201_4FGL_J0319.8+1845_monthly_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-09', energy_flux2='6.91e-06', photon_flux_error='3.20e-09', dlogl='2.20e-01', energy_flux='8.85e-06', photon_flux2='9.34e-09', job_status='DONE', time_completed='2021-10-12 01:24:40.959790', photon_index_error2='0.46', photon_index2='1.97', ts='6.10', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.74e-06', EG='1.02', time_epoch_completed='1634027080.96', return_code='0', job_id='485717', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='5.89e-06', photon_flux_error2='9.85e-09', ts2='6.56', photon_index='1.66' WHERE bin_id='148' AND source_name='4FGL J0319.8+1845' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 12 01:24:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 485717: <4FGL_J0319.8+1845_monthly_bin148> in cluster <slac> Done

Job <4FGL_J0319.8+1845_monthly_bin148> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Oct 11 23:45:13 2021
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 11 23:45:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 11 23:45:15 2021
Terminated at Tue Oct 12 01:24:41 2021
Results reported at Tue Oct 12 01:24:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_monthly_bin148 49.9722 18.7532 620611201 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+1845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5813.19 sec.
    Max Memory :                                 792 MB
    Average Memory :                             461.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2950 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5966 sec.
    Turnaround time :                            5968 sec.

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

