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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin1619
RA = 48.2222, Dec = 1.5724
tmin = 658972801, tmax = 659232001
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='171036', job_status='RUN', time_executed='2021-12-07 13:51:56.642821', time_epoch_executed='1638913916.64' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171036/ft1_4FGL_J0312.8+0134_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171036/ft1_4FGL_J0312.8+0134_daily_bin1619.fits outfile=/scratch/kocevski/171036/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin1619.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=658972801.0 tmax=659232001.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.96
user 2.74
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.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/171036/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/171036/ltcube_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.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/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits
.....................!
real 15.13
user 14.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/171036/ltcube_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits outfile=/scratch/kocevski/171036/expmap_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.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/171036/ltcube_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits
.....................!
real 191.47
user 185.58
sys 5.08

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0312.8+0134 @ 48.2222 1.5724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits outfile=/scratch/kocevski/171036/cmap_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.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.2222 yref=1.5724 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits outfile=/scratch/kocevski/171036/cmap_HighResolution_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.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.2222 yref=1.5724 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171036/Model_4FGL_J0312.8+0134_daily_bin1619.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 GAL_V02
Working on...
/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits.................!
real 16.37
user 15.03
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits', '/scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits', expMap='/scratch/kocevski/171036/expmap_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits', expCube='/scratch/kocevski/171036/ltcube_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171036/Model_4FGL_J0312.8+0134_daily_bin1619.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0312.8+0134'

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  4.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171036/ft1_filtered_4FGL_J0312.8+0134_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/171036/ft2_4FGL_J0312.8+0134_daily_bin1619.fits
Exposure map: /scratch/kocevski/171036/expmap_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits
Exposure cube: /scratch/kocevski/171036/ltcube_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171036/Model_4FGL_J0312.8+0134_daily_bin1619.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) = 223.767538645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8519       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13421       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83048E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7568       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26980E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36580       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35701E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33046E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0416       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .45873       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .69444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   223.3019     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      354 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29065E-02    706.32        .51405E-02   -.36605E-02
   2  Prefactor     .52217E-03    691.19        .96731E-02** at limit **
   3  Prefactor     .10060E-03    223.59        .53058E-02** at limit **
   4  Prefactor     20.711        52.546        .21223E-02   -.22065E-04
   5  Prefactor     .42045E-03    403.14        .45294E-02** at limit **
   6  Prefactor     .12896E-03    367.55        .92061E-02** at limit **
   7  norm          .44754        7827.7        .79051E-02    .45450E-02
   8  norm          2.7508        1.0175         .0000         .0000    
   9  Prefactor     .10000E-03    .24852       -.15372E-06** at limit **
  10  Prefactor     .10000E-03    .28676       -.67823E-05** at limit **
  11  norm          4.6270        1.0060         .0000         .0000    
  12  Prefactor     .10000E-03    .21160        .53539E-05** at limit **
  13  Prefactor     .10004E-03    .21100       -.69242E-07** at limit **
  14  Prefactor     2.1380        1.0304         .0000         .0000    
  15  Prefactor     3.0416        1.0142         .0000         .0000    
  16  norm          .10000E-03    .20571        .66356E-06** at limit **
  17  Normalizat    .46423        .79067        .18198E-04    .17043E-04
  18  Prefactor     .69524        1.0447       -.90975E-05   -.16553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00290648
  Prefactor  = 0.000522173
  Prefactor  = 0.000100603
  Prefactor  = 20.711
  Prefactor  = 0.000420447
  Prefactor  = 0.000128963
  norm       = 0.447536
  norm       = 2.75081
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.62701
  Prefactor  = 0.000100002
  Prefactor  = 0.000100041
  Prefactor  = 2.13797
  Prefactor  = 3.04163
  norm       = 0.0001
  Normalizat = 0.464227
  Prefactor  = 0.695238
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   223.3019     FROM HESSE     STATUS=FAILED        23 CALLS      377 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29065E-02    706.32        .51405E-02   -1.5719    
   2  Prefactor     .52217E-03    691.19        .96731E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10060E-03    223.59        .53058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.711        52.546        .21223E-02   -1.4797    
   5  Prefactor     .42045E-03    403.14        .45294E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12896E-03    367.55        .92061E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .44754        7827.7        .79051E-02   -1.5574    
   8  norm          557.72        554.88         .0000       -1.5376    
   9  Prefactor     .10000E-03    .24852       -.15372E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .28676       -.67823E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6270        1.0060         .0000       -1.5278    
  12  Prefactor     .10000E-03    .21160        .53539E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    .21100       -.69242E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1380        1.0304         .0000       -1.5416    
  15  Prefactor     3.0416        1.0142         .0000       -1.5359    
  16  norm          .10000E-03    .20571        .66356E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .46423        .79067        .18198E-04   -1.1410    
  18  Prefactor     .69524        1.0447       -.90975E-05   -1.0371    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80731e-09
Minuit parameter uncertainties:
  1  2.85012
  2  1.09323
  3  0.0233086
  4  52.6634
  5  0.723768
  6  0.207638
  7  114.762
  8  1.01755
  9  1.08837e-06
  10  7.00406e-05
  11  1.00596
  12  4.42936e-05
  13  0.000184974
  14  1.03036
  15  1.01419
  16  5.42896e-06
  17  0.81104
  18  1.07656
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.429e-05  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.952e-01  1.077e+00  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  4.642e-01  8.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 48.222 1.572
Photon Flux Upper Limit: 1.93e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171036/likelihoodResults_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 223.301939084
delta logL = -2.68761374969e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 223.301914783
delta logL = -2.57464833453e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23269E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6863       1.0000          .0000       10.000    
     3 'Normalizat'    .46290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+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=   223.3019     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10528E-03    120.84        .13406E-01** at limit **
   2  Index         2.5793        7.0996        .50000        .29448E-05
   3  Normalizat    .46422        .20534E-01    .28178E-03    .44318E-05
   4  Prefactor     .69524        .13707E-01    .15362E-03    .11048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105282
  Index      = 2.57926
  Normalizat = 0.46422
  Prefactor  = 0.695243
 **********
 **   18 **HESSE 
 **********

 FCN=   223.3019     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10528E-03    1038.5        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5793        5.8026        .50000       -.50539    
   3  Normalizat    .46422        .61814E-01    .11271E-04   -1.1410    
   4  Prefactor     .69524        .41268E-01    .30724E-04   -1.0371    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37581e-09
Minuit parameter uncertainties:
  1  0.150818
  2  1216.93
  3  0.0618236
  4  0.0412701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171036': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 223.301912365
delta logL = -1.5705450096e-07

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.053e-04  1.508e-01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.579e+00  1.217e+03  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.952e-01  4.127e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  4.642e-01  6.182e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 48.222 1.572

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/171036/cmap_HighResolution_658972801_659232001_4FGL_J0312.8+0134_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-01', job_status='DONE', photon_flux_upper_limit='1.93e-06', time_completed='2021-12-07 13:57:15.299711', job_id='171036', GAL2='0.70', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1638914235.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.70', dlogl='-1.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1619' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:57:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 171036: <4FGL_J0312.8+0134_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin1619> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:50:22 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:51:45 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:51:45 2021
Terminated at Tue Dec  7 13:57:16 2021
Results reported at Tue Dec  7 13:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin1619 48.2222 1.5724 658972801 659232001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0312.8+0134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   317.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             511.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   331 sec.
    Turnaround time :                            414 sec.

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

