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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1322
RA = 215.577, Dec = 32.3911
tmin = 581990401, tmax = 582249601
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='384599', job_status='RUN', time_executed='2021-09-09 11:50:02.031393', time_epoch_executed='1631213402.03' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384599/ft1_4FGL_J1422.3+3223_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384599/ft2_4FGL_J1422.3+3223_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384599/ft1_4FGL_J1422.3+3223_daily_bin1322.fits outfile=/scratch/kocevski/384599/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1322.fits ra=215.577 dec=32.3911 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.42
user 2.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384599/ft2_4FGL_J1422.3+3223_daily_bin1322.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/384599/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/384599/ft1_filtered_4FGL_J1422.3+3223_daily_bin1322.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384599/ft1_filtered_4FGL_J1422.3+3223_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/384599/ft2_4FGL_J1422.3+3223_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/384599/ltcube_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.fits outfile=/scratch/kocevski/384599/expmap_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.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/384599/ltcube_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.fits
.....................!
real 191.86
user 187.32
sys 4.17

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/384599/ft1_filtered_4FGL_J1422.3+3223_daily_bin1322.fits scfile=/scratch/kocevski/384599/ft2_4FGL_J1422.3+3223_daily_bin1322.fits outfile=/scratch/kocevski/384599/cmap_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384599/ft1_filtered_4FGL_J1422.3+3223_daily_bin1322.fits scfile=/scratch/kocevski/384599/ft2_4FGL_J1422.3+3223_daily_bin1322.fits outfile=/scratch/kocevski/384599/cmap_HighResolution_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1719       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.961       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4214       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.672       1.0000         .10000E-03   10000.    
    16 'norm      '    .37858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.099       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5053       1.0000         .10000E-03   10000.    
    21 'norm      '    .10861       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93520       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=   9507.393     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2548 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.030        17.933       -.13183E-05   -.82192E-04
   2  Prefactor     1.5222        62.463        .31442E-05   -.84063E-05
   3  Prefactor     58.384        68.401       -.59756E-06   -.68106E-04
   4  Prefactor     .10000E-03    1.1174        .41595E-07** at limit **
   5  norm          1.3200        18.239        .28860E-05    .24309E-04
   6  Prefactor     2.1673        29.356        .21053E-05    .34196E-05
   7  norm          .10000E-03    1.0128        .10595E-06** at limit **
   8  Prefactor     18.781        12.932       -.19635E-06   -.11483E-03
   9  Prefactor     .10000E-03    32.890        .24931E-05** at limit **
  10  Prefactor     60.958        7.0832       -.20520E-08   -.84983E-04
  11  norm          .10000E-03    5.3018        .20266E-06** at limit **
  12  norm          4.0960        2.0379        .24747E-08    .18802E-06
  13  Prefactor     .10000E-03    10.217        .25827E-06** at limit **
  14  norm          5.4191        5.3245        .19115E-06   -.50739E-04
  15  Prefactor     20.672        21.416       -.50502E-07   -.14734E-04
  16  norm          .37333        2.2337       -.39886E-06    .55541E-03
  17  Prefactor     10.093        22.195        .53757E-07   -.19624E-04
  18  norm          .10000E-03    2.3927        .49517E-07** at limit **
  19  Prefactor     .10000E-03    4.6376        .11450E-06** at limit **
  20  Prefactor     9.5086        6.6948       -.62918E-06   -.41174E-03
  21  norm          .10506        .90315        .47389E-06   -.47624E-03
  22  Normalizat    1.1200        .16394        .89750E-06   -.36876E-03
  23  Prefactor     .93480        .16404       -.21968E-05   -.12744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.03
  Prefactor  = 1.52219
  Prefactor  = 58.3841
  Prefactor  = 0.0001
  norm       = 1.32002
  Prefactor  = 2.16734
  norm       = 0.0001
  Prefactor  = 18.7807
  Prefactor  = 0.0001
  Prefactor  = 60.9576
  norm       = 0.0001
  norm       = 4.09602
  Prefactor  = 0.0001
  norm       = 5.41914
  Prefactor  = 20.6719
  norm       = 0.373333
  Prefactor  = 10.0928
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.50864
  norm       = 0.105065
  Normalizat = 1.11999
  Prefactor  = 0.934798
 **********
 **   18 **HESSE 
 **********

 FCN=   9507.393     FROM HESSE     STATUS=OK           376 CALLS     2924 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.030        17.731        .10329E-03   -1.4932    
   2  Prefactor     1.5222        63.222        .34158E-03   -1.5461    
   3  Prefactor     58.384        68.568        .52479E-04   -1.4178    
   4  Prefactor     .10000E-03    1.1321        .10065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3200        18.547        .38165E-03   -1.5478    
   6  Prefactor     2.1673        28.565        .27941E-03   -1.5414    
   7  norm          .10000E-03    1.0179        .95824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.781        12.769        .92378E-04   -1.4841    
   9  Prefactor     .10000E-03    33.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.958        7.1075        .51390E-04   -1.4145    
  11  norm          .10000E-03    5.3120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0960        2.0403        .95242E-04   -1.5303    
  13  Prefactor     .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4191        5.3314        .17258E-03   -1.5242    
  15  Prefactor     20.672        21.410        .88095E-04   -1.4798    
  16  norm          .37333        11.074        .26430E-02   -1.5586    
  17  Prefactor     10.093        22.209        .12609E-03   -1.5072    
  18  norm          .10000E-03    2.3989        .14731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5086        6.5953        .12998E-03   -1.5091    
  21  norm          .10506        2.0926        .15836E-02   -1.5643    
  22  Normalizat    1.1200        .19230        .25761E-03   -.89112    
  23  Prefactor     .93480        .18955        .28884E-03   -.94936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61039e-08
Minuit parameter uncertainties:
  1  17.7373
  2  19.6416
  3  68.6614
  4  1.86166e-06
  5  9.89937
  6  15.7455
  7  1.21536e-06
  8  12.7704
  9  5.53432e-05
  10  7.10756
  11  4.86618e-06
  12  2.04035
  13  6.77769e-06
  14  5.33183
  15  21.4184
  16  4.0668
  17  22.2271
  18  2.24429e-06
  19  6.20814e-06
  20  6.5958
  21  0.937374
  22  0.192421
  23  0.189685
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.096e+01  7.108e+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.348e-01  1.897e-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.120e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 269.51
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.49e-07 +/- 6.40e-08
Energy Flux (Fixed Index): 1.80e-04 +/- 2.10e-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) = 9495.7607751
delta logL = 11.6323866503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9495.66354168
delta logL = 11.7296200664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.247       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9044       1.0000          .0000       10.000    
     3 'Normalizat'    1.2700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83333       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=   9495.664     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.247        9.9072        .11350E-02   -.18275E-03
   2  Index         1.9044        .97760E-01    .51091E-01    .20457E-04
   3  Normalizat    1.2700        .15114        .55457E-01    .70987E-05
   4  Prefactor     .83335        .15350        .68675E-01    .26946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.2475
  Index      = 1.90438
  Normalizat = 1.26999
  Prefactor  = 0.833348
 **********
 **   18 **HESSE 
 **********

 FCN=   9495.664     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.247        9.6289        .45398E-04   -1.3936    
   2  Index         1.9044        .96091E-01    .22394E-03   -.66763    
   3  Normalizat    1.2700        .18109        .24522E-03   -.84467    
   4  Prefactor     .83335        .18298        .30384E-03   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86276e-12
Minuit parameter uncertainties:
  1  9.62905
  2  0.0961007
  3  0.181181
  4  0.183118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384599': 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) = 9495.66354167
delta logL = 11.7296200768

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.825e+01  9.629e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.904e+00  9.610e-02  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.333e-01  1.831e-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.270e+00  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 291.11
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.90 +/- 0.10
Photon Flux (Free Index): 4.01e-07 +/- 5.95e-08
Energy Flux (Free Index): 3.55e-04 +/- 7.74e-05

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/384599/cmap_HighResolution_581990401_582249601_4FGL_J1422.3+3223_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-07', energy_flux2='3.55e-04', photon_flux_error='6.40e-08', dlogl='1.17e+01', energy_flux='1.80e-04', photon_flux2='4.01e-07', job_status='DONE', time_completed='2021-09-09 12:03:01.097082', photon_index_error2='0.10', photon_index2='1.90', ts='269.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='7.74e-05', EG='1.12', time_epoch_completed='1631214181.1', return_code='0', job_id='384599', GAL2='0.83', EG2='1.27', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='5.95e-08', ts2='291.11', photon_index='2.40' WHERE bin_id='1322' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 384599: <4FGL_J1422.3+3223_daily_bin1322> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1322> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:37 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:38 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:38 2021
Terminated at Thu Sep  9 12:03:01 2021
Results reported at Thu Sep  9 12:03:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1322 215.577 32.3911 581990401 582249601 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 :                                   697.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

