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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1445
RA = 29.2165, Dec = -47.7352
tmin = 613872001, tmax = 614131201
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='938120', job_status='RUN', time_executed='2021-08-14 21:41:33.386295', time_epoch_executed='1629002493.39' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938120

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938120/ft1_4FGL_J0156.8-4744_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938120/ft1_4FGL_J0156.8-4744_daily_bin1445.fits outfile=/scratch/kocevski/938120/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1445.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=613872001.0 tmax=614131201.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.27
user 2.06
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.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/938120/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/938120/ltcube_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.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/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits
.....................!
real 14.27
user 13.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/938120/ltcube_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits outfile=/scratch/kocevski/938120/expmap_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.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/938120/ltcube_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits
.....................!
real 192.01
user 185.88
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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 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 J0156.8-4744 @ 29.2165 -47.7352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits outfile=/scratch/kocevski/938120/cmap_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.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.2165 yref=-47.7352 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits outfile=/scratch/kocevski/938120/cmap_HighResolution_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.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.2165 yref=-47.7352 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938120/Model_4FGL_J0156.8-4744_daily_bin1445.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits.....................!
real 147.33
user 145.74
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits', '/scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits', expMap='/scratch/kocevski/938120/expmap_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits', expCube='/scratch/kocevski/938120/ltcube_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938120/Model_4FGL_J0156.8-4744_daily_bin1445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.8-4744'

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938120/ft1_filtered_4FGL_J0156.8-4744_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/938120/ft2_4FGL_J0156.8-4744_daily_bin1445.fits
Exposure map: /scratch/kocevski/938120/expmap_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits
Exposure cube: /scratch/kocevski/938120/ltcube_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938120/Model_4FGL_J0156.8-4744_daily_bin1445.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) = 7548.93405088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15498E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20429E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.172       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11365E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .19413E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5097       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23322E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39691       1.0000         .10000E-03   10000.    
    14 'norm      '    39.663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.309       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17279E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15154E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26635E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83433       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7548.927     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2956 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.287        61.077       -.29178E-05   -.27559E-03
   2  Prefactor     25.447        24.836       -.12875E-05   -.27239E-03
   3  Prefactor     .10000E-03    20.427       -.74860E-06** at limit **
   4  norm          .10000E-03    5.0027        .13861E-06** at limit **
   5  Prefactor     39.014        31.163       -.10155E-05    .63194E-04
   6  Prefactor     6.3744        5.7270        .26817E-05   -.58233E-04
   7  Prefactor     .10000E-03    2.4470        .44556E-07** at limit **
   8  Prefactor     .10009E-03    4.4291        .15897E-05** at limit **
   9  norm          .10000E-03    17.239        .14116E-06** at limit **
  10  norm          4.5136        4.0931       -.31414E-07   -.52641E-03
  11  Prefactor     .10000E-03    6.6629        .23426E-07** at limit **
  12  Prefactor     .10000E-03    9.1543        .17667E-07** at limit **
  13  Prefactor     .40222        4.1717       -.92349E-06    .29754E-03
  14  norm          39.665        3.7784       -.40775E-07   -.51255E-04
  15  Prefactor     26.048        45.793       -.37851E-07   -.96573E-05
  16  Prefactor     .10000E-03    6.1993       -.84111E-07** at limit **
  17  Prefactor     .10000E-03    8.2892       -.27065E-07** at limit **
  18  norm          6.6148        2.3870        .69900E-08    .13294E-04
  19  Prefactor     15.275        11.913       -.73384E-06   -.47840E-03
  20  Prefactor     .10000E-03    28.004       -.16733E-06** at limit **
  21  norm          .10000E-03    .38387       -.79119E-07** at limit **
  22  Prefactor     .10000E-03    5.0954        .15880E-06** at limit **
  23  Prefactor     .10000E-03    3.6442        .13993E-07** at limit **
  24  Normalizat    .83447        .17749        .38077E-06   -.17554E-03
  25  Prefactor     1.2255        .19078       -.78494E-06   -.12807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.2869
  Prefactor  = 25.4468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.0137
  Prefactor  = 6.37439
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  norm       = 0.0001
  norm       = 4.51356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.402216
  norm       = 39.6649
  Prefactor  = 26.0482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61477
  Prefactor  = 15.2749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.834475
  Prefactor  = 1.22547
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.927     FROM HESSE     STATUS=OK           421 CALLS     3377 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.287        62.869        .23928E-03   -1.4029    
   2  Prefactor     25.447        25.147        .79395E-04   -1.4699    
   3  Prefactor     .10000E-03    20.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.041        .37214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.014        31.266        .64041E-04   -1.4458    
   6  Prefactor     6.3744        5.8522        .79509E-03   -1.5203    
   7  Prefactor     .10000E-03    2.4841        .13272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    21.886        .32940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5136        3.9852        .15800E-03   -1.5283    
  11  Prefactor     .10000E-03    6.7001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40222        10.339        .32473E-02   -1.5581    
  14  norm          39.665        3.7121        .47297E-04   -1.4448    
  15  Prefactor     26.048        45.817        .78102E-04   -1.4687    
  16  Prefactor     .10000E-03    6.2232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6148        2.3857        .77539E-04   -1.5194    
  19  Prefactor     15.275        12.082        .10243E-03   -1.4926    
  20  Prefactor     .10000E-03    28.070        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .39676        .10482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6487        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83447        .21509        .30035E-03   -.98802    
  25  Prefactor     1.2255        .23155        .27794E-03   -.85551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91202e-09
Minuit parameter uncertainties:
  1  62.9285
  2  25.1572
  3  0.000195544
  4  0.000122183
  5  31.2791
  6  5.85269
  7  7.01745e-07
  8  0.00285942
  9  3.04747e-05
  10  3.98547
  11  1.18931e-05
  12  5.58048e-06
  13  4.07886
  14  3.71211
  15  45.8789
  16  5.25057e-06
  17  2.02613e-06
  18  2.38571
  19  12.0843
  20  6.13023e-05
  21  1.57173e-06
  22  6.30997e-06
  23  9.17977e-07
  24  0.215308
  25  0.231742
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.001e-04  2.859e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.225e+00  2.317e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.345e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938120/likelihoodResults_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.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) = 7548.92753
delta logL = -0.000216353406358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7548.92731367
delta logL = -2.10038706427e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1836       1.0000          .0000       10.000    
     3 'Normalizat'    .83451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7548.927     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .84932E-01    .90712E-01** at limit **
   2  Index         2.1769        5.7198        .50000        .19860E-05
   3  Normalizat    .83448        .64376E-03    .67884E-01    .67506E-04
   4  Prefactor     1.2255        .71064E-03    .62844E-01    .52064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17694
  Normalizat = 0.834476
  Prefactor  = 1.22547
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.927     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      266 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.648        .33406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1769        5.9349        .50000       -.59996    
   3  Normalizat    .83448        .55406E-02    .30034E-03   -.98802    
   4  Prefactor     1.2255        .61216E-02    .27794E-03   -.85551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18099e-09
Minuit parameter uncertainties:
  1  0.000191128
  2  80.3404
  3  0.00554058
  4  0.00612159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938120': 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) = 7548.92731363
delta logL = 1.21281118481e-08

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.911e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.177e+00  8.034e+01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.225e+00  6.122e-03  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.345e-01  5.541e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.216 -47.735

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/938120/cmap_HighResolution_613872001_614131201_4FGL_J0156.8-4744_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-08-14 21:57:05.942669', job_id='938120', GAL2='1.23', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629003425.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1445' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 938120: <4FGL_J0156.8-4744_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1445> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:40:28 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:41:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 21:41:13 2021
Terminated at Sat Aug 14 21:57:06 2021
Results reported at Sat Aug 14 21:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1445 29.2165 -47.7352 613872001 614131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.8-4744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   928.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            998 sec.

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

