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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1126
RA = 215.577, Dec = 32.3911
tmin = 531187201, tmax = 531446401
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='384293', job_status='RUN', time_executed='2021-09-09 11:48:53.592469', time_epoch_executed='1631213333.59' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384293

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384293/ft1_4FGL_J1422.3+3223_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384293/ft1_4FGL_J1422.3+3223_daily_bin1126.fits outfile=/scratch/kocevski/384293/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1126.fits ra=215.577 dec=32.3911 rad=12.0 tmin=531187201.0 tmax=531446401.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.02
user 3.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.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/384293/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/384293/ltcube_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.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/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits
.....................!
real 15.97
user 15.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/384293/ltcube_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits outfile=/scratch/kocevski/384293/expmap_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.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/384293/ltcube_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits
.....................!
real 191.87
user 186.38
sys 5.06

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

Setting source of interest to:
4FGL J1422.3+3223 @ 215.577 32.3911

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits outfile=/scratch/kocevski/384293/cmap_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.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=215.577 yref=32.3911 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits outfile=/scratch/kocevski/384293/cmap_HighResolution_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.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=215.577 yref=32.3911 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384293/Model_4FGL_J1422.3+3223_daily_bin1126.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/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits.....................!
real 45.79
user 44.29
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits', '/scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits', expMap='/scratch/kocevski/384293/expmap_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits', expCube='/scratch/kocevski/384293/ltcube_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384293/Model_4FGL_J1422.3+3223_daily_bin1126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1422.3+3223'

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/384293/ft1_filtered_4FGL_J1422.3+3223_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/384293/ft2_4FGL_J1422.3+3223_daily_bin1126.fits
Exposure map: /scratch/kocevski/384293/expmap_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits
Exposure cube: /scratch/kocevski/384293/ltcube_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384293/Model_4FGL_J1422.3+3223_daily_bin1126.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) = 5761.64908315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11596E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.278       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0946       1.0000         .10000E-03   10000.    
    12 'norm      '    .79685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.071       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2094       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.404       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7783       1.0000         .10000E-03   10000.    
    21 'norm      '    .10073E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5761.646     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2491 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.848        .24305E-06** at limit **
   2  Prefactor     .10000E-03    18.907        .14239E-06** at limit **
   3  Prefactor     24.027        63.876       -.73472E-05   -.13819E-03
   4  Prefactor     .10000E-03    2.3775        .60898E-07** at limit **
   5  norm          .10000E-03    5.3991        .20390E-07** at limit **
   6  Prefactor     .10000E-03    4.7331        .57803E-07** at limit **
   7  norm          .10000E-03    1.2087       -.46043E-07** at limit **
   8  Prefactor     .10000E-03    4.7125       -.17926E-06** at limit **
   9  Prefactor     .10000E-03    6.0012       -.25452E-06** at limit **
  10  Prefactor     16.278        5.6123        .20065E-06   -.79550E-04
  11  norm          5.0960        9.1605        .23397E-05   -.68285E-04
  12  norm          .79770        1.9855        .72914E-06    .11946E-03
  13  Prefactor     .10000E-03    10.782        .17186E-06** at limit **
  14  norm          5.1062        5.1436        .14051E-05   -.11760E-03
  15  Prefactor     21.072        21.885       -.77118E-07    .16895E-04
  16  norm          9.2104        4.9310        .55076E-08   -.54028E-04
  17  Prefactor     42.414        41.699        .12842E-05    .11989E-03
  18  norm          .10000E-03    6.0703        .12998E-06** at limit **
  19  Prefactor     .10000E-03    5.4706       -.23717E-07** at limit **
  20  Prefactor     6.7775        5.5214       -.64729E-07    .14906E-03
  21  norm          .10010E-03    .68642       -.27840E-06** at limit **
  22  Normalizat    1.0346        .17578        .61532E-06   -.43710E-04
  23  Prefactor     .84210        .17779       -.14319E-05    .47637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0269
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.278
  norm       = 5.09598
  norm       = 0.797697
  Prefactor  = 0.0001
  norm       = 5.10622
  Prefactor  = 21.0719
  norm       = 9.21042
  Prefactor  = 42.4143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.77749
  norm       = 0.000100101
  Normalizat = 1.03459
  Prefactor  = 0.842104
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.646     FROM HESSE     STATUS=OK           368 CALLS     2859 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.027        67.128        .81658E-04   -1.4727    
   4  Prefactor     .10000E-03    2.4507        .22848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.4096        .17229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7353        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2137        .81495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7248        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.278        5.6479        .49636E-03   -1.4901    
  11  norm          5.0960        9.2261        .89066E-03   -1.5256    
  12  norm          .79770        1.9045        .16208E-02   -1.5529    
  13  Prefactor     .10000E-03    10.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1062        5.1986        .84310E-03   -1.5256    
  15  Prefactor     21.072        21.890        .87257E-04   -1.4790    
  16  norm          9.2104        4.9348        .11883E-03   -1.5101    
  17  Prefactor     42.414        42.017        .61561E-04   -1.4405    
  18  norm          .10000E-03    6.1428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4799        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.7775        5.4310        .15370E-03   -1.5187    
  21  norm          .10010E-03    15.097        .11824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0346        .20428        .23204E-03   -.91880    
  23  Prefactor     .84210        .20507        .25931E-03   -.98194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73165e-09
Minuit parameter uncertainties:
  1  1.99508e-05
  2  1.50788e-05
  3  67.3405
  4  2.05268e-06
  5  1.44109e-05
  6  4.19621e-06
  7  2.98544e-06
  8  1.76287e-05
  9  2.5393e-05
  10  5.64809
  11  9.22864
  12  1.90461
  13  1.41143e-05
  14  5.19902
  15  21.8986
  16  4.935
  17  42.0467
  18  3.59671e-06
  19  1.20611e-05
  20  5.4314
  21  0.00247258
  22  0.204437
  23  0.205257
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.628e+01  5.648e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.421e-01  2.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.035e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.88
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 5.09e-08
Energy Flux (Fixed Index): 4.80e-05 +/- 1.67e-05

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) = 5761.4912921
delta logL = 0.154766821166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5761.48126092
delta logL = 0.164797999407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.295       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5979       1.0000          .0000       10.000    
     3 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   5761.481     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      266 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.295        6.4628        .89928E-04   -.20025E-03
   2  Index         2.5979        .36127        .40024E-02   -.88975E-04
   3  Normalizat    1.0105        .20264        .23430E-03    .31345E-04
   4  Prefactor     .85864        .20220        .25708E-03    .30160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2954
  Index      = 2.59786
  Normalizat = 1.01049
  Prefactor  = 0.858637
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.481     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.295        6.2764        .35971E-05   -1.4952    
   2  Index         2.5979        .35061        .16010E-03   -.50114    
   3  Normalizat    1.0105        .20277        .93722E-05   -.92680    
   4  Prefactor     .85864        .20231        .10283E-04   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04952e-11
Minuit parameter uncertainties:
  1  6.27665
  2  0.35099
  3  0.202923
  4  0.20249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384293': 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) = 5761.48126092
delta logL = 0.164798005463

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.430e+01  6.277e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.598e+00  3.510e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.586e-01  2.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.010e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.24
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.60 +/- 0.35
Photon Flux (Free Index): 1.68e-07 +/- 6.56e-08
Energy Flux (Free Index): 4.41e-05 +/- 1.57e-05

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/384293/cmap_HighResolution_531187201_531446401_4FGL_J1422.3+3223_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='4.41e-05', photon_flux_error='5.09e-08', dlogl='1.65e-01', energy_flux='4.80e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-09 11:58:25.923158', photon_index_error2='0.35', photon_index2='2.60', ts='18.88', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.03', time_epoch_completed='1631213905.92', return_code='0', job_id='384293', GAL2='0.86', EG2='1.01', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.56e-08', ts2='19.24', photon_index='2.40' WHERE bin_id='1126' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:58:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 384293: <4FGL_J1422.3+3223_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1126> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:10 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:46:11 2021
Terminated at Thu Sep  9 11:58:26 2021
Results reported at Thu Sep  9 11:58:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1126 215.577 32.3911 531187201 531446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

