/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 173 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0423.3-0120_daily_bin293
RA = 65.826, Dec = -1.3342
tmin = 315273601, tmax = 315532801
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='404499', job_status='RUN', time_executed='2021-08-20 13:14:58.022937', time_epoch_executed='1629490498.02' WHERE source_name='4FGL J0423.3-0120' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404499/ft1_4FGL_J0423.3-0120_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404499/ft1_4FGL_J0423.3-0120_daily_bin293.fits outfile=/scratch/kocevski/404499/ft1_filteredMKT_4FGL_J0423.3-0120_daily_bin293.fits ra=65.826 dec=-1.3342 rad=12.0 tmin=315273601.0 tmax=315532801.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 8.30
user 3.44
sys 4.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.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/404499/ft1_filteredMKT_4FGL_J0423.3-0120_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.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 5.39
user 0.33
sys 5.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/404499/ltcube_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.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/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits
.....................!
real 18.27
user 12.35
sys 5.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/404499/ltcube_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits outfile=/scratch/kocevski/404499/expmap_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.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/404499/ltcube_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits
.....................!
real 196.70
user 185.01
sys 11.27

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

Setting source of interest to:
4FGL J0423.3-0120 @ 65.826 -1.3342

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits outfile=/scratch/kocevski/404499/cmap_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.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=65.826 yref=-1.3342 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 5.39
user 0.38
sys 4.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits outfile=/scratch/kocevski/404499/cmap_HighResolution_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.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=65.826 yref=-1.3342 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 5.41
user 0.37
sys 4.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404499/Model_4FGL_J0423.3-0120_daily_bin293.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/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits.....................!
real 76.81
user 68.75
sys 7.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits', '/scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits', expMap='/scratch/kocevski/404499/expmap_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits', expCube='/scratch/kocevski/404499/ltcube_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404499/Model_4FGL_J0423.3-0120_daily_bin293.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0423.3-0120'

4FGL J0423.3-0120
   Spectrum: LogParabola
225         norm:  1.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.237e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  8.826e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  5.995e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404499/ft1_filtered_4FGL_J0423.3-0120_daily_bin293.fits
Spacecraft file(s): /scratch/kocevski/404499/ft2_4FGL_J0423.3-0120_daily_bin293.fits
Exposure map: /scratch/kocevski/404499/expmap_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits
Exposure cube: /scratch/kocevski/404499/ltcube_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404499/Model_4FGL_J0423.3-0120_daily_bin293.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) = 4656.13501016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.724       1.0000         .10000E-03   10000.    
     8 'norm      '    11.436       1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15118E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.191       1.0000         .10000E-03   10000.    
    20 'norm      '    .11934E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.446       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .25609       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4656.122     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2602 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.855        3.1112        .17449E-07   -.30142E-04
   2  Prefactor     .10000E-03    139.32       -.22080E-04** at limit **
   3  Prefactor     .10000E-03    7.9566        .61753E-06** at limit **
   4  norm          .10000E-03    6.9412       -.20188E-06** at limit **
   5  Prefactor     .10000E-03    17.854        .12230E-04** at limit **
   6  norm          4.0298        5.7819       -.34403E-05   -.55590E-03
   7  Prefactor     79.730        41.230        .29114E-05   -.37433E-04
   8  norm          11.450        12.485       -.88375E-06   -.71668E-04
   9  norm          .10000E-03    36.305       -.11148E-04** at limit **
  10  norm          .10000E-03    .71233        .42840E-06** at limit **
  11  Prefactor     .10000E-03    1.5025       -.95209E-07** at limit **
  12  Prefactor     .10000E-03    12.753        .12871E-04** at limit **
  13  Prefactor     .10000E-03    63.782        .22185E-04** at limit **
  14  Prefactor     .10000E-03    4.6096       -.18285E-06** at limit **
  15  norm          3.4003        3.6927       -.42997E-06   -.71258E-03
  16  Prefactor     .10000E-03    14.523       -.20833E-04** at limit **
  17  norm          3.5860        3.6692       -.27451E-06   -.53701E-03
  18  Prefactor     10.987        10.895       -.51468E-06   -.93413E-04
  19  Prefactor     32.194        36.692        .14137E-05   -.18083E-05
  20  norm          .10000E-03    1.3879       -.78537E-06** at limit **
  21  Prefactor     43.454        39.357        .50012E-05    .13968E-03
  22  Normalizat    .25529        .34932        .14879E-05   -.31165E-04
  23  Prefactor     1.1415        .14709       -.15639E-06    .55140E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02976
  Prefactor  = 79.7303
  norm       = 11.4495
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40034
  Prefactor  = 0.0001
  norm       = 3.58604
  Prefactor  = 10.987
  Prefactor  = 32.1937
  norm       = 0.000100005
  Prefactor  = 43.454
  Normalizat = 0.255289
  Prefactor  = 1.14149
 **********
 **   18 **HESSE 
 **********

 FCN=   4656.122     FROM HESSE     STATUS=OK           370 CALLS     2972 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.855        3.0784        .58610E-04   -1.5019    
   2  Prefactor     .10000E-03    140.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.9413        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0298        5.7012        .18569E-03   -1.5306    
   7  Prefactor     79.730        41.216        .44979E-04   -1.3920    
   8  norm          11.450        12.068        .11847E-03   -1.5031    
   9  norm          .10000E-03    36.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7816        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3307        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6241        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4003        3.6686        .12594E-03   -1.5339    
  16  Prefactor     .10000E-03    14.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5860        3.4920        .11430E-03   -1.5329    
  18  Prefactor     10.987        10.807        .12090E-03   -1.5045    
  19  Prefactor     32.194        36.661        .70623E-04   -1.4573    
  20  norm          .10000E-03    9.1286        .14925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.454        38.240        .60822E-04   -1.4389    
  22  Normalizat    .25529        .27847        .63476E-03   -1.2561    
  23  Prefactor     1.1415        .12610        .14990E-03   -.88151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21344e-09
Minuit parameter uncertainties:
  1  3.0784
  2  2.39189e-05
  3  1.05525e-05
  4  6.17581e-06
  5  4.22285e-06
  6  5.70192
  7  41.2308
  8  12.071
  9  8.09961e-05
  10  2.93845e-05
  11  4.68466e-05
  12  8.1403e-06
  13  3.60792e-05
  14  1.19211e-05
  15  3.66881
  16  1.11628e-06
  17  3.49224
  18  10.8093
  19  36.6871
  20  0.000415289
  21  38.2615
  22  0.279995
  23  0.126131
Done.

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

Extracting fit parameters...

4FGL J0423.3-0120
   Spectrum: LogParabola
225         norm:  1.000e-04  2.938e-05  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.237e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  8.826e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  5.995e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
461    Prefactor:  1.141e+00  1.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
462        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
463        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
460   Normalization:  2.553e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.826 -1.334
Photon Flux Upper Limit: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404499/likelihoodResults_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.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) = 4656.12482149
delta logL = -0.0027172320506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4656.1221069
delta logL = -2.6361676646e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10778E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2401       1.0000          .0000       5.0000    
     3 'Normalizat'    .25531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4640E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4656.122     FROM MIGRAD    STATUS=FAILED        94 CALLS      254 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    399.10        .10937E-02** at limit **
   2  alpha         2.2742        3.4668        .16574       -.30531E-05
   3  Normalizat    .25529        .18013        .63475E-03    .78627E-05
   4  Prefactor     1.1415        .87486E-01    .14990E-03    .21919E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4656.122     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      414 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    399.10        .21553E-03** at limit **
   2  alpha         2.2742        3.4668        .93336E-05   -.30531E-05
   3  Normalizat    .25529        .18013        .23391E-05    .78627E-05
   4  Prefactor     1.1415        .87486E-01    .40823E-06    .21919E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4656.122     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      449 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8015        .21873E-03** at limit **
   2  alpha         2.2879        3.8353        .66298E-02    .68592E-09
   3  Normalizat    .25529        .25105        .25390E-04   -.26866E-05
   4  Prefactor     1.1415        .12230        .59959E-05   -.87220E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28785
  Normalizat = 0.25529
  Prefactor  = 1.14149
 **********
 **   18 **HESSE 
 **********

 FCN=   4656.122     FROM HESSE     STATUS=OK            23 CALLS      472 TOTAL
                     EDM=   .71E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8018        .43746E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2879        3.8363        .13260E-02   -.84962E-01
   3  Normalizat    .25529        .25123        .50780E-05   -1.2561    
   4  Prefactor     1.1415        .12242        .11992E-05   -.88151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09213e-14
Minuit parameter uncertainties:
  1  6.91266e-08
  2  105.879
  3  0.252353
  4  0.122454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404499': 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) = 4656.12210414
delta logL = 1.19121978059e-07

Extracting fit parameters...

4FGL J0423.3-0120
   Spectrum: LogParabola
225         norm:  1.000e-04  6.913e-08  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.288e+00  1.059e+02  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  8.826e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  5.995e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
461    Prefactor:  1.141e+00  1.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
462        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
463        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
460   Normalization:  2.553e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.826 -1.334

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/404499/cmap_HighResolution_315273601_315532801_4FGL_J0423.3-0120_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-08-20 13:25:19.001819', job_id='404499', GAL2='1.14', fit_tolerance='1e-08', EG2='0.26', EG='0.26', time_epoch_completed='1629491119.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='293' AND source_name='4FGL J0423.3-0120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 404499: <4FGL_J0423.3-0120_daily_bin293> in cluster <slac> Done

Job <4FGL_J0423.3-0120_daily_bin293> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:10:31 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:10:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:10:32 2021
Terminated at Fri Aug 20 13:25:20 2021
Results reported at Fri Aug 20 13:25:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0423.3-0120_daily_bin293 65.826 -1.3342 315273601 315532801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0423.3-0120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

