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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1111
RA = 215.577, Dec = 32.3911
tmin = 527299201, tmax = 527558401
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='384270', job_status='RUN', time_executed='2021-09-09 11:49:50.738383', time_epoch_executed='1631213390.74' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384270/ft1_4FGL_J1422.3+3223_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384270/ft1_4FGL_J1422.3+3223_daily_bin1111.fits outfile=/scratch/kocevski/384270/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1111.fits ra=215.577 dec=32.3911 rad=12.0 tmin=527299201.0 tmax=527558401.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.86
user 4.57
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384270/ft1_filtered_4FGL_J1422.3+3223_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/384270/ltcube_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.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/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits
.....................!
real 14.95
user 14.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384270/ft1_filtered_4FGL_J1422.3+3223_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/384270/ltcube_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.fits outfile=/scratch/kocevski/384270/expmap_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.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/384270/ltcube_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.fits
.....................!
real 191.04
user 186.14
sys 4.52

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/384270/ft1_filtered_4FGL_J1422.3+3223_daily_bin1111.fits scfile=/scratch/kocevski/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits outfile=/scratch/kocevski/384270/cmap_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384270/ft1_filtered_4FGL_J1422.3+3223_daily_bin1111.fits scfile=/scratch/kocevski/384270/ft2_4FGL_J1422.3+3223_daily_bin1111.fits outfile=/scratch/kocevski/384270/cmap_HighResolution_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3097       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    104.40       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7859       1.0000         .10000E-03   10000.    
     7 'norm      '    .13579E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2204       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.204       1.0000         .10000E-03   10000.    
    14 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    106.05       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12540E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5976       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88829       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99185       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=   4830.029     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2596 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3109        40.326        .25399E-04   -.33602E-04
   2  Prefactor     .28360        20.957       -.37889E-05   -.27642E-04
   3  Prefactor     104.41        95.408        .90102E-05    .16833E-06
   4  Prefactor     .10000E-03    1.9392       -.48497E-07** at limit **
   5  norm          .10000E-03    5.8226        .20772E-07** at limit **
   6  Prefactor     5.7897        20.601       -.80756E-05   -.39473E-04
   7  norm          .10000E-03    3.3760       -.32306E-07** at limit **
   8  Prefactor     .10000E-03    23.968        .33574E-05** at limit **
   9  Prefactor     .10000E-03    34.282       -.31814E-05** at limit **
  10  Prefactor     5.2206        6.2307       -.15850E-06   -.33844E-03
  11  norm          .10000E-03    10.052        .18818E-06** at limit **
  12  norm          .10000E-03    1.4349        .13266E-07** at limit **
  13  Prefactor     26.191        34.324       -.93314E-05   -.66886E-06
  14  norm          .10000E-03    7.1978        .58301E-06** at limit **
  15  Prefactor     106.05        69.620        .36390E-05    .34853E-05
  16  norm          2.1118        5.1988       -.86043E-06   -.58286E-03
  17  Prefactor     .10000E-03    19.498       -.73556E-07** at limit **
  18  norm          .10001E-03    7.2402       -.57446E-06** at limit **
  19  Prefactor     23.491        17.812       -.15625E-05    .30529E-04
  20  Prefactor     8.5977        8.2858        .10781E-05   -.38312E-04
  21  norm          .10000E-03    .66250       -.31100E-07** at limit **
  22  Normalizat    .88791        .20438        .74129E-07    .31498E-04
  23  Prefactor     .99237        .19654       -.58763E-07    .43502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31089
  Prefactor  = 0.2836
  Prefactor  = 104.415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.78969
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 5.22055
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.1914
  norm       = 0.0001
  Prefactor  = 106.051
  norm       = 2.11184
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 23.4913
  Prefactor  = 8.59774
  norm       = 0.0001
  Normalizat = 0.887906
  Prefactor  = 0.992372
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.029     FROM HESSE     STATUS=OK           380 CALLS     2976 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3109        39.039        .26997E-03   -1.5404    
   2  Prefactor     .28360        21.878        .10681       -1.5601    
   3  Prefactor     104.41        95.713        .39354E-04   -1.3661    
   4  Prefactor     .10000E-03    1.9583        .94488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8283        .16378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7897        20.654        .16697E-03   -1.5227    
   7  norm          .10000E-03    7.4089        .24522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2206        6.2183        .17268E-03   -1.5251    
  11  norm          .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4544        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.191        34.454        .78258E-04   -1.4684    
  14  norm          .10000E-03    7.3694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     106.05        69.509        .39051E-04   -1.3645    
  16  norm          2.1118        5.2262        .23385E-03   -1.5417    
  17  Prefactor     .10000E-03    19.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    24.111        .36007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.491        17.704        .82650E-04   -1.4738    
  20  Prefactor     8.5977        8.2460        .13671E-03   -1.5121    
  21  norm          .10000E-03    .67227        .55086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88791        .24430        .25091E-03   -.96886    
  23  Prefactor     .99237        .23316        .23855E-03   -.92984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42295e-09
Minuit parameter uncertainties:
  1  19.0105
  2  4.98281
  3  95.8554
  4  8.57532e-06
  5  7.15577e-06
  6  20.6794
  7  0.000176884
  8  0.000349284
  9  0.000479682
  10  6.21905
  11  2.14696e-05
  12  6.93627e-06
  13  34.4799
  14  3.24949e-08
  15  69.5623
  16  5.22734
  17  1.41844e-05
  18  0.000991558
  19  17.7075
  20  8.24706
  21  1.54382e-06
  22  0.244603
  23  0.233393
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.221e+00  6.219e+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:  9.924e-01  2.334e-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.879e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384270/likelihoodResults_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.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): 0
logL (Free Index) = 4829.86979408
delta logL = 0.159700599645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4829.86321374
delta logL = 0.166280940501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8866       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8815       1.0000          .0000       10.000    
     3 'Normalizat'    .85939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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.

 FCN=   4829.863     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8866        104.38        .51167E-02    .26183E-03
   2  Index         2.8815        6.4343        .14445        .83730E-04
   3  Normalizat    .85920        .64918E-01    .44380E-01    .15075E-04
   4  Prefactor     1.0125        .67566E-01    .42998E-01    .89219E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88664
  Index      = 2.88153
  Normalizat = 0.859197
  Prefactor  = 1.01247
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.863     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8866        6.5960        .12518E-03   -1.5314    
   2  Index         2.8815        1.0534        .73736E-02   -.43752    
   3  Normalizat    .85920        .23636        .25469E-03   -.97909    
   4  Prefactor     1.0125        .23061        .23645E-03   -.92315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25759e-11
Minuit parameter uncertainties:
  1  6.59721
  2  1.06313
  3  0.23664
  4  0.230833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384270': 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) = 4829.863213
delta logL = 0.166281678129

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.887e+00  6.597e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.882e+00  1.063e+00  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.012e+00  2.308e-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.592e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.88 +/- 1.06
Photon Flux (Free Index): 6.87e-08 +/- 7.07e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.59e-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/384270/cmap_HighResolution_527299201_527558401_4FGL_J1422.3+3223_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.66e-01', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-09 11:59:35.991140', photon_index_error2='1.06', photon_index2='2.88', ts='0.87', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.59e-05', EG='0.89', time_epoch_completed='1631213975.99', return_code='0', job_id='384270', GAL2='1.01', EG2='0.86', return_code2='0', photon_flux_error2='7.07e-08', ts2='1.24', photon_index='2.40' WHERE bin_id='1111' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 384270: <4FGL_J1422.3+3223_daily_bin1111> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1111> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:08 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:10 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:10 2021
Terminated at Thu Sep  9 11:59:36 2021
Results reported at Thu Sep  9 11:59:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1111 215.577 32.3911 527299201 527558401 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 :                                   570.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

