/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: Dan/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 65 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_grnumber of points = 7599
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0143.1-3622_daily_bin1647
RA = 25.7856, Dec = -36.3674
tmin = 666230401, tmax = 666489601
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='824718', job_status='RUN', time_executed='2022-02-14 00:07:38.991474', time_epoch_executed='1644826058.99' WHERE source_name='4FGL J0143.1-3622' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824718/ft1_4FGL_J0143.1-3622_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824718/ft1_4FGL_J0143.1-3622_daily_bin1647.fits outfile=/scratch/kocevski/824718/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1647.fits ra=25.7856 dec=-36.3674 rad=12.0 tmin=666230401.0 tmax=666489601.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 5.64
user 4.09
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.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/824718/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1647.fits evtable="EVENTS" outfile="/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.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 1.21
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/824718/ltcube_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.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/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits
.....................!
real 14.03
user 11.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/824718/ltcube_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits outfile=/scratch/kocevski/824718/expmap_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.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/824718/ltcube_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits
.....................!
real 201.48
user 185.61
sys 5.44

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/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits outfile=/scratch/kocevski/824718/cmap_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.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 18.63
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits outfile=/scratch/kocevski/824718/cmap_HighResolution_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.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 13.15
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824718/Model_4FGL_J0143.1-3622_daily_bin1647.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/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits.....................!
real 150.50
user 101.27
sys 1.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits', '/scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits', expMap='/scratch/kocevski/824718/expmap_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits', expCube='/scratch/kocevski/824718/ltcube_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/824718/Model_4FGL_J0143.1-3622_daily_bin1647.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/824718/ft1_filtered_4FGL_J0143.1-3622_daily_bin1647.fits
Spacecraft file(s): /scratch/kocevski/824718/ft2_4FGL_J0143.1-3622_daily_bin1647.fits
Exposure map: /scratch/kocevski/824718/expmap_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits
Exposure cube: /scratch/kocevski/824718/ltcube_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/824718/Model_4FGL_J0143.1-3622_daily_bin1647.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) = 5350.69273745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7154       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7291       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1017       1.0000         .10000E-03   10000.    
    11 'norm      '    .96918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6247       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3822       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2120       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87754       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5350.691     FROM MIGRAD    STATUS=CONVERGED     59 CALLS     2140 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7154        1.0184       -.40846E-07    .72571E-04
   2  norm          .10001E-03    7.4431       -.11859E-04** at limit **
   3  norm          1.8379        1.8446       -.17329E-05   -.24099E-03
   4  Prefactor     .10005E-03    3.6084        .46851E-05** at limit **
   5  Prefactor     .10000E-03    1.4393        .17106E-05** at limit **
   6  norm          2.2931        1.6799        .52833E-07   -.26657E-04
   7  Prefactor     9.6057        1.0055       -.97222E-07    .92944E-04
   8  Prefactor     4.7284        1.0409       -.50971E-06    .32204E-03
   9  norm          2.9376        2.5477       -.86340E-06   -.33023E-03
  10  Prefactor     6.1018        1.0511       -.47816E-06   -.23576E-02
  11  norm          .96903        1.7230        .27401E-06   -.17518E-04
  12  Prefactor     4.6247        1.0078        .13144E-06    .62943E-03
  13  norm          1.9654        1.0834        .10129E-05    .18348E-02
  14  Prefactor     .10005E-03    3.9451       -.92574E-05** at limit **
  15  Prefactor     41.987        1.0003        .14227E-07    .63959E-03
  16  Prefactor     19.491        1.0478       -.28981E-06    .10753E-02
  17  Prefactor     .10001E-03    7.6168        .20094E-04** at limit **
  18  Prefactor     5.3754        3.7463       -.64851E-05    .73681E-02
  19  norm          1.2121        1.7070       -.77912E-06   -.69396E-04
  20  Prefactor     .10000E-03    4.3946        .38426E-05** at limit **
  21  Prefactor     .10001E-03    4.1058       -.50226E-06** at limit **
  22  Normalizat    .87754        .15407        .81952E-05    .40854E-05
  23  Prefactor     .63400        .17721       -.93174E-05   -.27687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71536
  norm       = 0.000100009
  norm       = 1.83789
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  norm       = 2.29307
  Prefactor  = 9.60565
  Prefactor  = 4.72843
  norm       = 2.93756
  Prefactor  = 6.10183
  norm       = 0.969033
  Prefactor  = 4.62469
  norm       = 1.96537
  Prefactor  = 0.00010005
  Prefactor  = 41.987
  Prefactor  = 19.491
  Prefactor  = 0.000100014
  Prefactor  = 5.37535
  norm       = 1.21209
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.877539
  Prefactor  = 0.634002
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.691     FROM HESSE     STATUS=OK           422 CALLS     2562 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7154        8.3985        .61790E-02   -1.5378    
   2  norm          .10001E-03    11.591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8379        1.8486        .76933E-02   -1.5437    
   4  Prefactor     .10005E-03    6.1978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2931        1.6894        .67764E-02   -1.5405    
   7  Prefactor     9.6057        10.014        .32325E-02   -1.5088    
   8  Prefactor     4.7284        14.003        .46258E-02   -1.5273    
   9  norm          2.9376        2.6094        .59247E-02   -1.5365    
  10  Prefactor     6.1018        3.6680        .40633E-02   -1.5214    
  11  norm          .96903        1.9894        .28700E-01   -1.5511    
  12  Prefactor     4.6247        4.4282        .46789E-02   -1.5278    
  13  norm          1.9654        3.9999        .73960E-02   -1.5428    
  14  Prefactor     .10005E-03    5.7541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.987        26.875        .15466E-02   -1.4411    
  16  Prefactor     19.491        14.629        .22680E-02   -1.4825    
  17  Prefactor     .10001E-03    10.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3754        41.132        .43305E-02   -1.5244    
  19  norm          1.2121        1.7447        .10270E-01   -1.5488    
  20  Prefactor     .10000E-03    4.3999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    11.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87754        .13669        .44614E-01   -.97254    
  23  Prefactor     .63400        .15179        .41516E-01   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30644e-07
Minuit parameter uncertainties:
  1  8.40211
  2  0.0006591
  3  1.84869
  4  0.00115669
  5  2.29152e-07
  6  1.68942
  7  10.0157
  8  14.0129
  9  2.60954
  10  3.66815
  11  1.98955
  12  4.42851
  13  4.00043
  14  0.00107016
  15  26.8824
  16  14.6312
  17  0.00076646
  18  29.7671
  19  1.74478
  20  6.52518e-05
  21  0.000541203
  22  0.136745
  23  0.151892
Done.

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

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  6.102e+00  3.668e+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

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  6.340e-01  1.519e-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:  8.775e-01  1.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.85
Ra Dec: 25.786 -36.367
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 9.44e-06

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) = 5350.62085323
delta logL = 0.0704323728542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.61670446
delta logL = 0.074581137369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2684       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7010       1.0000          .0000       10.000    
     3 'Normalizat'    .86542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64318       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5350.617     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2681        4.1384        .89876E-04    .12451E-02
   2  Index         2.7009        .62432        .57335E-02    .17748E-03
   3  Normalizat    .86543        .15803        .18732E-03   -.26971E-03
   4  Prefactor     .64319        .17888        .24753E-03   -.26216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26806
  Index      = 2.70088
  Normalizat = 0.865428
  Prefactor  = 0.643193
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.617     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2681        3.9474        .35950E-05   -1.5249    
   2  Index         2.7009        .59495        .22934E-03   -.47780    
   3  Normalizat    .86543        .15801        .37464E-04   -.97686    
   4  Prefactor     .64319        .17888        .99013E-05   -1.0580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6995e-10
Minuit parameter uncertainties:
  1  3.94763
  2  0.596742
  3  0.158091
  4  0.179041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824718': 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) = 5350.61670437
delta logL = 0.0745812265914

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  5.268e+00  3.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.701e+00  5.967e-01  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:  6.432e-01  1.790e-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:  8.654e-01  1.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 25.786 -36.367
Photon Index (Free Index): 2.70 +/- 0.60
Photon Flux (Free Index): 6.13e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.47e-05 +/- 8.62e-06

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/824718/cmap_HighResolution_666230401_666489601_4FGL_J0143.1-3622_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.47e-05', photon_flux_error='3.16e-08', dlogl='7.46e-02', energy_flux='1.57e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2022-02-14 00:19:29.816269', photon_index_error2='0.60', photon_index2='2.70', ts='5.85', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='8.62e-06', EG='0.88', time_epoch_completed='1644826769.82', return_code='0', job_id='824718', GAL2='0.64', EG2='0.87', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='4.02e-08', ts2='5.98', photon_index='2.48' WHERE bin_id='1647' AND source_name='4FGL J0143.1-3622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:19:29 PST 2022

', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='4.02e-08', ts2='5.98', photon_index='2.48' WHERE bin_id='1647' AND source_name='4FGL J0143.1-3622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:19:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 824763: <4FGL_J0143.1-3622_daily_bin1647> in cluster <slac> Done

Job <4FGL_J0143.1-3622_daily_bin1647> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 14 00:05:39 2022
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:05:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:05:41 2022
Terminated at Mon Feb 14 00:19:03 2022
Results reported at Mon Feb 14 00:19:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0143.1-3622_daily_bin1647 25.7856 -36.3674 666230401 666489601 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 824718: <4FGL_J0143.1-3622_daily_bin1647> in cluster <slac> Done

Job <4FGL_J0143.1-3622_daily_bin1647> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Feb 14 00:05:35 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:05:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:05:38 2022
Terminated at Mon Feb 14 00:19:30 2022
Results reported at Mon Feb 14 00:19:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0143.1-3622_daily_bin1647 25.7856 -36.3674 666230401 666489601 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 :                                   596.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

