/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 114 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1712
RA = 29.1325, Dec = 39.2493
tmin = 683078401, tmax = 683337601
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='2528', job_status='RUN', time_executed='2022-09-16 10:24:15.586011', time_epoch_executed='1663349055.59' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2528/ft1_4FGL_J0156.5+3914_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2528/ft1_4FGL_J0156.5+3914_daily_bin1712.fits outfile=/scratch/kocevski/2528/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1712.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.83
user 4.55
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.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/2528/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.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.75
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 991

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/2528/ltcube_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.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/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits
.....................!
real 16.20
user 15.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/2528/ltcube_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits outfile=/scratch/kocevski/2528/expmap_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.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/2528/ltcube_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits
.....................!
real 193.52
user 187.28
sys 5.71

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

Setting source of interest to:
4FGL J0156.5+3914 @ 29.1325 39.2493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits outfile=/scratch/kocevski/2528/cmap_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.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=29.1325 yref=39.2493 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits outfile=/scratch/kocevski/2528/cmap_HighResolution_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.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=29.1325 yref=39.2493 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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2528/Model_4FGL_J0156.5+3914_daily_bin1712.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/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits.....................!
real 111.70
user 110.14
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits', '/scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits', expMap='/scratch/kocevski/2528/expmap_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits', expCube='/scratch/kocevski/2528/ltcube_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2528/Model_4FGL_J0156.5+3914_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.5+3914'

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.010e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2528/ft1_filtered_4FGL_J0156.5+3914_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/2528/ft2_4FGL_J0156.5+3914_daily_bin1712.fits
Exposure map: /scratch/kocevski/2528/expmap_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits
Exposure cube: /scratch/kocevski/2528/ltcube_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2528/Model_4FGL_J0156.5+3914_daily_bin1712.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) = 10365.963375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10552E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.5686       1.0000          .0000       .10000E+07
     3 'norm      '    16.290       1.0000          .0000       .10000E+07
     4 'Prefactor '    .65820E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .10286E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .85322       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.123       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32170       1.0000          .0000       .10000E+07
     9 'Prefactor '    .32600E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.081       1.0000          .0000       .10000E+07
    11 'norm      '    .38590E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6876       1.0000          .0000       .10000E+07
    13 'norm      '    .38368       1.0000          .0000       .10000E+07
    14 'norm      '    .65557       1.0000          .0000       .10000E+07
    15 'norm      '    .31765       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.9962       1.0000          .0000       .10000E+07
    17 'norm      '    2.7417       1.0000          .0000       .10000E+07
    18 'Normalizat'    .94017       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10365.96     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1453 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8086        .15039E-06** at limit **
   2  Prefactor     4.6031        5.5818       -.72604E-07    .82650E-02
   3  norm          16.290        2.6097        .13483E-08   -.12014E-02
   4  Prefactor      .0000        10.484       -.17497E-06** at limit **
   5  norm           .0000        2.0908        .25441E-07** at limit **
   6  norm          .85366        .67742        .96594E-09   -.40773E-04
   7  Prefactor     12.098        9.6557        .66833E-07    .77081E-02
   8  Prefactor     .30451        3.9284        .11257E-06   -.22536E-03
   9  Prefactor      .0000        7.5814       -.32344E-07** at limit **
  10  Prefactor     18.302        52.845       -.72862E-06   -.21967E-03
  11  norm           .0000        3.0645        .11003E-06** at limit **
  12  Prefactor     1.7015        5.9352       -.10977E-06    .22946E-03
  13  norm          .38729        3.0589        .18944E-06    .90108E-04
  14  norm          .65553        .45958       -.10748E-07   -.87218E-04
  15  norm          .31726        .23862       -.11299E-08    .15575E-03
  16  Prefactor     2.9874        4.0262       -.11215E-07   -.11101E-03
  17  norm          2.7442        4.3189        .88528E-07   -.41285E-04
  18  Normalizat    .93986        .20905        .11221E-05    .18255E-04
  19  Prefactor     1.0300        .10289       -.14073E-05    .22706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 4.6031
  norm       = 16.2904
  Prefactor  = 0
  norm       = 0
  norm       = 0.853657
  Prefactor  = 12.0983
  Prefactor  = 0.304514
  Prefactor  = 0
  Prefactor  = 18.3018
  norm       = 0
  Prefactor  = 1.70151
  norm       = 0.387285
  norm       = 0.655531
  norm       = 0.317256
  Prefactor  = 2.98744
  norm       = 2.74421
  Normalizat = 0.939864
  Prefactor  = 1.03003
 **********
 **   18 **HESSE 
 **********

 FCN=   10365.96     FROM HESSE     STATUS=OK           328 CALLS     1781 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6031        11.612        .47071E-03   -1.5665    
   3  norm          16.290        2.5952        .24789E-03   -1.5627    
   4  Prefactor      .0000        10.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .55703        .28807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .85366        .68090        .49049E-03   -1.5689    
   7  Prefactor     12.098        11.163        .28745E-03   -1.5638    
   8  Prefactor     .30451        1.2501        .56561E-02   -1.5697    
   9  Prefactor      .0000        7.5754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.302        53.077        .24207E-03   -1.5622    
  11  norm           .0000        3.0485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7015        5.9166        .81016E-03   -1.5682    
  13  norm          .38729        1.6452        .38312E-02   -1.5696    
  14  norm          .65553        .46860        .64391E-03   -1.5692    
  15  norm          .31726        .25593        .94029E-03   -1.5697    
  16  Prefactor     2.9874        4.0825        .58618E-03   -1.5673    
  17  norm          2.7442        4.3586        .61462E-03   -1.5675    
  18  Normalizat    .93986        .18764        .80797E-01   -.95073    
  19  Prefactor     1.0300        .90273E-01    .41251E-01   -.91735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22808e-07
Minuit parameter uncertainties:
  1  3.11437e-06
  2  11.6117
  3  2.5952
  4  1.20115e-05
  5  2.31579e-07
  6  0.680901
  7  11.1629
  8  1.23396
  9  1.8584e-06
  10  53.0784
  11  1.74932e-06
  12  5.9166
  13  1.59644
  14  0.468597
  15  0.255935
  16  4.08255
  17  4.35857
  18  0.187772
  19  0.0902862
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  3.045e-01  1.234e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.030e+00  9.029e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  9.399e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2528/likelihoodResults_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.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) = 10365.9572564
delta logL = 0.000876699243236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10365.9572427
delta logL = 0.000890375684321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30311       1.0000          .0000       .10000E+07
     2 'Index     '    2.5642       1.0000          .0000       10.000    
     3 'Normalizat'    .93917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10365.96     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      239 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29058        6.5885        .53430E-02    .12287E-01
   2  Index         2.5665        3.0945        .36487        .27746E-04
   3  Normalizat    .93916        .12224E-01    .80824E-01    .35411E-04
   4  Prefactor     1.0302        .63511E-02    .41246E-01   -.41771E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.290584
  Index      = 2.5665
  Normalizat = 0.93916
  Prefactor  = 1.03024
 **********
 **   18 **HESSE 
 **********

 FCN=   10365.96     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29058        7.8325        .19620E-03   -1.5697    
   2  Index         2.5665        3.5503        .30091E-01   -.50831    
   3  Normalizat    .93916        .19630        .35778E-03   -.95097    
   4  Prefactor     1.0302        .10113        .17745E-03   -.91728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37652e-08
Minuit parameter uncertainties:
  1  3.01728
  2  4.14498
  3  0.196449
  4  0.101144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2528': 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) = 10365.9572236
delta logL = 0.000909476961169

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  2.906e-01  3.017e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.566e+00  4.145e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.030e+00  1.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  9.392e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 29.133 39.249

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/2528/cmap_HighResolution_683078401_683337601_4FGL_J0156.5+3914_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2022-09-16 10:36:43.124247', job_id='2528', GAL2='1.03', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1663349803.12', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.09e-04', ts2='0.02', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1712' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:36:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 2528: <4FGL_J0156.5+3914_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1712> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:20:54 2022
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:22:03 2022
Terminated at Fri Sep 16 10:36:43 2022
Results reported at Fri Sep 16 10:36:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1712 29.1325 39.2493 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.5+3914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   749.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            949 sec.

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

