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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1618
RA = 48.2438, Dec = 41.3289
tmin = 658713601, tmax = 658972801
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='171064', job_status='RUN', time_executed='2021-12-07 13:54:47.260088', time_epoch_executed='1638914087.26' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171064/ft1_4FGL_J0312.9+4119_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171064/ft1_4FGL_J0312.9+4119_daily_bin1618.fits outfile=/scratch/kocevski/171064/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1618.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=658713601.0 tmax=658972801.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 3.01
user 2.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.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/171064/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/171064/ltcube_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.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/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits
.....................!
real 14.04
user 13.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/171064/ltcube_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits outfile=/scratch/kocevski/171064/expmap_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.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/171064/ltcube_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits
.....................!
real 191.17
user 185.61
sys 4.93

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 W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
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 165 point sources and 3 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 J0312.9+4119 @ 48.2438 41.3289

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits outfile=/scratch/kocevski/171064/cmap_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.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=48.2438 yref=41.3289 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits outfile=/scratch/kocevski/171064/cmap_HighResolution_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.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=48.2438 yref=41.3289 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171064/Model_4FGL_J0312.9+4119_daily_bin1618.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
adding source W 3
Working on...
/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits.......................!
real 28.91
user 27.50
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits', '/scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits', expMap='/scratch/kocevski/171064/expmap_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits', expCube='/scratch/kocevski/171064/ltcube_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171064/Model_4FGL_J0312.9+4119_daily_bin1618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0312.9+4119'

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.825e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.694e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.292e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171064/ft1_filtered_4FGL_J0312.9+4119_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/171064/ft2_4FGL_J0312.9+4119_daily_bin1618.fits
Exposure map: /scratch/kocevski/171064/expmap_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits
Exposure cube: /scratch/kocevski/171064/ltcube_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171064/Model_4FGL_J0312.9+4119_daily_bin1618.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1036.11087247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1034.48990745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .45977E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20751E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16586E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.650       1.0000         .10000E-03   10000.    
    10 'norm      '    8.1550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6976       1.0000         .10000E-03   10000.    
    13 'norm      '    10.228       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8533       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0726       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36556       1.0000         .10000E-03   10000.    
    18 'norm      '    23.542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1409.9       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0633       1.0000         .10000E-03   10000.    
    21 'Normalizat'    3.9253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .46099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1031.617     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     1083 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8270       -.44254E-06** at limit **
   2  norm          .10000E-03    1.3439       -.73141E-07** at limit **
   3  norm          .92193E-01    3.5845       -.12820E-04   -.14087E-03
   4  Prefactor     .10010E-03    186.31       -.28808E-04** at limit **
   5  norm          20.150        44.788       -.49679E-04    .21593E-03
   6  Prefactor     .10000E-03    87.417       -.19805E-05** at limit **
   7  Prefactor     1334.1        1708.4       -.59176E-04    .68210E-05
   8  Prefactor     .10000E-03    7.9981       -.30520E-05** at limit **
   9  norm          26.235        34.833       -.84952E-05    .14249E-03
  10  norm          .10002E-03    1245.0       -.90433E-04** at limit **
  11  Prefactor     .10000E-03    460.04       -.22231E-04** at limit **
  12  Prefactor     .10005E-03    6230.7       -.32372E-04** at limit **
  13  norm          10.375        10.449       -.33830E-05    .12005E-03
  14  Prefactor    10000.0        6815.5        .30611E-04** at limit **
  15  norm          1.0726        1.2120         .0000         .0000    
  16  Prefactor    10000.0        5423.4        .76170E-04** at limit **
  17  Prefactor     .10000E-03    310.08        .25801E-04** at limit **
  18  norm         10000.0        9993.8        .10671E-02** at limit **
  19  Prefactor     .10016E-03    1469.1        .35671E-03** at limit **
  20  Prefactor    10000.0        6159.3       -.11874E-02** at limit **
  21  Normalizat    3.6988        1.2669        .78935E-05    .10512E-03
  22  Prefactor     .47641        .24675       -.92753E-05    .23400E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0921925
  Prefactor  = 0.000100101
  norm       = 20.1505
  Prefactor  = 0.0001
  Prefactor  = 1334.14
  Prefactor  = 0.0001
  norm       = 26.2349
  norm       = 0.000100017
  Prefactor  = 0.000100003
  Prefactor  = 0.000100053
  norm       = 10.3745
  Prefactor  = 10000
  norm       = 1.07257
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.000100164
  Prefactor  = 10000
  Normalizat = 3.6988
  Prefactor  = 0.476412
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1031.617     FROM HESSE     STATUS=FAILED        69 CALLS     1152 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .92193E-01    1.5115        .14832E-01   -1.5769    
   4  Prefactor     .10010E-03    180.05        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.150        38.230        .23301E-02   -1.4810    
   6  Prefactor     .10000E-03    87.226        .91057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1334.1        1677.6        .22070E-02   -.82298    
   8  Prefactor     .10000E-03    8.1037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.235        32.465        .20170E-02   -1.4683    
  10  norm          .10002E-03    1277.7        .35098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    456.32        .96797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    6267.2        .80731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.375        10.412        .31322E-02   -1.5064    
  14  Prefactor    10000.0        6782.9        .31914E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          586.66        585.25         .0000       -1.5501    
  16  Prefactor    10000.0        .26993E-01    .76170E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .28670        .25801E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        .10649E-01    .10671E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10016E-03    .20642E-03    .35671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        .12929       -.11874E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    3.6988        .98964        .78935E-05   -.26458    
  22  Prefactor     .47641        .81225       -.92753E-05   -1.1307    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.23906e-10
Minuit parameter uncertainties:
  1  3.13375e-06
  2  1.24986e-06
  3  0.746216
  4  0.00855588
  5  38.276
  6  2.55054e-05
  7  1754.37
  8  3.24059e-05
  9  32.4868
  10  0.00959258
  11  0.00231528
  12  0.0243331
  13  10.4135
  14  0.110688
  15  1.21206
  16  0.000464003
  17  1.25057e-05
  18  7.64465e-05
  19  1.16448e-05
  20  0.00326867
  21  0.996728
  22  0.833344
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1031.61655004

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.315e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.694e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.292e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  4.764e-01  8.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  3.699e+00  9.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 48.244 41.329
Photon Flux Upper Limit: 3.66e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171064/likelihoodResults_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1031.61656031
delta logL = -1.0271967767e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1031.61656031
delta logL = -1.0271308156e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6941       1.0000          .0000       10.000    
     3 'Normalizat'    3.6988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47641       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=   1031.617     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      197 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    422.88        .90713E-02** at limit **
   2  Index         2.6896        5.5615        .50000        .88892E-07
   3  Normalizat    3.6988        .30654E-01    .10483       -.11865E-03
   4  Prefactor     .47641        .65688E-02    .39341E-01   -.25749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.68956
  Normalizat = 3.69879
  Prefactor  = 0.476409
 **********
 **   18 **HESSE 
 **********

 FCN=   1031.617     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      226 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2081.0        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6896        6.8707        .50000       -.48035    
   3  Normalizat    3.6988        .70258E-01    .46380E-03   -.26458    
   4  Prefactor     .47641        .15059E-01    .22495E-03   -1.1307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20816e-10
Minuit parameter uncertainties:
  1  0.0034568
  2  915.987
  3  0.0702606
  4  0.0150586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171064': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1031.61655004
delta logL = 5.32054400537e-11

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.457e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.690e+00  9.160e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.292e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  4.764e-01  1.506e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  3.699e+00  7.026e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 48.244 41.329

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/171064/cmap_HighResolution_658713601_658972801_4FGL_J0312.9+4119_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-01', job_status='DONE', photon_flux_upper_limit='3.66e-06', time_completed='2021-12-07 14:00:35.898872', job_id='171064', GAL2='0.48', fit_tolerance='1e-08', EG2='3.70', EG='3.70', time_epoch_completed='1638914435.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.48', dlogl='5.32e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1618' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:00:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 171064: <4FGL_J0312.9+4119_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1618> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:50:24 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:52:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:52:07 2021
Terminated at Tue Dec  7 14:00:36 2021
Results reported at Tue Dec  7 14:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1618 48.2438 41.3289 658713601 658972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0312.9+4119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   348.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            612 sec.

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

