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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin576
RA = 65.5343, Dec = -6.741
tmin = 388627201, tmax = 388886401
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='397369', job_status='RUN', time_executed='2021-08-20 12:53:52.244795', time_epoch_executed='1629489232.24' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397369

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397369/ft1_4FGL_J0422.1-0644_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397369/ft1_4FGL_J0422.1-0644_daily_bin576.fits outfile=/scratch/kocevski/397369/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin576.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.00
user 3.79
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.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/397369/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/397369/ltcube_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.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/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits
.....................!
real 11.81
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/397369/ltcube_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits outfile=/scratch/kocevski/397369/expmap_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.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/397369/ltcube_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits
.....................!
real 191.15
user 186.69
sys 4.12

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/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits outfile=/scratch/kocevski/397369/cmap_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits outfile=/scratch/kocevski/397369/cmap_HighResolution_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397369/Model_4FGL_J0422.1-0644_daily_bin576.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/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits.....................!
real 67.12
user 65.82
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits', '/scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits', expMap='/scratch/kocevski/397369/expmap_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits', expCube='/scratch/kocevski/397369/ltcube_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397369/Model_4FGL_J0422.1-0644_daily_bin576.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/397369/ft1_filtered_4FGL_J0422.1-0644_daily_bin576.fits
Spacecraft file(s): /scratch/kocevski/397369/ft2_4FGL_J0422.1-0644_daily_bin576.fits
Exposure map: /scratch/kocevski/397369/expmap_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits
Exposure cube: /scratch/kocevski/397369/ltcube_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397369/Model_4FGL_J0422.1-0644_daily_bin576.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) = 4445.53809279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6973       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4950       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.124       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.018       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9873       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2264       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94631       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86166       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.

 FCN=   4445.534     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2047 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3988        1.9027        .13256E-07   -.34770E-04
   2  Prefactor     28.506        42.474       -.95476E-06   -.45109E-04
   3  Prefactor     6.6985        10.773        .56787E-07   -.33481E-04
   4  norm          .10000E-03    12.202        .13379E-07** at limit **
   5  Prefactor     5.4909        55.125       -.25829E-05   -.42561E-04
   6  norm          .10000E-03    2.8452       -.83072E-08** at limit **
   7  norm          .10000E-03    19.512       -.31116E-07** at limit **
   8  norm          11.130        26.108        .20534E-05    .64752E-04
   9  norm          1.7569        1.4525       -.10867E-07   -.53543E-04
  10  Prefactor     .22636        1.9139        .79211E-07   -.92827E-05
  11  Prefactor     29.190        32.937       -.31685E-05   -.22486E-03
  12  Prefactor     .10000E-03    101.83       -.20150E-06** at limit **
  13  Prefactor     2.0143        12.439       -.69706E-07   -.11681E-03
  14  Prefactor     18.017        26.296       -.13133E-06   -.10502E-04
  15  norm          4.9868        2.9784        .73456E-08   -.25658E-04
  16  Prefactor     .10000E-03    2.9109        .92854E-08** at limit **
  17  norm          .10000E-03    1.1152       -.65890E-07** at limit **
  18  Prefactor     4.2274        27.015        .55913E-05   -.17183E-03
  19  Normalizat    .94621        .24286        .23783E-06   -.14628E-04
  20  Prefactor     .86168        .12028       -.13597E-06    .99715E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.39876
  Prefactor  = 28.5064
  Prefactor  = 6.69847
  norm       = 0.0001
  Prefactor  = 5.49094
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.1298
  norm       = 1.75693
  Prefactor  = 0.226358
  Prefactor  = 29.1903
  Prefactor  = 0.0001
  Prefactor  = 2.01428
  Prefactor  = 18.0167
  norm       = 4.98679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22743
  Normalizat = 0.946206
  Prefactor  = 0.861675
 **********
 **   18 **HESSE 
 **********

 FCN=   4445.534     FROM HESSE     STATUS=OK           299 CALLS     2346 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3988        1.8961        .79357E-04   -1.5398    
   2  Prefactor     28.506        42.797        .75034E-04   -1.4640    
   3  Prefactor     6.6985        10.835        .15505E-03   -1.5190    
   4  norm          .10000E-03    12.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4909        55.535        .17140E-03   -1.5239    
   6  norm          .10000E-03    2.8735        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.130        26.343        .12012E-03   -1.5041    
   9  norm          1.7569        1.4323        .62946E-04   -1.5443    
  10  Prefactor     .22636        5.7632        .14646E-02   -1.5613    
  11  Prefactor     29.190        35.027        .74142E-04   -1.4627    
  12  Prefactor     .10000E-03    102.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0143        12.878        .29173E-03   -1.5424    
  14  Prefactor     18.017        26.346        .94356E-04   -1.4859    
  15  norm          4.9868        2.9762        .83931E-04   -1.5261    
  16  Prefactor     .10000E-03    2.9127        .11110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1399        .68757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2274        34.048        .98005E-03   -1.5297    
  19  Normalizat    .94621        .27926        .31624E-03   -.94855    
  20  Prefactor     .86168        .13820        .17348E-03   -.97493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60275e-08
Minuit parameter uncertainties:
  1  1.89616
  2  42.8427
  3  10.8383
  4  5.17198e-07
  5  34.9667
  6  3.53792e-07
  7  1.08096e-06
  8  26.371
  9  1.43232
  10  2.28407
  11  35.0518
  12  3.74955e-05
  13  10.1892
  14  26.3627
  15  2.97625
  16  4.49897e-08
  17  3.67463e-06
  18  24.013
  19  0.27969
  20  0.138256
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.081e-06  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:  8.617e-01  1.383e-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:  9.462e-01  2.797e-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.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397369/likelihoodResults_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.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) = 4445.53397062
delta logL = -0.000237143779486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4445.53373374
delta logL = -2.65208655037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11335E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3629       1.0000          .0000       5.0000    
     3 'Normalizat'    .94651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86154       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=   4445.488     FROM MIGRAD    STATUS=CONVERGED    246 CALLS      394 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5201        10.207        .36023E-03    .19832E-04
   2  alpha         1.4748        1.0015        .50000       -.26371E-04
   3  Normalizat    .94738        .25387        .31624E-03   -.10066E-05
   4  Prefactor     .85795        .13521        .17348E-03    .66187E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52009
  alpha      = 1.47479
  Normalizat = 0.947383
  Prefactor  = 0.857948
 **********
 **   18 **HESSE 
 **********

 FCN=   4445.488     FROM HESSE     STATUS=OK            29 CALLS      423 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5201        9.0759        .72046E-04   -1.5390    
   2  alpha         1.4748        1.2529        .25813E-01   -.42255    
   3  Normalizat    .94738        .25389        .12650E-04   -.94815    
   4  Prefactor     .85795        .13494        .69394E-05   -.97626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49321e-11
Minuit parameter uncertainties:
  1  9.08081
  2  1.32641
  3  0.254212
  4  0.134994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397369': 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) = 4445.48767379
delta logL = 0.0460596917319

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.520e+00  9.081e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.475e+00  1.326e+00  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:  8.579e-01  1.350e-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:  9.474e-01  2.542e-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/397369/cmap_HighResolution_388627201_388886401_4FGL_J0422.1-0644_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-20 13:02:11.727497', job_id='397369', GAL2='0.86', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629489731.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.61e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='576' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 397369: <4FGL_J0422.1-0644_daily_bin576> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin576> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:50:40 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:50:41 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:50:41 2021
Terminated at Fri Aug 20 13:02:12 2021
Results reported at Fri Aug 20 13:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin576 65.5343 -6.741 388627201 388886401 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 :                                   499.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            692 sec.

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

