/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7369
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1373
RA = 48.2438, Dec = 41.3289
tmin = 595209601, tmax = 595468801
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='282982', job_status='RUN', time_executed='2021-08-17 21:50:42.911196', time_epoch_executed='1629262242.91' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282982/ft1_4FGL_J0312.9+4119_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282982/ft1_4FGL_J0312.9+4119_daily_bin1373.fits outfile=/scratch/kocevski/282982/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1373.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=595209601.0 tmax=595468801.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 7.49
user 2.70
sys 4.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.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/282982/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/282982/ft1_filtered_4FGL_J0312.9+4119_daily_bin1373.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 5.28
user 0.35
sys 4.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282982/ft1_filtered_4FGL_J0312.9+4119_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/282982/ltcube_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.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/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits
.....................!
real 19.73
user 13.70
sys 5.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282982/ft1_filtered_4FGL_J0312.9+4119_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/282982/ltcube_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.fits outfile=/scratch/kocevski/282982/expmap_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.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/282982/ltcube_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.fits
.....................!
real 199.72
user 185.53
sys 11.05

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/282982/ft1_filtered_4FGL_J0312.9+4119_daily_bin1373.fits scfile=/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits outfile=/scratch/kocevski/282982/cmap_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.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 5.17
user 0.38
sys 4.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282982/ft1_filtered_4FGL_J0312.9+4119_daily_bin1373.fits scfile=/scratch/kocevski/282982/ft2_4FGL_J0312.9+4119_daily_bin1373.fits outfile=/scratch/kocevski/282982/cmap_HighResolution_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.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 5.29
user 0.39
sys 4.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34901E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10318E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91288E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5207       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3872       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5930       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4826       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0372       1.0000         .10000E-03   10000.    
    15 'norm      '    .10741E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9492       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2026       1.0000         .10000E-03   10000.    
    18 'norm      '    8.4948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.654       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.742       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .50542       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=   295.4830     FROM MIGRAD    STATUS=CONVERGED    327 CALLS      513 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    127.60       -.11440E-05** at limit **
   2  norm          .10000E-03    22.964        .23064E-05** at limit **
   3  norm          .10000E-03    4.3078        .46776E-06** at limit **
   4  Prefactor     .10000E-03    320.27       -.51797E-05** at limit **
   5  norm          .10060E-03    787.68       -.62957E-05** at limit **
   6  Prefactor     .75014E-01    153.82        .26584E-05    .17352E-02
   7  Prefactor     8.2696        1.0018         .0000         .0000    
   8  Prefactor    10000.0        7936.0        .14530E-04** at limit **
   9  norm          9999.9        6572.9       -.49201E-04   -.20789E-02
  10  norm          3.9791        1.0081         .0000         .0000    
  11  Prefactor     9999.9        6824.2       -.38999E-04    .20111E-02
  12  Prefactor     15.845        28.335       -.11940E-05   -.35572E-02
  13  norm          129.06        1427.1        .30264E-04   -.16562E-03
  14  Prefactor     .10000E-03    726.44        .16978E-05** at limit **
  15  norm          .10000E-03    62.319       -.43332E-06** at limit **
  16  Prefactor     .10558E-01    1349.8        .95423E-05   -.31304E-02
  17  Prefactor     .10024E-03    414.94       -.21086E-05** at limit **
  18  norm          .10040E-03    503.61       -.21039E-04** at limit **
  19  Prefactor     13.027        21.072       -.34523E-05    .37890E-04
  20  Prefactor     18.690        52.223        .40249E-05   -.25555E-04
  21  Normalizat    .10000E-01    .27744       -.22883E-05** at limit **
  22  Prefactor     .45908        .14570        .12198E-04    .32150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100598
  Prefactor  = 0.0750143
  Prefactor  = 8.26963
  Prefactor  = 10000
  norm       = 9999.95
  norm       = 3.9791
  Prefactor  = 9999.86
  Prefactor  = 15.8455
  norm       = 129.056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0105575
  Prefactor  = 0.000100239
  norm       = 0.000100396
  Prefactor  = 13.0273
  Prefactor  = 18.6896
  Normalizat = 0.01
  Prefactor  = 0.45908
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   295.4830     FROM HESSE     STATUS=FAILED        35 CALLS      548 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    127.72        .91961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.964        .10371E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    323.71        .94696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10060E-03    796.07        .63821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .75014E-01    7996.4        .64328E-02   -1.5653    
   7  Prefactor     503.17        494.87         .0000       -1.5133    
   8  Prefactor    10000.0        .21294        .14530E-04    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9999.9        .11987       -.49201E-04    1.5663    
  10  norm          3.9791        1.0081         .0000       -1.5309    
  11  Prefactor     9999.9        .27419       -.38999E-04    1.5782    
  12  Prefactor     15.845        2.1546       -.11940E-05   -1.4912    
  13  norm          129.06        4.3143        .30264E-04   -1.7985    
  14  Prefactor     .10000E-03    .38113        .16978E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20596       -.43332E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10558E-01    .34253E-01    .95423E-05   -1.5728    
  17  Prefactor     .10024E-03    .60380E-01   -.21086E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10040E-03    .29558E-01   -.21039E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.027        .85957       -.34523E-05   -1.4986    
  20  Prefactor     18.690        .85253        .40249E-05   -1.6573    
  21  Normalizat    .10000E-01    .25505       -.22883E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .45908        .81014        .12198E-04   -1.1389    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.35326e-10
Minuit parameter uncertainties:
  1  0.000490098
  2  4.75252e-05
  3  3.91438e-06
  4  0.00228077
  5  0.0442334
  6  48.6142
  7  1.00184
  8  0.00508811
  9  0.11987
  10  1.00812
  11  0.274194
  12  2.15457
  13  4.3143
  14  9.23174e-06
  15  6.73123e-06
  16  0.0342531
  17  0.000240224
  18  0.000216356
  19  0.859572
  20  0.852534
  21  1.55644e-07
  22  0.831872
Done.

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

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e+04  2.742e-01  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.591e-01  8.319e-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:  1.000e-02  1.556e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 48.244 41.329
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 5.83e-05 +/- 1.60e-09
Energy Flux (Fixed Index): 1.41e-02 +/- 3.86e-07
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 7.43440028828e-06

TS (Fixed Index): 1.20
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/282982/likelihoodResults_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.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) = 255.825643488
delta logL = 39.657311416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 255.808752579
delta logL = 39.6742023249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   255.8088     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       48 TOTAL
                     EDM=   .46E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .65752E-01    .57427E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   255.8088     FROM HESSE     STATUS=OK             5 CALLS       53 TOTAL
                     EDM=   .46E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .65724E-01    .12692E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58399e-16
Minuit parameter uncertainties:
  1  2.82091e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282982': 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) = 255.808752579
delta logL = 39.6742023249

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
287        Index:  1.000e+01  2.821e-09  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.591e-01  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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 80.55
Ra Dec: 48.244 41.329
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.49e+03 +/- 9.94e-06
Energy Flux (Free Index): 1.66e+05 +/- 1.11e-03

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/282982/cmap_HighResolution_595209601_595468801_4FGL_J0312.9+4119_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.87e+04', comment='SUCCESS', photon_flux='5.83e-05', energy_flux2='1.66e+05', photon_flux_error='1.60e-09', dlogl='3.97e+01', energy_flux='1.41e-02', photon_flux2='1.49e+03', job_status='DONE', time_completed='2021-08-17 21:57:37.384081', photon_index_error2='0.00', photon_index2='10.00', ts='1.20', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.11e-03', EG='0.01', time_epoch_completed='1629262657.38', return_code='101', job_id='282982', GAL2='0.46', EG2='0.01', return_code2='0', energy_flux_error='3.86e-07', photon_flux_error2='9.94e-06', ts2='80.55', photon_index='2.69' WHERE bin_id='1373' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:57:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 282982: <4FGL_J0312.9+4119_daily_bin1373> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1373> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 17 21:41:07 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:46:08 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:46:08 2021
Terminated at Tue Aug 17 21:57:38 2021
Results reported at Tue Aug 17 21:57:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1373 48.2438 41.3289 595209601 595468801 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 :                                   462.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            991 sec.

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

