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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1494
RA = 48.2438, Dec = 41.3289
tmin = 626572801, tmax = 626832001
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='285739', job_status='RUN', time_executed='2021-08-17 21:53:02.708799', time_epoch_executed='1629262382.71' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285739

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285739/ft1_4FGL_J0312.9+4119_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285739/ft1_4FGL_J0312.9+4119_daily_bin1494.fits outfile=/scratch/kocevski/285739/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1494.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=626572801.0 tmax=626832001.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 6.62
user 2.73
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.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/285739/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1494.fits evtable="EVENTS" outfile="/scratch/kocevski/285739/ft1_filtered_4FGL_J0312.9+4119_daily_bin1494.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 3.99
user 0.33
sys 2.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285739/ft1_filtered_4FGL_J0312.9+4119_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/285739/ltcube_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.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/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits
.....................!
real 16.56
user 12.44
sys 2.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285739/ft1_filtered_4FGL_J0312.9+4119_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/285739/ltcube_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.fits outfile=/scratch/kocevski/285739/expmap_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.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/285739/ltcube_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.fits
.....................!
real 197.61
user 185.13
sys 7.99

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/285739/ft1_filtered_4FGL_J0312.9+4119_daily_bin1494.fits scfile=/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits outfile=/scratch/kocevski/285739/cmap_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.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 2.43
user 0.37
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285739/ft1_filtered_4FGL_J0312.9+4119_daily_bin1494.fits scfile=/scratch/kocevski/285739/ft2_4FGL_J0312.9+4119_daily_bin1494.fits outfile=/scratch/kocevski/285739/cmap_HighResolution_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.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 2.48
user 0.39
sys 1.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.266       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2128       1.0000         .10000E-03   10000.    
     3 'norm      '    .85512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0203       1.0000         .10000E-03   10000.    
     5 'norm      '    .44652E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0458       1.0000         .10000E-03   10000.    
     9 'norm      '    67.628       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4822       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4017       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.1740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7965       1.0000         .10000E-03   10000.    
    18 'norm      '    8.9684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9594       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .52803       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=   354.5608     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      377 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.167        79.221       -.55077E-05   -.74650E-05
   2  norm          2.4204        8.5268       -.40863E-05    .48772E-04
   3  norm          1.0671        1.6198        .22398E-06   -.46532E-04
   4  Prefactor     25.012        88.544       -.24989E-05    .33348E-04
   5  norm          .10000E-03    39.378       -.55824E-05** at limit **
   6  Prefactor     .10001E-03    1031.5       -.62892E-05** at limit **
   7  Prefactor     8.2696        8615.6         .0000         .0000    
   8  Prefactor     4.2924        15.533        .43508E-06   -.34969E-04
   9  norm          3.4580        324.20       -.22687E-04    .43326E-04
  10  norm          3.9791        8657.0         .0000         .0000    
  11  Prefactor     .10000E-03    666.35        .64038E-05** at limit **
  12  Prefactor    10000.0        5608.2       -.24942E-03** at limit **
  13  norm         10000.0        6249.2        .21540E-04** at limit **
  14  Prefactor     1.2998        8696.1         .0000         .0000    
  15  norm          1.0726        8700.8         .0000         .0000    
  16  Prefactor     9.1740        8608.3         .0000         .0000    
  17  Prefactor     .10001E-03    8056.8        .69994E-04** at limit **
  18  norm         10000.0        6830.5        .39209E-04** at limit **
  19  Prefactor    10000.0        6542.1       -.16618E-04** at limit **
  20  Prefactor     1.9594        8684.3         .0000         .0000    
  21  Normalizat    .75235        1.4267       -.12890E-04   -.36323E-04
  22  Prefactor     .45808        .30818       -.23688E-05   -.14945E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 44.1668
  norm       = 2.42042
  norm       = 1.06707
  Prefactor  = 25.0122
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 8.26963
  Prefactor  = 4.29243
  norm       = 3.45797
  norm       = 3.9791
  Prefactor  = 0.000100001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 1.29981
  norm       = 1.07257
  Prefactor  = 9.17399
  Prefactor  = 0.000100012
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 1.95938
  Normalizat = 0.752346
  Prefactor  = 0.45808
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   354.5608     FROM HESSE     STATUS=FAILED        35 CALLS      412 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.167        46.748        .13139E-02   -1.4378    
   2  norm          2.4204        6.1520        .10264E-01   -1.6019    
   3  norm          1.0671        1.4501        .58086E-02   -1.5501    
   4  Prefactor     25.012        62.054        .37852E-02   -1.6709    
   5  norm          .10000E-03    42.024        .96771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    1027.8        .66524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     503.17        494.87         .0000       -1.5133    
   8  Prefactor     4.2924        .73196        .43508E-06   -1.5294    
   9  norm          3.4580        .22686       -.22687E-04   -1.6080    
  10  norm          3.9791        1.0081         .0000       -1.5309    
  11  Prefactor     .10000E-03    .21797        .64038E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        .73365E-01   -.24942E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        .39319E-01    .21540E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2998        1.1047         .0000       -1.5480    
  15  norm          1.0726        1.2120         .0000       -1.5501    
  16  Prefactor     9.1740        1.0015         .0000       -1.5102    
  17  Prefactor     .10001E-03    .52727E-01    .69994E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        .27988E-01    .39209E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        .13164       -.16618E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9594        1.0370         .0000       -1.5428    
  21  Normalizat    .75235        1.0370       -.12890E-04   -1.0186    
  22  Prefactor     .45808        .81537       -.23688E-05   -1.1394    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.77587e-10
Minuit parameter uncertainties:
  1  46.7871
  2  6.15363
  3  1.45019
  4  62.2149
  5  0.000318201
  6  0.00531643
  7  1.00184
  8  0.731965
  9  0.226857
  10  1.00812
  11  2.52463e-05
  12  0.0011939
  13  1.40203e-05
  14  1.10472
  15  1.21206
  16  1.00149
  17  4.95716e-05
  18  0.000485172
  19  4.7455e-06
  20  1.03696
  21  1.06614
  22  0.837596
Done.

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

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.525e-05  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.581e-01  8.376e-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:  7.523e-01  1.066e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285739/likelihoodResults_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.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) = 354.560836639
delta logL = -6.99096938206e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 354.560836639
delta logL = -6.99056118947e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6941       1.0000          .0000       10.000    
     3 'Normalizat'    .75235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45808       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   354.5608     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10571E-03    767.41        .18143E-01** at limit **
   2  Index         2.5550        5.7754        .50000        .35065E-06
   3  Normalizat    .75235        .36391E-01    .58457E-03    .23338E-06
   4  Prefactor     .45808        .79878E-02    .15996E-03    .39401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105715
  Index      = 2.55498
  Normalizat = 0.752349
  Prefactor  = 0.458082
 **********
 **   18 **HESSE 
 **********

 FCN=   354.5608     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10571E-03    6682.9        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5550        6.6870        .50000       -.51095    
   3  Normalizat    .75235        .80539E-01    .23383E-04   -1.0186    
   4  Prefactor     .45808        .17680E-01    .63984E-05   -1.1394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.65238e-11
Minuit parameter uncertainties:
  1  0.295928
  2  2259.38
  3  0.0805516
  4  0.0176804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285739': 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) = 354.56082964
delta logL = 8.55345660966e-09

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.057e-04  2.959e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.555e+00  2.259e+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:  4.581e-01  1.768e-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:  7.523e-01  8.055e-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/285739/cmap_HighResolution_626572801_626832001_4FGL_J0312.9+4119_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e+00', job_status='DONE', photon_flux_upper_limit='2.35e-05', time_completed='2021-08-17 21:59:16.123115', job_id='285739', GAL2='0.46', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629262756.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.46', dlogl='8.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1494' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 285739: <4FGL_J0312.9+4119_daily_bin1494> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1494> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 21:50:53 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:51:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 21:51:31 2021
Terminated at Tue Aug 17 21:59:17 2021
Results reported at Tue Aug 17 21:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1494 48.2438 41.3289 626572801 626832001 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 :                                   382.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            504 sec.

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

