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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin258
RA = 65.5343, Dec = -6.741
tmin = 306201601, tmax = 306460801
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='395699', job_status='RUN', time_executed='2021-08-20 12:48:51.484126', time_epoch_executed='1629488931.48' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395699/ft1_4FGL_J0422.1-0644_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395699/ft1_4FGL_J0422.1-0644_daily_bin258.fits outfile=/scratch/kocevski/395699/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin258.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=306201601.0 tmax=306460801.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 6.87
user 3.31
sys 3.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.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/395699/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin258.fits evtable="EVENTS" outfile="/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.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 3.90
user 0.35
sys 3.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/395699/ltcube_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.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/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits
.....................!
real 17.05
user 13.26
sys 3.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/395699/ltcube_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits outfile=/scratch/kocevski/395699/expmap_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.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/395699/ltcube_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits
.....................!
real 198.16
user 188.39
sys 9.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 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J0422.1-0644 @ 65.5343 -6.741

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits outfile=/scratch/kocevski/395699/cmap_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.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.5343 yref=-6.741 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 3.83
user 0.41
sys 3.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits outfile=/scratch/kocevski/395699/cmap_HighResolution_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.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.5343 yref=-6.741 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 3.92
user 0.41
sys 3.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395699/Model_4FGL_J0422.1-0644_daily_bin258.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/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits.....................!
real 91.05
user 85.13
sys 5.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits', '/scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits', expMap='/scratch/kocevski/395699/expmap_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits', expCube='/scratch/kocevski/395699/ltcube_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395699/Model_4FGL_J0422.1-0644_daily_bin258.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0422.1-0644'

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395699/ft1_filtered_4FGL_J0422.1-0644_daily_bin258.fits
Spacecraft file(s): /scratch/kocevski/395699/ft2_4FGL_J0422.1-0644_daily_bin258.fits
Exposure map: /scratch/kocevski/395699/expmap_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits
Exposure cube: /scratch/kocevski/395699/ltcube_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395699/Model_4FGL_J0422.1-0644_daily_bin258.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) = 6096.61657111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .44792       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8523       1.0000         .10000E-03   10000.    
     7 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3796       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.876       1.0000         .10000E-03   10000.    
    15 'norm      '    .89733       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
    17 'norm      '    .92100       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89401       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+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=   6096.612     FROM MIGRAD    STATUS=FAILED       762 CALLS     2418 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54407        1.2463        .14157E-02    .50092E-02
   2  Prefactor     .10000E-03    16.429        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.066        .18142E-02** at limit **
   4  norm          .42349        126.18        .55867E-02    .88703E-03
   5  Prefactor     .10000E-03    40.378        .18142E-02** at limit **
   6  norm          2.8518        5.2084        .22506E-03    .11937E-03
   7  norm          .10000E-03    6.4754        .18142E-02** at limit **
   8  norm          .10000E-03    10.259        .18142E-02** at limit **
   9  norm          1.3796        1.4621        .81112E-04    .85750E-03
  10  Prefactor     1.0011        2.5076        .14438E-03    .97165E-03
  11  Prefactor     .10000E-03    19.257        .18142E-02** at limit **
  12  Prefactor     .85589        775.05        .88105E-02    .59959E-04
  13  Prefactor     .10000E-03    4.8023        .16631E-02** at limit **
  14  Prefactor     39.891        30.802        .63476E-04    .22667E-03
  15  norm          .89791        2.0491        .15920E-03    .33955E-03
  16  Prefactor     10.617        9.4951        .61470E-03    .14061E-03
  17  norm          .92093        1.7216        .14469E-02    .20985E-03
  18  Prefactor     .10000E-03    62.691        .18142E-02** at limit **
  19  Normalizat    .89403        .25627        .36834E-03    .15664E-03
  20  Prefactor     1.2139        .13772        .17558E-03    .26461E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6096.612     FROM SIMPLEX   STATUS=UNCHANGED    963 CALLS     3381 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54407        1.2463        .25554E-06   -1.5560    
   2  Prefactor     .10000E-03    16.429        .42084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.066        .65979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42349        126.18        .29292E-06   -1.5578    
   5  Prefactor     .10000E-03    40.378        .64140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8518        5.2084        .22785E-06   -1.5370    
   7  norm          .10000E-03    6.4754        .23815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.259        .29202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3796        1.4621        .23103E-06   -1.5473    
  10  Prefactor     1.0011        2.5076        .23187E-06   -1.5508    
  11  Prefactor     .10000E-03    19.257        .44070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .85589        775.05        .19780E-06   -1.5523    
  13  Prefactor     .10000E-03    4.8023        .26110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.891        30.802        .21541E-06   -1.4444    
  15  norm          .89791        2.0491        .23170E-06   -1.5518    
  16  Prefactor     10.617        9.4951        .22486E-06   -1.5056    
  17  norm          .92093        1.7216        .23165E-06   -1.5516    
  18  Prefactor     .10000E-03    62.691        .76206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89403        .25627        .14572E-06   -.96670    
  20  Prefactor     1.2139        .13772        .12849E-06   -.85904    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6096.612     FROM MIGRAD    STATUS=CONVERGED    284 CALLS     3665 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54407        1.2449        .28314E-03    .85122E-05
   2  Prefactor     .10000E-03    16.429        .36285E-03** at limit **
   3  Prefactor     .10000E-03    16.078        .36285E-03** at limit **
   4  norm          .42355        130.25        .11173E-02    .35644E-04
   5  Prefactor     .10000E-03    40.388        .36285E-03** at limit **
   6  norm          2.8518        5.2032        .90023E-05    .15154E-05
   7  norm          .10000E-03    6.4766        .36285E-03** at limit **
   8  norm          .10000E-03    10.260        .36285E-03** at limit **
   9  norm          1.3796        1.4364        .32445E-05    .40647E-04
  10  Prefactor     1.0011        2.3784        .57753E-05    .29527E-04
  11  Prefactor     .10000E-03    19.260        .36285E-03** at limit **
  12  Prefactor     .85572        682.69        .35242E-02    .90422E-05
  13  Prefactor     .10000E-03    4.8038        .33262E-03** at limit **
  14  Prefactor     39.891        30.797        .12695E-04    .17910E-06
  15  norm          .89790        2.0413        .63681E-05    .82121E-05
  16  Prefactor     10.617        9.4946        .24588E-04    .18495E-06
  17  norm          .92093        1.7201        .57875E-04    .25537E-05
  18  Prefactor     .10000E-03    62.725        .36285E-03** at limit **
  19  Normalizat    .89403        .25540        .14733E-04    .43211E-05
  20  Prefactor     1.2139        .13747        .35117E-04    .59568E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.544074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.423547
  Prefactor  = 0.0001
  norm       = 2.85182
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.37959
  Prefactor  = 1.00111
  Prefactor  = 0.0001
  Prefactor  = 0.85572
  Prefactor  = 0.0001
  Prefactor  = 39.8908
  norm       = 0.897903
  Prefactor  = 10.6169
  norm       = 0.920932
  Prefactor  = 0.0001
  Normalizat = 0.894031
  Prefactor  = 1.21391
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.612     FROM HESSE     STATUS=OK           277 CALLS     3942 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54407        1.2448        .11326E-04   -1.5560    
   2  Prefactor     .10000E-03    16.429        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.079        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42355        130.32        .22347E-03   -1.5578    
   5  Prefactor     .10000E-03    40.388        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8518        5.2020        .18005E-05   -1.5370    
   7  norm          .10000E-03    6.4766        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.260        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3796        1.4229        .64889E-06   -1.5473    
  10  Prefactor     1.0011        2.3089        .11551E-05   -1.5508    
  11  Prefactor     .10000E-03    19.260        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .85572        621.69        .14097E-03   -1.5523    
  13  Prefactor     .10000E-03    4.8038        .66523E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.891        30.789        .25390E-05   -1.4444    
  15  norm          .89790        2.0372        .12736E-05   -1.5518    
  16  Prefactor     10.617        9.4946        .49176E-05   -1.5056    
  17  norm          .92093        1.7201        .23150E-05   -1.5516    
  18  Prefactor     .10000E-03    62.726        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89403        .25503        .29467E-05   -.96670    
  20  Prefactor     1.2139        .13737        .70234E-05   -.85904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24854e-12
Minuit parameter uncertainties:
  1  1.24485
  2  5.59942e-08
  3  4.93848e-07
  4  14.8902
  5  6.02118e-06
  6  5.20286
  7  2.68363e-07
  8  1.42162e-06
  9  1.42296
  10  2.30915
  11  1.56141e-06
  12  46.6212
  13  4.62283e-07
  14  30.8012
  15  2.03731
  16  9.49597
  17  1.72023
  18  1.10392e-06
  19  0.255372
  20  0.13741
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  2.684e-07  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.214e+00  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.940e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395699/likelihoodResults_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.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) = 6096.61303233
delta logL = -0.000735632127544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6096.61229694
delta logL = -2.48826836469e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4334       1.0000          .0000       5.0000    
     3 'Normalizat'    .89393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+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=   6096.612     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      236 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    186.61        .18142E-01** at limit **
   2  alpha         2.1384        3.8895        .16468       -.49429E-07
   3  Normalizat    .89403        .32953E-01    .36834E-03   -.98768E-05
   4  Prefactor     1.2139        .18120E-01    .17558E-03   -.19230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.13842
  Normalizat = 0.894031
  Prefactor  = 1.21391
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.612     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9950        .19965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1384        3.3572        .65872E-02   -.14514    
   3  Normalizat    .89403        .24698        .14733E-04   -.96670    
   4  Prefactor     1.2139        .13597        .70234E-05   -.85904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25151e-10
Minuit parameter uncertainties:
  1  0.000188568
  2  288.597
  3  0.247292
  4  0.136013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395699': 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) = 6096.61229615
delta logL = 5.47426679987e-07

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.886e-04  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.138e+00  2.886e+02  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.214e+00  1.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.940e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.534 -6.741

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/395699/cmap_HighResolution_306201601_306460801_4FGL_J0422.1-0644_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-08-20 13:00:48.340742', job_id='395699', GAL2='1.21', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629489648.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='258' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 395699: <4FGL_J0422.1-0644_daily_bin258> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin258> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:20 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:45:22 2021
Terminated at Fri Aug 20 13:00:49 2021
Results reported at Fri Aug 20 13:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin258 65.5343 -6.741 306201601 306460801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0422.1-0644 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

