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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1619
RA = 48.2438, Dec = 41.3289
tmin = 658972801, tmax = 659232001
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='171067', job_status='RUN', time_executed='2021-12-07 13:55:56.851524', time_epoch_executed='1638914156.85' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171067/ft1_4FGL_J0312.9+4119_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171067/ft1_4FGL_J0312.9+4119_daily_bin1619.fits outfile=/scratch/kocevski/171067/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1619.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=658972801.0 tmax=659232001.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 2.96
user 2.75
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.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/171067/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/171067/ltcube_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.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/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits
.....................!
real 14.20
user 13.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/171067/ltcube_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits outfile=/scratch/kocevski/171067/expmap_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.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/171067/ltcube_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits
.....................!
real 191.95
user 185.91
sys 5.62

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/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits outfile=/scratch/kocevski/171067/cmap_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits outfile=/scratch/kocevski/171067/cmap_HighResolution_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171067/Model_4FGL_J0312.9+4119_daily_bin1619.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/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits.................!
real 16.44
user 15.08
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits', '/scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits', expMap='/scratch/kocevski/171067/expmap_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits', expCube='/scratch/kocevski/171067/ltcube_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171067/Model_4FGL_J0312.9+4119_daily_bin1619.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/171067/ft1_filtered_4FGL_J0312.9+4119_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/171067/ft2_4FGL_J0312.9+4119_daily_bin1619.fits
Exposure map: /scratch/kocevski/171067/expmap_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits
Exposure cube: /scratch/kocevski/171067/ltcube_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171067/Model_4FGL_J0312.9+4119_daily_bin1619.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) = 224.474504564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.758       1.0000         .10000E-03   10000.    
     5 'norm      '    19.957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .61475E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.417       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6504       1.0000         .10000E-03   10000.    
    13 'norm      '    9999.3       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2998       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0726       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7526       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1105.1       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .26767       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .26756E-07   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=   194.2757     FROM MIGRAD    STATUS=CONVERGED    376 CALLS      847 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.664        .97107E-05** at limit **
   2  norm          .10000E-03    1.5689        .79844E-07** at limit **
   3  norm          .10000E-03    .61879       -.13540E-05** at limit **
   4  Prefactor     45.610        54.825        .25941E-05    .27682E-03
   5  norm          19.980        59.158       -.82711E-05    .78642E-04
   6  Prefactor     20.630        1449.5       -.10720E-04    .14844E-03
   7  Prefactor     .10026E-03    8175.9        .18608E-03** at limit **
   8  Prefactor     .10000E-03    4.5715        .95848E-06** at limit **
   9  norm          .10000E-03    77.369       -.42952E-05** at limit **
  10  norm          836.09        1754.7       -.32419E-04   -.51417E-02
  11  Prefactor     .16168E-02    6539.1       -.29535E-04** at limit **
  12  Prefactor     9992.0        9102.5       -.21764E-03   -.21201E-02
  13  norm         10000.0        582.76       -.41388E-05** at limit **
  14  Prefactor     1.2998        1.1047         .0000         .0000    
  15  norm          1.0726        1.2120         .0000         .0000    
  16  Prefactor     11.795        2.5073        .11582E-05   -.25638E-04
  17  Prefactor     9978.8        9986.6        .27825E-04    .36505E-02
  18  norm          43.555        39.465        .72597E-05   -.42800E-03
  19  Prefactor     9999.9        9998.8        .92580E-03   -.79577E-03
  20  Prefactor     1085.4        130.48       -.15400E-05    .97922E-03
  21  Normalizat    .26523        .26052       -.36859E-05    .23073E-04
  22  Prefactor     .16187E-11    .11734        .15611E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 45.6105
  norm       = 19.9803
  Prefactor  = 20.6299
  Prefactor  = 0.000100263
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 836.085
  Prefactor  = 0.00161678
  Prefactor  = 9992.02
  norm       = 10000
  Prefactor  = 1.29981
  norm       = 1.07257
  Prefactor  = 11.7946
  Prefactor  = 9978.85
  norm       = 43.5546
  Prefactor  = 9999.85
  Prefactor  = 1085.42
  Normalizat = 0.265229
  Prefactor  = 1.61871e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   194.2757     FROM HESSE     STATUS=FAILED        61 CALLS      908 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5662        .77260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .60256        .48206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.610        36.659        .15151E-02   -1.4356    
   5  norm          19.980        44.585        .22414E-02   -1.4814    
   6  Prefactor     20.630        926.07        .14429E-02   -1.4799    
   7  Prefactor     .10026E-03    8119.0        .38476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    74.706        .10526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          836.09        2329.2        .48655E-02   -.98412    
  11  Prefactor     .16168E-02    6573.7        .11061E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9992.0        6278.6        .38901E-02    1.5143    
  13  norm         10000.0        590.86        .12029E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     581.76        580.23         .0000       -1.5480    
  15  norm          1.0726        1.2120         .0000       -1.5501    
  16  Prefactor     11.795        1.1339        .11582E-05   -1.5021    
  17  Prefactor     9978.8        1.7734        .27825E-04    1.6628    
  18  norm          43.555        2.1836        .72597E-05   -1.4387    
  19  Prefactor     9999.9        .88330E-01    .92580E-03    1.5631    
  20  Prefactor     1085.4        .99214       -.15400E-05   -.89934    
  21  Normalizat    .26523        .55784       -.36859E-05   -1.2497    
  22  Prefactor     .16187E-11    .25504        .15611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.46818e-10
Minuit parameter uncertainties:
  1  0.000329718
  2  4.61255e-07
  3  2.75994e-06
  4  36.6769
  5  44.6592
  6  281.204
  7  0.0933293
  8  3.28645e-05
  9  0.000332812
  10  2768
  11  4.63637
  12  1457.91
  13  0.0108014
  14  1.10472
  15  1.21206
  16  1.13395
  17  1.77343
  18  2.18356
  19  0.0883299
  20  0.992139
  21  0.570194
  22  1.29068e-06
Done.

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

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.617e-03  4.636e+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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.619e-12  1.291e-06  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:  2.652e-01  5.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.44649320391

TS (Fixed Index): -0.00
Ra Dec: 48.244 41.329
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.87e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171067/likelihoodResults_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 194.276382997
delta logL = -0.000655230372189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 194.276382997
delta logL = -0.000655230273736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.6938       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=   194.2764     FROM MIGRAD    STATUS=CONVERGED     27 CALLS       91 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 23.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.6175        5.7979       -.26359        .19863E-07
                               ERR DEF=  .500    
Final values: 
  Index      = 1.61751
 **********
 **   18 **HESSE 
 **********

 FCN=   194.2764     FROM HESSE     STATUS=OK            11 CALLS      102 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.6175        5.2958        .50000       -.74300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94803e-11
Minuit parameter uncertainties:
  1  1302.27
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171067': 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) = 194.276382866
delta logL = -0.000655098544286

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.614e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
287        Index:  1.618e+00  1.302e+03  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:  8.138e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  2.663e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/171067/cmap_HighResolution_658972801_659232001_4FGL_J0312.9+4119_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.87e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-12-07 14:01:18.145289', job_id='171067', GAL2='0.00', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1638914478.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-6.55e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1619' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:01:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 171067: <4FGL_J0312.9+4119_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1619> 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) <bullet0298>, 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:01:18 2021
Results reported at Tue Dec  7 14:01:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1619 48.2438 41.3289 658972801 659232001 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 :                                   321.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             213.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            654 sec.

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

