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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1495
RA = 48.2438, Dec = 41.3289
tmin = 626832001, tmax = 627091201
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='285741', job_status='RUN', time_executed='2021-08-17 21:56:52.556706', time_epoch_executed='1629262612.56' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285741/ft1_4FGL_J0312.9+4119_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285741/ft1_4FGL_J0312.9+4119_daily_bin1495.fits outfile=/scratch/kocevski/285741/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1495.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=626832001.0 tmax=627091201.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 12.04
user 2.77
sys 9.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285741/ft1_filtered_4FGL_J0312.9+4119_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/285741/ltcube_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.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/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits
.....................!
real 23.94
user 12.87
sys 10.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285741/ft1_filtered_4FGL_J0312.9+4119_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/285741/ltcube_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.fits outfile=/scratch/kocevski/285741/expmap_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.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/285741/ltcube_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.fits
.....................!
real 205.96
user 186.56
sys 17.45

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/285741/ft1_filtered_4FGL_J0312.9+4119_daily_bin1495.fits scfile=/scratch/kocevski/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits outfile=/scratch/kocevski/285741/cmap_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.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 9.58
user 0.36
sys 8.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285741/ft1_filtered_4FGL_J0312.9+4119_daily_bin1495.fits scfile=/scratch/kocevski/285741/ft2_4FGL_J0312.9+4119_daily_bin1495.fits outfile=/scratch/kocevski/285741/cmap_HighResolution_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.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 11.28
user 0.40
sys 8.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25102E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15838E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    106.45       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8945       1.0000         .10000E-03   10000.    
     9 'norm      '    216.95       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4798       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6437       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.7480       1.0000         .10000E-03   10000.    
    18 'norm      '    8.9575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5467       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .22390       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=   143.0340     FROM MIGRAD    STATUS=CONVERGED    433 CALLS      721 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.050       -.45360E-06** at limit **
   2  norm          .10000E-03    2.7836        .75225E-07** at limit **
   3  norm          .10000E-03    .82009       -.83124E-06** at limit **
   4  Prefactor     .10000E-03    30.326        .66813E-05** at limit **
   5  norm          91.965        70.284        .15858E-04    .11882E-03
   6  Prefactor     .10001E-03    243.53       -.19764E-04** at limit **
   7  Prefactor     8.2696        1.0018         .0000         .0000    
   8  Prefactor     .10000E-03    25.180       -.66230E-05** at limit **
   9  norm          130.65        131.44        .12226E-04   -.93818E-04
  10  norm          3.9791        1.0081         .0000         .0000    
  11  Prefactor    10000.0        8910.5        .15837E-03** at limit **
  12  Prefactor     53.698        47.725        .82710E-05   -.20134E-02
  13  norm         10000.0        1231.4        .24246E-04** at limit **
  14  Prefactor     1.2998        1.1047         .0000         .0000    
  15  norm          1.0726        1.2120         .0000         .0000    
  16  Prefactor     9.1740        1.0015         .0000         .0000    
  17  Prefactor    10000.0        9460.0        .29653E-03** at limit **
  18  norm          18.276        5.4527        .17538E-05   -.78294E-03
  19  Prefactor    10000.0        9998.1        .24495E-03** at limit **
  20  Prefactor     .10005E-03    1317.3       -.11268E-04** at limit **
  21  Normalizat    .10000E-01    1.6955        .21270E-04** at limit **
  22  Prefactor     .12420        .11352       -.49629E-05   -.10458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 91.9649
  Prefactor  = 0.000100006
  Prefactor  = 8.26963
  Prefactor  = 0.0001
  norm       = 130.647
  norm       = 3.9791
  Prefactor  = 10000
  Prefactor  = 53.6979
  norm       = 10000
  Prefactor  = 1.29981
  norm       = 1.07257
  Prefactor  = 9.17399
  Prefactor  = 10000
  norm       = 18.2761
  Prefactor  = 10000
  Prefactor  = 0.000100052
  Normalizat = 0.01
  Prefactor  = 0.124198
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   143.0340     FROM HESSE     STATUS=FAILED        35 CALLS      756 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.192        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7811        .88303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .84582        .48895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          91.965        70.062        .97445E-03   -1.3787    
   6  Prefactor     .10001E-03    248.58        .11459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     503.17        494.87         .0000       -1.5133    
   8  Prefactor     .10000E-03    .28222E-01   -.66230E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          130.65        .77944        .12226E-04   -1.3417    
  10  norm          3.9791        1.0081         .0000       -1.5309    
  11  Prefactor    10000.0        .13523        .15837E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.698        3.9604        .82710E-05   -1.4241    
  13  norm         10000.0        .37871E-01    .24246E-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    10000.0        .53278E-01    .29653E-03    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.276        1.4300        .17538E-05   -1.4853    
  19  Prefactor    10000.0        .18728        .24495E-03    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    .18341       -.11268E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25733        .21270E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12420        .38644       -.49629E-05   -1.3474    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.17663e-10
Minuit parameter uncertainties:
  1  2.79539e-05
  2  4.97206e-06
  3  3.14862e-06
  4  0.000353304
  5  70.1254
  6  0.00252869
  7  1.00184
  8  1.21094e-06
  9  0.779437
  10  1.00812
  11  0.00211304
  12  3.96043
  13  0.000230159
  14  1.10472
  15  1.21206
  16  1.00149
  17  0.00762976
  18  1.42997
  19  0.00676018
  20  0.000196109
  21  9.29219e-06
  22  0.394742
Done.

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

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.000e+04  2.113e-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:  1.242e-01  3.947e-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  9.292e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.18343621125e-07

TS (Fixed Index): 0.29
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/285741/likelihoodResults_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.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) = 142.966922675
delta logL = 0.0671028134168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 142.965046478
delta logL = 0.0689790098188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    3.2375       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=   142.9650     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       55 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       3.2372        1.0012        .58949E-01    .42372E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 3.23722
 **********
 **   18 **HESSE 
 **********

 FCN=   142.9650     FROM HESSE     STATUS=OK             9 CALLS       64 TOTAL
                     EDM=   .43E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       3.2372        1.0387        .25223E-02   -.36030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26393e-14
Minuit parameter uncertainties:
  1  1.0474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285741': 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) = 142.965046437
delta logL = 0.0689790510863

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:  3.237e+00  1.047e+00  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:  1.240e-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): 0.29
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/285741/cmap_HighResolution_626832001_627091201_4FGL_J0312.9+4119_daily_bin1495.png

Cleaning up...

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

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-08-17 22:05:13.610512', job_id='285741', GAL2='0.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629263113.61', return_code2='0', ts='0.29', comment='SUCCESS', return_code='101', GAL='0.12', dlogl='6.90e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1495' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 22:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 285741: <4FGL_J0312.9+4119_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1495> 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) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:51:34 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:34 2021
Terminated at Tue Aug 17 22:05:16 2021
Results reported at Tue Aug 17 22:05:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1495 48.2438 41.3289 626832001 627091201 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            863 sec.

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

