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


Performing analysis on: 4FGL_J0312.9+4119_daily_bin1617
RA = 48.2438, Dec = 41.3289
tmin = 658454401, tmax = 658713601
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='171063', job_status='RUN', time_executed='2021-12-07 13:52:15.990553', time_epoch_executed='1638913935.99' WHERE source_name='4FGL J0312.9+4119' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171063/ft1_4FGL_J0312.9+4119_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171063/ft1_4FGL_J0312.9+4119_daily_bin1617.fits outfile=/scratch/kocevski/171063/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1617.fits ra=48.2438 dec=41.3289 rad=12.0 tmin=658454401.0 tmax=658713601.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 3.05
user 2.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.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/171063/ft1_filteredMKT_4FGL_J0312.9+4119_daily_bin1617.fits evtable="EVENTS" outfile="/scratch/kocevski/171063/ft1_filtered_4FGL_J0312.9+4119_daily_bin1617.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171063/ft1_filtered_4FGL_J0312.9+4119_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/171063/ltcube_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.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/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits
.....................!
real 17.40
user 17.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171063/ft1_filtered_4FGL_J0312.9+4119_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/171063/ltcube_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.fits outfile=/scratch/kocevski/171063/expmap_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.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/171063/ltcube_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.fits
.....................!
real 193.50
user 187.20
sys 5.92

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/171063/ft1_filtered_4FGL_J0312.9+4119_daily_bin1617.fits scfile=/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits outfile=/scratch/kocevski/171063/cmap_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171063/ft1_filtered_4FGL_J0312.9+4119_daily_bin1617.fits scfile=/scratch/kocevski/171063/ft2_4FGL_J0312.9+4119_daily_bin1617.fits outfile=/scratch/kocevski/171063/cmap_HighResolution_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=48.2438 yref=41.3289 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11827E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13784E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    572.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    70.415       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    286.85       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5243       1.0000         .10000E-03   10000.    
    13 'norm      '    .23781E-03   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 '    .80283       1.0000         .10000E-03   10000.    
    18 'norm      '    9.0490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8018       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9594       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4685       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .40986       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   572.0273     FROM MIGRAD    STATUS=CONVERGED    255 CALLS      666 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.368        .90712E-02** at limit **
   2  norm          .10000E-03    1.6760        .90712E-02** at limit **
   3  norm          .63924        .88018        .57604E-02    2.0738    
   4  Prefactor     .10002E-03    252.12        .90712E-02** at limit **
   5  norm          .10000E-03    26.625        .90712E-02** at limit **
   6  Prefactor     575.38        329.87        .43034E-03   -.20339E-01
   7  Prefactor     .17983E-03    1239.7        .39254E-02** at limit **
   8  Prefactor     .10000E-03    10.224        .90712E-02** at limit **
   9  norm          66.075        43.692        .11960E-02    .23546E-03
  10  norm          .10003E-03    774.51        .79673E-02** at limit **
  11  Prefactor     271.11        292.31        .59910E-03    .26223E-02
  12  Prefactor     .45906E-01    7293.9        .47318E-02    .19211E-02
  13  norm          .10000E-03    14.896        .90712E-02** 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     .10000E-03    .38753       -.14058E-04** at limit **
  18  norm          11.396        1.1238       -.32862E-05    .23069E-02
  19  Prefactor     527.23        9.3158        .48679E-04    .20946E-03
  20  Prefactor     1.9594        1.0370         .0000         .0000    
  21  Normalizat    1.4277        1.0408       -.25263E-06    .52372E-05
  22  Prefactor     .40401        .73753       -.90790E-06   -.25663E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.639241
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 575.381
  Prefactor  = 0.000179833
  Prefactor  = 0.0001
  norm       = 66.0755
  norm       = 0.00010003
  Prefactor  = 271.113
  Prefactor  = 0.045906
  norm       = 0.0001
  Prefactor  = 1.29981
  norm       = 1.07257
  Prefactor  = 9.17399
  Prefactor  = 0.000100001
  norm       = 11.396
  Prefactor  = 527.232
  Prefactor  = 1.95938
  Normalizat = 1.42768
  Prefactor  = 0.404011
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   572.0273     FROM HESSE     STATUS=FAILED        35 CALLS      701 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .63924        .88018        .57604E-02   -1.5548    
   4  Prefactor     .10002E-03    252.12        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    26.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     575.38        329.87        .43034E-03   -1.0863    
   7  Prefactor     .17983E-03    1239.7        .39254E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          66.075        43.692        .11960E-02   -1.4080    
  10  norm          .10003E-03    774.51        .79673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     271.11        292.31        .59910E-03   -1.2400    
  12  Prefactor     .45906E-01    7293.9        .47318E-02   -1.5665    
  13  norm          .10000E-03    14.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     581.76        580.23         .0000       -1.5480    
  15  norm          1.0726        1.2120         .0000       -1.5501    
  16  Prefactor     9.1740        1.0015         .0000       -1.5102    
  17  Prefactor     .10000E-03    .38753       -.14058E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.396        1.1238       -.32862E-05   -1.5033    
  19  Prefactor     527.23        9.3158        .48679E-04   -1.1074    
  20  Prefactor     1.9594        1.0370         .0000       -1.5428    
  21  Normalizat    1.4277        1.0408       -.25263E-06   -.79831    
  22  Prefactor     .40401        .73753       -.90790E-06   -1.1660    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.53748e-10
Minuit parameter uncertainties:
  1  9.71744e-06
  2  1.14276e-06
  3  0.880197
  4  0.0044338
  5  3.47278e-05
  6  330.982
  7  0.642985
  8  9.48292e-06
  9  43.7131
  10  0.00979685
  11  293.912
  12  31.9441
  13  7.52239e-06
  14  1.10472
  15  1.21206
  16  1.00149
  17  4.4337e-05
  18  1.1238
  19  9.31579
  20  1.03696
  21  1.05687
  22  0.755969
Done.

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

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  2.711e+02  2.939e+02  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.040e-01  7.560e-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.428e+00  1.057e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 48.244 41.329
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.58e-06 +/- 1.71e-06
Energy Flux (Fixed Index): 3.82e-04 +/- 4.14e-04

TS (Fixed Index): 1.21
Ra Dec: 48.244 41.329
Photon Flux Upper Limit: 6.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171063/likelihoodResults_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.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) = 571.827547264
delta logL = 0.199782910857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 571.82563936
delta logL = 0.201690815593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.890       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7415       1.0000          .0000       10.000    
     3 'Normalizat'    1.2622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42859       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=   571.8256     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      290 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.731        6429.4        .51844E-04   -.27438E-04
   2  Index         3.7430        6.6098        .22633E-02   -.69577E-05
   3  Normalizat    1.2606        1.1302        .47457E-03    .71189E-04
   4  Prefactor     .42881        .26406        .16556E-03   -.58317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.7306
  Index      = 3.74304
  Normalizat = 1.26062
  Prefactor  = 0.428809
 **********
 **   18 **HESSE 
 **********

 FCN=   571.8256     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.731        297.68        .10369E-04   -1.4161    
   2  Index         3.7430        2.2282        .90530E-04   -.25412    
   3  Normalizat    1.2606        1.0103        .94914E-04   -.84750    
   4  Prefactor     .42881        .21395        .33111E-04   -1.1536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32816e-10
Minuit parameter uncertainties:
  1  268.853
  2  2.31556
  3  1.02675
  4  0.214349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171063': 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) = 571.825637924
delta logL = 0.201692251764

Extracting fit parameters...

4FGL J0312.9+4119
   Spectrum: PowerLaw
286    Prefactor:  5.973e+01  2.689e+02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.743e+00  2.316e+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:  4.288e-01  2.143e-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.261e+00  1.027e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 48.244 41.329
Photon Index (Free Index): 3.74 +/- 2.32
Photon Flux (Free Index): 3.15e-06 +/- 3.81e-06
Energy Flux (Free Index): 4.95e-04 +/- 5.02e-04

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/171063/cmap_HighResolution_658454401_658713601_4FGL_J0312.9+4119_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-01', comment='SUCCESS', photon_flux='1.58e-06', energy_flux2='4.95e-04', photon_flux_error='1.71e-06', dlogl='2.02e-01', energy_flux='3.82e-04', photon_flux2='3.15e-06', job_status='DONE', time_completed='2021-12-07 13:57:52.665398', photon_index_error2='2.32', photon_index2='3.74', ts='1.21', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='6.07e-06', energy_flux_error2='5.02e-04', EG='1.43', time_epoch_completed='1638914272.67', return_code='101', job_id='171063', GAL2='0.43', EG2='1.26', return_code2='0', energy_flux_error='4.14e-04', photon_flux_error2='3.81e-06', ts2='1.71', photon_index='2.69' WHERE bin_id='1617' AND source_name='4FGL J0312.9+4119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:57:52 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 171063: <4FGL_J0312.9+4119_daily_bin1617> in cluster <slac> Done

Job <4FGL_J0312.9+4119_daily_bin1617> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:50:24 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:52:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:52:04 2021
Terminated at Tue Dec  7 13:57:53 2021
Results reported at Tue Dec  7 13:57:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.9+4119_daily_bin1617 48.2438 41.3289 658454401 658713601 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 :                                   336.62 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             485.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   348 sec.
    Turnaround time :                            449 sec.

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

