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


Performing analysis on: 4FGL_J0143.1-3622_daily_bin1612
RA = 25.7856, Dec = -36.3674
tmin = 657158401, tmax = 657417601
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='142258', job_status='RUN', time_executed='2021-12-07 12:16:23.891734', time_epoch_executed='1638908183.89' WHERE source_name='4FGL J0143.1-3622' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142258/ft1_4FGL_J0143.1-3622_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142258/ft1_4FGL_J0143.1-3622_daily_bin1612.fits outfile=/scratch/kocevski/142258/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1612.fits ra=25.7856 dec=-36.3674 rad=12.0 tmin=657158401.0 tmax=657417601.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.70
user 3.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.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/142258/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1612.fits evtable="EVENTS" outfile="/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/142258/ltcube_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.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/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits
.....................!
real 12.92
user 12.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/142258/ltcube_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits outfile=/scratch/kocevski/142258/expmap_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.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/142258/ltcube_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits
.....................!
real 192.81
user 186.04
sys 4.58

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 178 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 J0143.1-3622 @ 25.7856 -36.3674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits outfile=/scratch/kocevski/142258/cmap_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.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=25.7856 yref=-36.3674 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits outfile=/scratch/kocevski/142258/cmap_HighResolution_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.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=25.7856 yref=-36.3674 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142258/Model_4FGL_J0143.1-3622_daily_bin1612.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/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits.....................!
real 120.89
user 118.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits', '/scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits', expMap='/scratch/kocevski/142258/expmap_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits', expCube='/scratch/kocevski/142258/ltcube_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/142258/Model_4FGL_J0143.1-3622_daily_bin1612.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0143.1-3622'

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  1.107e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.476e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/142258/ft1_filtered_4FGL_J0143.1-3622_daily_bin1612.fits
Spacecraft file(s): /scratch/kocevski/142258/ft2_4FGL_J0143.1-3622_daily_bin1612.fits
Exposure map: /scratch/kocevski/142258/expmap_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits
Exposure cube: /scratch/kocevski/142258/ltcube_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/142258/Model_4FGL_J0143.1-3622_daily_bin1612.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) = 6587.35814876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.388       1.0000         .10000E-03   10000.    
     2 'norm      '    21.499       1.0000         .10000E-03   10000.    
     3 'norm      '    .10756E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2559       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4231       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15149E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10876E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.631       1.0000         .10000E-03   10000.    
    19 'norm      '    .10858E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15246E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31094E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74073       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6587.357     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2619 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.380        7.7655       -.55165E-06   -.54474E-05
   2  norm          21.667        30.941       -.12201E-05    .73534E-05
   3  norm          .10000E-03    .72772       -.78708E-07** at limit **
   4  Prefactor     8.1498        14.734       -.79913E-07   -.42442E-04
   5  Prefactor     .10000E-03    .80362        .30032E-07** at limit **
   6  norm          2.5443        1.5770       -.62244E-07    .12948E-03
   7  Prefactor     8.4216        8.1272       -.85991E-06    .86564E-04
   8  Prefactor     .10000E-03    6.0991        .83476E-07** at limit **
   9  norm          1.9592        2.0069       -.13182E-06   -.31823E-03
  10  Prefactor     .10000E-03    .92719        .73509E-07** at limit **
  11  norm          .10000E-03    1.0095        .58345E-07** at limit **
  12  Prefactor     .10000E-03    2.0210        .63321E-07** at limit **
  13  norm          1.0805        3.1129       -.11671E-05   -.10477E-02
  14  Prefactor     4.7137        8.0250       -.26886E-05   -.84901E-04
  15  Prefactor     18.803        20.821        .35642E-06    .44756E-04
  16  Prefactor     .10000E-03    12.037       -.15314E-05** at limit **
  17  Prefactor     .10000E-03    12.228        .19748E-05** at limit **
  18  Prefactor     51.596        50.140       -.14095E-04    .20380E-03
  19  norm          .10000E-03    1.0510       -.64021E-08** at limit **
  20  Prefactor     .10000E-03    7.1980        .25364E-06** at limit **
  21  Prefactor     .10000E-03    25.039        .44779E-06** at limit **
  22  Normalizat    .74060        .13312        .16411E-05   -.28912E-04
  23  Prefactor     1.0263        .15602        .14811E-06    .93400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3797
  norm       = 21.6675
  norm       = 0.0001
  Prefactor  = 8.14982
  Prefactor  = 0.0001
  norm       = 2.54428
  Prefactor  = 8.42156
  Prefactor  = 0.0001
  norm       = 1.95925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08049
  Prefactor  = 4.71373
  Prefactor  = 18.8033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.5964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.740596
  Prefactor  = 1.0263
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.357     FROM HESSE     STATUS=OK           370 CALLS     2989 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.380        7.7688        .11872E-03   -1.5033    
   2  norm          21.667        30.954        .86384E-04   -1.4777    
   3  norm          .10000E-03    .73542        .67612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1498        14.727        .13953E-03   -1.5137    
   5  Prefactor     .10000E-03    .81319        .71021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5443        1.5789        .77728E-04   -1.5389    
   7  Prefactor     8.4216        8.1183        .13813E-03   -1.5127    
   8  Prefactor     .10000E-03    6.1106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9592        1.9981        .11225E-03   -1.5428    
  10  Prefactor     .10000E-03    .94373        .76282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0353        .15899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0225        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0805        3.1135        .22804E-03   -1.5500    
  14  Prefactor     4.7137        8.0851        .18511E-03   -1.5274    
  15  Prefactor     18.803        20.530        .92634E-04   -1.4840    
  16  Prefactor     .10000E-03    12.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.596        49.116        .55815E-04   -1.4270    
  19  norm          .10000E-03    2.2242        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.079        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74060        .15789        .21427E-03   -1.0231    
  23  Prefactor     1.0263        .18608        .22267E-03   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39611e-09
Minuit parameter uncertainties:
  1  7.76945
  2  30.9771
  3  7.99482e-07
  4  14.7334
  5  2.80879e-06
  6  1.57896
  7  8.11935
  8  7.43087e-06
  9  1.9982
  10  2.52929e-06
  11  4.2236e-06
  12  3.78714e-07
  13  3.11397
  14  8.08696
  15  20.5372
  16  1.63689e-05
  17  5.90569e-05
  18  49.1544
  19  1.60134e-05
  20  6.67274e-06
  21  3.64672e-05
  22  0.157987
  23  0.186196
Done.

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

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.529e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.476e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.026e+00  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.406e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 25.786 -36.367
Photon Flux Upper Limit: 3.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/142258/likelihoodResults_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.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) = 6587.36217064
delta logL = -0.00502165786838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6587.35714748
delta logL = 1.50101550389e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6587.357     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      215 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3020        .90712E-02** at limit **
   2  Index         1.9429        5.5451        .50000       -.33065E-05
   3  Normalizat    .74060        .69548E-02    .42830E-01    .22062E-04
   4  Prefactor     1.0263        .84331E-02    .41562E-01    .35719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94288
  Normalizat = 0.740597
  Prefactor  = 1.0263
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.357     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.295        .90346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9429        8.2383        .50000       -.65786    
   3  Normalizat    .74060        .22771E-01    .21427E-03   -1.0231    
   4  Prefactor     1.0263        .27620E-01    .22267E-03   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.82826e-08
Minuit parameter uncertainties:
  1  2.62576e-06
  2  335.98
  3  0.0227711
  4  0.0276203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142258': 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) = 6587.35713385
delta logL = 1.51356034621e-05

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.626e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.943e+00  3.360e+02  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.026e+00  2.762e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.406e-01  2.277e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 25.786 -36.367

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/142258/cmap_HighResolution_657158401_657417601_4FGL_J0143.1-3622_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2021-12-07 12:29:10.435223', job_id='142258', GAL2='1.03', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1638908950.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.51e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1612' AND source_name='4FGL J0143.1-3622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:29:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 142258: <4FGL_J0143.1-3622_daily_bin1612> in cluster <slac> Done

Job <4FGL_J0143.1-3622_daily_bin1612> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:15:18 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:16:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:16:01 2021
Terminated at Tue Dec  7 12:29:11 2021
Results reported at Tue Dec  7 12:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0143.1-3622_daily_bin1612 25.7856 -36.3674 657158401 657417601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0143.1-3622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   760.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            833 sec.

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

