/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 122 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin585
RA = 65.5343, Dec = -6.741
tmin = 390960001, tmax = 391219201
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='397382', job_status='RUN', time_executed='2021-08-20 12:53:23.453643', time_epoch_executed='1629489203.45' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397382/ft1_4FGL_J0422.1-0644_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397382/ft1_4FGL_J0422.1-0644_daily_bin585.fits outfile=/scratch/kocevski/397382/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin585.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=390960001.0 tmax=391219201.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.48
user 4.31
sys 2.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.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/397382/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.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 2.83
user 0.34
sys 1.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/397382/ltcube_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.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/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits
.....................!
real 14.22
user 11.65
sys 2.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/397382/ltcube_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.fits outfile=/scratch/kocevski/397382/expmap_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.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/397382/ltcube_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.fits
.....................!
real 192.20
user 185.01
sys 6.80

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/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits outfile=/scratch/kocevski/397382/cmap_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.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 2.99
user 0.37
sys 2.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits outfile=/scratch/kocevski/397382/cmap_HighResolution_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.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 2.53
user 0.42
sys 2.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/397382/ft2_4FGL_J0422.1-0644_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397382/Model_4FGL_J0422.1-0644_daily_bin585.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/397382/ft1_filtered_4FGL_J0422.1-0644_daily_bin585.fits.....................!
real 129.75
user 125.80
sys 3.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14819E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12609E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .21358       1.0000         .10000E-03   10000.    
     7 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .77215E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .72929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.446       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9314       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1088       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.241       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1039       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=   9424.884     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2490 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2117        1.9273       -.93945E-07   -.89335E-03
   2  Prefactor     7.6669        16.695       -.16029E-04   -.48222E-04
   3  Prefactor     .10013E-03    3.9879        .35543E-06** at limit **
   4  norm          .10000E-03    4.1278        .16700E-07** at limit **
   5  Prefactor     .10000E-03    42.335        .72180E-05** at limit **
   6  norm          .20863        1.8715       -.36952E-06   -.91278E-04
   7  norm          .10000E-03    2.5771       -.74716E-08** at limit **
   8  norm          .10016E-03    18.802       -.19158E-05** at limit **
   9  norm          .72853        .93609       -.10165E-06   -.14398E-02
  10  Prefactor     3.1969        1.5821       -.37911E-07    .45530E-03
  11  Prefactor     16.425        34.429        .90962E-05    .69220E-04
  12  Prefactor     .10000E-03    9.5693        .15347E-07** at limit **
  13  Prefactor     .10000E-03    3.0777        .21471E-08** at limit **
  14  Prefactor     1.9099        24.232        .19914E-04   -.16640E-03
  15  norm          4.1086        2.1511       -.67936E-07   -.31148E-03
  16  Prefactor     .10000E-03    2.9495       -.19566E-06** at limit **
  17  norm          12.240        2.8067        .26648E-07    .10825E-03
  18  Prefactor     .10000E-03    36.262       -.61443E-05** at limit **
  19  Normalizat    1.0026        .17531        .28376E-06   -.89852E-04
  20  Prefactor     1.1038        .98005E-01   -.79264E-06    .20609E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21167
  Prefactor  = 7.6669
  Prefactor  = 0.000100126
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.208631
  norm       = 0.0001
  norm       = 0.000100165
  norm       = 0.728529
  Prefactor  = 3.1969
  Prefactor  = 16.4252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90992
  norm       = 4.10862
  Prefactor  = 0.0001
  norm       = 12.2404
  Prefactor  = 0.0001
  Normalizat = 1.00265
  Prefactor  = 1.10382
 **********
 **   18 **HESSE 
 **********

 FCN=   9424.884     FROM HESSE     STATUS=OK           319 CALLS     2809 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2117        1.9191        .12075E-03   -1.5411    
   2  Prefactor     7.6669        16.862        .14472E-03   -1.5154    
   3  Prefactor     .10013E-03    4.4820        .55152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .20863        12.356        .24855E-02   -1.5617    
   7  norm          .10000E-03    7.2052        .30265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10016E-03    21.432        .11127       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .72853        .81934        .96474E-03   -1.5537    
  10  Prefactor     3.1969        1.5659        .79406E-04   -1.5350    
  11  Prefactor     16.425        34.530        .98761E-04   -1.4897    
  12  Prefactor     .10000E-03    9.5730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1025        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9099        23.037        .29886E-03   -1.5432    
  15  norm          4.1086        2.1475        .98394E-04   -1.5303    
  16  Prefactor     .10000E-03    9.6330        .32362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.240        2.8053        .74764E-04   -1.5008    
  18  Prefactor     .10000E-03    36.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0026        .19412        .33484E-03   -.92942    
  20  Prefactor     1.1038        .10972        .18353E-03   -.89345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47869e-08
Minuit parameter uncertainties:
  1  1.91912
  2  16.8721
  3  0.00150104
  4  1.02677e-06
  5  9.5318e-06
  6  3.21108
  7  2.79671e-05
  8  0.00376162
  9  0.819351
  10  1.56591
  11  34.5717
  12  2.84484e-06
  13  2.39677e-06
  14  13.2723
  15  2.14752
  16  9.80174e-05
  17  2.80536
  18  6.48525e-05
  19  0.194256
  20  0.109738
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  2.797e-05  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.104e+00  1.097e-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:  1.003e+00  1.943e-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: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397382/likelihoodResults_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.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) = 9424.88424157
delta logL = -0.000657743110423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9424.88358452
delta logL = -6.89808075549e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14344E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3279       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1041       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.

 FCN=   9424.812     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      274 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0231        3.4191        .90712E-02    .11591E-02
   2  alpha         1.4748        1.0691        .41275       -.60966E-04
   3  Normalizat    1.0039        .16639        .75626E-01   -.23422E-03
   4  Prefactor     1.1018        .95745E-01    .37435E-01   -.56520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02309
  alpha      = 1.47475
  Normalizat = 1.00387
  Prefactor  = 1.10183
 **********
 **   18 **HESSE 
 **********

 FCN=   9424.812     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0231        3.1249        .29275E-03   -1.5506    
   2  alpha         1.4748        1.1810        .42315E-01   -.42256    
   3  Normalizat    1.0039        .18504        .33465E-03   -.92901    
   4  Prefactor     1.1018        .10665        .18366E-03   -.89408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30994e-10
Minuit parameter uncertainties:
  1  3.12536
  2  1.24146
  3  0.185158
  4  0.10667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397382': 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) = 9424.81248944
delta logL = 0.0710943851791

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.023e+00  3.125e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.475e+00  1.241e+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:  1.102e+00  1.067e-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:  1.004e+00  1.852e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/397382/cmap_HighResolution_390960001_391219201_4FGL_J0422.1-0644_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-20 13:06:53.524700', job_id='397382', GAL2='1.10', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629490013.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.11e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='585' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 397382: <4FGL_J0422.1-0644_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin585 65.5343 -6.741 390960001 391219201 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 :                                   832.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

