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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1444
RA = 48.2438, Dec = 41.3289
tmin = 613612801, tmax = 613872001
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='284473', job_status='RUN', time_executed='2021-08-17 21:49:06.924274', time_epoch_executed='1629262146.92' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284473

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284473/ft1_4FGL_J0312.9+4119_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284473/ft1_4FGL_J0312.9+4119_daily_bin1444.fits outfile=/scratch/kocevski/284473/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1444.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=613612801.0 tmax=613872001.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.99
user 2.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/284473/ltcube_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.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/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits
.....................!
real 13.88
user 13.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/284473/ltcube_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits outfile=/scratch/kocevski/284473/expmap_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.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/284473/ltcube_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits
.....................!
real 194.06
user 185.72
sys 4.88

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/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits scfile=/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits outfile=/scratch/kocevski/284473/cmap_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.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.94
user 0.38
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits scfile=/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits outfile=/scratch/kocevski/284473/cmap_HighResolution_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.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 1.11
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits', '/scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits', expMap='/scratch/kocevski/284473/expmap_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits', expCube='/scratch/kocevski/284473/ltcube_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/284473/Model_4FGL_J0312.9+4119_daily_bin1444.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/284473/ft1_filtered_4FGL_J0312.9+4119_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/284473/ft2_4FGL_J0312.9+4119_daily_bin1444.fits
Exposure map: /scratch/kocevski/284473/expmap_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits
Exposure cube: /scratch/kocevski/284473/ltcube_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/284473/Model_4FGL_J0312.9+4119_daily_bin1444.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3647.99758966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3647.93884677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93967       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6560       1.0000         .10000E-03   10000.    
     9 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    35.022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9602       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1646.3       1.0000         .10000E-03   10000.    
    18 'norm      '    .10827E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12273E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42450E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0692       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=   3647.939     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2393 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6871        .26278E-07** at limit **
   2  norm          .93962        .63362        .19866E-07   -.10867E-04
   3  norm          .10000E-03    .10699        .21997E-07** at limit **
   4  Prefactor     .10000E-03    1.8676        .28149E-07** at limit **
   5  norm          .10000E-03    2.5335        .26630E-07** at limit **
   6  Prefactor     .10000E-03    19.587        .19382E-07** at limit **
   7  Prefactor     .10003E-03    265.95       -.46997E-05** at limit **
   8  Prefactor     7.6587        7.0030        .27701E-05   -.23898E-03
   9  norm          .10000E-03    16.156        .68909E-07** at limit **
  10  norm          35.012        56.094       -.33578E-06   -.14930E-04
  11  Prefactor     17.584        19.632        .12795E-06   -.42554E-05
  12  Prefactor     .10000E-03    72.538       -.12794E-06** at limit **
  13  norm          2.4857        1.3915        .25354E-07   -.19552E-05
  14  Prefactor     2.9609        3.7141        .25449E-06   -.56373E-05
  15  norm          .10000E-03    1.6764        .95988E-08** at limit **
  16  Prefactor     .10000E-03    196.29        .11775E-05** at limit **
  17  Prefactor     1646.4        622.28       -.24485E-06    .10070E-04
  18  norm          .10001E-03    187.96        .17378E-05** at limit **
  19  Prefactor     .10000E-03    27.115        .14783E-06** at limit **
  20  Prefactor     .10002E-03    659.52       -.23350E-05** at limit **
  21  Normalizat    1.0693        .38367       -.14993E-05   -.14983E-04
  22  Prefactor     1.0690        .13230       -.67585E-06    .14859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.939619
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 7.65866
  norm       = 0.0001
  norm       = 35.0118
  Prefactor  = 17.5836
  Prefactor  = 0.0001
  norm       = 2.48566
  Prefactor  = 2.96094
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1646.41
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Normalizat = 1.0693
  Prefactor  = 1.06898
 **********
 **   18 **HESSE 
 **********

 FCN=   3647.939     FROM HESSE     STATUS=OK           336 CALLS     2729 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6980        .76545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93962        .63232        .38072E-04   -1.5514    
   3  norm          .10000E-03    .11005        .38503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8713        .80587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5377        .93881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    266.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6587        7.0057        .72195E-03   -1.5154    
   9  norm          .10000E-03    16.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          35.012        56.122        .67717E-04   -1.4524    
  11  Prefactor     17.584        19.627        .95516E-04   -1.4869    
  12  Prefactor     .10000E-03    72.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4857        1.3916        .49913E-04   -1.5393    
  14  Prefactor     2.9609        3.7033        .12359E-03   -1.5364    
  15  norm          .10000E-03    1.6797        .76352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    196.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1646.4        622.60        .53930E-04   -.73518    
  18  norm          .10001E-03    188.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    659.95        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0693        .40769        .48965E-03   -.90744    
  22  Prefactor     1.0690        .14208        .16527E-03   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5026e-10
Minuit parameter uncertainties:
  1  1.77379e-06
  2  0.632329
  3  3.16052e-07
  4  1.85726e-06
  5  2.15607e-06
  6  2.84241e-06
  7  0.00589908
  8  7.00641
  9  1.23531e-05
  10  56.2063
  11  19.6338
  12  0.000114304
  13  1.39167
  14  3.70358
  15  7.6721e-07
  16  0.00158144
  17  625.563
  18  0.00233481
  19  7.99528e-06
  20  0.00668715
  21  0.40889
  22  0.142127
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3647.93884466

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  1.758e+01  1.963e+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:  1.069e+00  1.421e-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.069e+00  4.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 48.244 41.329
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 1.14e-07
Energy Flux (Fixed Index): 2.48e-05 +/- 2.77e-05

TS (Fixed Index): 1.37
Ra Dec: 48.244 41.329
Photon Flux Upper Limit: 3.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284473/likelihoodResults_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.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) = 3647.72016205
delta logL = 0.21868260461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3647.70666813
delta logL = 0.232176529334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.891       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1424       1.0000          .0000       10.000    
     3 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0641       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=   3647.707     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      302 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.893        50.459        .62686E-04    .88866E-05
   2  Index         2.1424        .70712        .64061E-02   -.11770E-04
   3  Normalizat    1.0867        .40333        .48627E-03    .34672E-04
   4  Prefactor     1.0641        .13720        .16554E-03    .12519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8926
  Index      = 2.14238
  Normalizat = 1.08668
  Prefactor  = 1.06412
 **********
 **   18 **HESSE 
 **********

 FCN=   3647.707     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.893        48.957        .25074E-05   -1.4428    
   2  Index         2.1424        .68622        .25624E-03   -.60836    
   3  Normalizat    1.0867        .40337        .19451E-04   -.90181    
   4  Prefactor     1.0641        .13723        .33108E-04   -.90622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47375e-11
Minuit parameter uncertainties:
  1  49.0056
  2  0.689463
  3  0.404514
  4  0.137273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284473': 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) = 3647.70666812
delta logL = 0.232176540899

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  4.089e+01  4.901e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.142e+00  6.895e-01  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.064e+00  1.373e-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.087e+00  4.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 48.244 41.329
Photon Index (Free Index): 2.14 +/- 0.69
Photon Flux (Free Index): 8.60e-08 +/- 9.52e-08
Energy Flux (Free Index): 4.32e-05 +/- 5.80e-05

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/284473/cmap_HighResolution_613612801_613872001_4FGL_J0312.9+4119_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='4.32e-05', photon_flux_error='1.14e-07', dlogl='2.32e-01', energy_flux='2.48e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-08-17 21:58:30.003442', photon_index_error2='0.69', photon_index2='2.14', ts='1.37', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='3.78e-07', energy_flux_error2='5.80e-05', EG='1.07', time_epoch_completed='1629262710.0', return_code='0', job_id='284473', GAL2='1.06', EG2='1.09', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='9.52e-08', ts2='1.85', photon_index='2.69' WHERE bin_id='1444' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:58:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 284473: <4FGL_J0312.9+4119_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1444> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 21:46:23 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:48:07 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:48:07 2021
Terminated at Tue Aug 17 21:58:30 2021
Results reported at Tue Aug 17 21:58:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1444 48.2438 41.3289 613612801 613872001 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 :                                   542.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            727 sec.

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

