/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 224 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin46
RA = 215.577, Dec = 32.3911
tmin = 251251201, tmax = 251510401
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='378644', job_status='RUN', time_executed='2021-09-09 11:30:11.058826', time_epoch_executed='1631212211.06' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378644/ft1_4FGL_J1422.3+3223_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378644/ft1_4FGL_J1422.3+3223_daily_bin46.fits outfile=/scratch/kocevski/378644/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin46.fits ra=215.577 dec=32.3911 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.50
user 1.32
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/378644/ltcube_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.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/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits
.....................!
real 15.96
user 15.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/378644/ltcube_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits outfile=/scratch/kocevski/378644/expmap_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.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/378644/ltcube_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits
.....................!
real 191.76
user 186.46
sys 4.85

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/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits scfile=/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits outfile=/scratch/kocevski/378644/cmap_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits scfile=/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits outfile=/scratch/kocevski/378644/cmap_HighResolution_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits', '/scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits', expMap='/scratch/kocevski/378644/expmap_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits', expCube='/scratch/kocevski/378644/ltcube_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378644/Model_4FGL_J1422.3+3223_daily_bin46.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/378644/ft1_filtered_4FGL_J1422.3+3223_daily_bin46.fits
Spacecraft file(s): /scratch/kocevski/378644/ft2_4FGL_J1422.3+3223_daily_bin46.fits
Exposure map: /scratch/kocevski/378644/expmap_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits
Exposure cube: /scratch/kocevski/378644/ltcube_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378644/Model_4FGL_J1422.3+3223_daily_bin46.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) = 8571.13220642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20237E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62519E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9655       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25453E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2316       1.0000         .10000E-03   10000.    
    16 'norm      '    .88840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
    18 'norm      '    9.9978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0139       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0876       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89390       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2882       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=   8570.233     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2223 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0263       -.35069E-06** at limit **
   2  Prefactor     .10000E-03    66.277       -.28743E-05** at limit **
   3  Prefactor     .10000E-03    153.75        .14640E-04** at limit **
   4  Prefactor     .10000E-03    1.8299        .26899E-06** at limit **
   5  norm          .10000E-03    5.7777        .69543E-06** at limit **
   6  Prefactor     .10000E-03    11.505       -.82244E-06** at limit **
   7  norm          .10000E-03    1.4197       -.33571E-07** at limit **
   8  Prefactor     .10000E-03    10.369        .83641E-06** at limit **
   9  Prefactor     .10000E-03    7.2641       -.10930E-05** at limit **
  10  Prefactor     .10000E-03    .89180        .44173E-07** at limit **
  11  norm          6.9660        9.2918        .60790E-07   -.33275E-04
  12  norm          3.5472        1.9299        .45366E-07   -.73748E-07
  13  Prefactor     .10336E-03    18.416       -.75171E-05** at limit **
  14  norm          .10000E-03    1.8168       -.21020E-06** at limit **
  15  Prefactor     1.1726        188.72        .20695E-04   -.10528E-04
  16  norm          .88780        2.5832        .56948E-06    .13698E-03
  17  Prefactor     10.091        28.217       -.28383E-05   -.46882E-04
  18  norm          9.9976        7.3764       -.72477E-06   -.84516E-04
  19  Prefactor     2.0143        7.9954        .95850E-05    .45630E-03
  20  Prefactor     5.0969        7.0186        .58102E-06   -.17552E-03
  21  norm          .10000E-03    .67546        .14079E-07** at limit **
  22  Normalizat    .89379        .14713       -.20119E-05   -.26243E-03
  23  Prefactor     1.2883        .15569        .32599E-06   -.24921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.96596
  norm       = 3.54716
  Prefactor  = 0.000103357
  norm       = 0.0001
  Prefactor  = 1.17257
  norm       = 0.887796
  Prefactor  = 10.091
  norm       = 9.99756
  Prefactor  = 2.01426
  Prefactor  = 5.09687
  norm       = 0.0001
  Normalizat = 0.893789
  Prefactor  = 1.28835
 **********
 **   18 **HESSE 
 **********

 FCN=   8570.233     FROM HESSE     STATUS=OK           378 CALLS     2601 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    156.80        .21042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1768        .24125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4515        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .89818        .85348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9660        9.2765        .15201E-03   -1.5180    
  12  norm          3.5472        1.9325        .91846E-04   -1.5331    
  13  Prefactor     .10336E-03    13.873        .10507       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8243        .12185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1726        193.97        .40509E-02   -1.5491    
  16  norm          .88780        2.5576        .24418E-03   -1.5520    
  17  Prefactor     10.091        28.233        .12625E-03   -1.5073    
  18  norm          9.9976        7.3792        .12673E-03   -1.5075    
  19  Prefactor     2.0143        8.0423        .14584E-02   -1.5424    
  20  Prefactor     5.0969        6.8043        .89128E-03   -1.5256    
  21  norm          .10000E-03    1.0525        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89379        .17387        .25545E-03   -.96679    
  23  Prefactor     1.2883        .18605        .23327E-03   -.83654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84241e-09
Minuit parameter uncertainties:
  1  1.24763e-06
  2  0.000195874
  3  0.000494807
  4  4.49516e-05
  5  1.2681e-05
  6  1.54795e-05
  7  6.43014e-07
  8  5.25722e-06
  9  3.21394e-05
  10  2.89194e-06
  11  9.27841
  12  1.93251
  13  0.0136511
  14  1.2576e-05
  15  30.2611
  16  2.5579
  17  28.27
  18  7.37984
  19  8.04662
  20  6.80533
  21  1.09704e-05
  22  0.173979
  23  0.186148
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.892e-06  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:  1.288e+00  1.861e-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:  8.938e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378644/likelihoodResults_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.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) = 8570.23778466
delta logL = -0.00525012833714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8570.23253483
delta logL = -2.95620338875e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3990       1.0000          .0000       10.000    
     3 'Normalizat'    .89373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2885       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8570.233     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    2.8830        .85364E-03** at limit **
   2  Index         2.3615        6.1468        .50000        .11702E-04
   3  Normalizat    .89379        .16937        .25545E-03    .57856E-05
   4  Prefactor     1.2883        .18264        .23327E-03   -.30216E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8570.233     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      365 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    2.8830        .13788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3615        6.1468        .37622E-03   -.55590    
   3  Normalizat    .89379        .16937        .46805E-04   -.96679    
   4  Prefactor     1.2883        .18264        .47416E-04   -.83654    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8570.233     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      401 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91277        .17073E-03** at limit **
   2  Index         2.2996        8.8061        .50000       -.38076E-06
   3  Normalizat    .89379        .16949        .10218E-04   -.30130E-03
   4  Prefactor     1.2883        .18281        .93310E-05   -.18714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29957
  Normalizat = 0.893788
  Prefactor  = 1.28835
 **********
 **   18 **HESSE 
 **********

 FCN=   8570.233     FROM HESSE     STATUS=OK            29 CALLS      430 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .90240        .34146E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2996        8.8463        .50000       -.57054    
   3  Normalizat    .89379        .16958        .20436E-05   -.96679    
   4  Prefactor     1.2883        .18295        .18662E-05   -.83654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4484e-10
Minuit parameter uncertainties:
  1  2.29963e-05
  2  96.9844
  3  0.169683
  4  0.183043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378644': 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) = 8570.2325343
delta logL = 2.30231307796e-07

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.300e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.300e+00  9.698e+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:  1.288e+00  1.830e-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:  8.938e-01  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.577 32.391

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/378644/cmap_HighResolution_251251201_251510401_4FGL_J1422.3+3223_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-09 11:42:27.334139', job_id='378644', GAL2='1.29', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631212947.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='2.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='46' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:42:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 378644: <4FGL_J1422.3+3223_daily_bin46> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin46> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:26:17 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:26:18 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:26:18 2021
Terminated at Thu Sep  9 11:42:28 2021
Results reported at Thu Sep  9 11:42:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin46 215.577 32.3911 251251201 251510401 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

