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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1106
RA = 215.577, Dec = 32.3911
tmin = 526003201, tmax = 526262401
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='384262', job_status='RUN', time_executed='2021-09-09 11:48:36.960899', time_epoch_executed='1631213316.96' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384262/ft1_4FGL_J1422.3+3223_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384262/ft2_4FGL_J1422.3+3223_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384262/ft1_4FGL_J1422.3+3223_daily_bin1106.fits outfile=/scratch/kocevski/384262/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1106.fits ra=215.577 dec=32.3911 rad=12.0 tmin=526003201.0 tmax=526262401.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 3.72
user 3.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384262/ft1_filtered_4FGL_J1422.3+3223_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/384262/ft2_4FGL_J1422.3+3223_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/384262/ltcube_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.fits outfile=/scratch/kocevski/384262/expmap_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.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/384262/ltcube_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.fits
.....................!
real 192.39
user 187.16
sys 4.81

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/384262/ft1_filtered_4FGL_J1422.3+3223_daily_bin1106.fits scfile=/scratch/kocevski/384262/ft2_4FGL_J1422.3+3223_daily_bin1106.fits outfile=/scratch/kocevski/384262/cmap_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384262/ft1_filtered_4FGL_J1422.3+3223_daily_bin1106.fits scfile=/scratch/kocevski/384262/ft2_4FGL_J1422.3+3223_daily_bin1106.fits outfile=/scratch/kocevski/384262/cmap_HighResolution_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1883       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15363E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4006       1.0000         .10000E-03   10000.    
    12 'norm      '    .65758       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14156E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.069       1.0000         .10000E-03   10000.    
    16 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.205       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.203       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99741       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88044       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=   5451.362     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2205 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3381        11.886        .99688E-05   -.31188E-03
   2  Prefactor     .10000E-03    19.202        .58629E-06** at limit **
   3  Prefactor     .10000E-03    29.553       -.26317E-07** at limit **
   4  Prefactor     2.1883        2.2526       -.93478E-07   -.47105E-04
   5  norm          4.5851        11.267        .46465E-06    .18975E-05
   6  Prefactor     .10000E-03    12.883       -.10750E-07** at limit **
   7  norm          3.0522        3.7410        .14475E-06   -.66288E-04
   8  Prefactor     9.9856        11.734        .23360E-06    .50384E-05
   9  Prefactor     .10000E-03    9.3645       -.12645E-06** at limit **
  10  Prefactor     .10029E-03    1.8596        .22770E-06** at limit **
  11  norm          5.3995        12.358        .45175E-06    .96714E-05
  12  norm          .65528        2.6532        .13556E-05   -.15514E-03
  13  Prefactor     .10000E-03    7.6355       -.19084E-06** at limit **
  14  norm          .10000E-03    4.6934       -.65368E-06** at limit **
  15  Prefactor     77.001        47.916       -.63943E-05   -.54690E-03
  16  norm          .10000E-03    4.4762        .19310E-06** at limit **
  17  Prefactor     .10000E-03    20.369       -.63783E-06** at limit **
  18  norm          10.205        7.2904       -.64425E-06    .20078E-03
  19  Prefactor     4.7225        14.698        .87866E-06    .69102E-05
  20  Prefactor     15.201        10.172        .21507E-06   -.13087E-04
  21  norm          .10000E-03    .91504        .35968E-07** at limit **
  22  Normalizat    .99730        .17319        .16803E-06   -.16648E-03
  23  Prefactor     .88073        .17784       -.11749E-05   -.79536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18828
  norm       = 4.58514
  Prefactor  = 0.0001
  norm       = 3.05217
  Prefactor  = 9.98565
  Prefactor  = 0.0001
  Prefactor  = 0.000100286
  norm       = 5.39946
  norm       = 0.655277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 77.0008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2048
  Prefactor  = 4.7225
  Prefactor  = 15.2014
  norm       = 0.0001
  Normalizat = 0.997304
  Prefactor  = 0.880733
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.362     FROM HESSE     STATUS=OK           378 CALLS     2583 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3381        12.271        .11076E-02   -1.5343    
   2  Prefactor     .10000E-03    19.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1883        2.2599        .10901E-03   -1.5412    
   5  norm          4.5851        11.271        .18796E-03   -1.5280    
   6  Prefactor     .10000E-03    12.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0522        3.7266        .15048E-03   -1.5359    
   8  Prefactor     9.9856        11.728        .12683E-03   -1.5076    
   9  Prefactor     .10000E-03    9.3829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10029E-03    5.4875        .32332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3995        12.332        .17292E-03   -1.5243    
  12  norm          .65528        2.6787        .22524E-03   -1.5546    
  13  Prefactor     .10000E-03    7.6415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7339        .15592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     77.001        51.258        .22871E-03   -1.3951    
  16  norm          .10000E-03    4.6022        .30480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.205        7.2999        .62713E-03   -1.5069    
  19  Prefactor     4.7225        14.633        .18509E-03   -1.5273    
  20  Prefactor     15.201        10.081        .10272E-03   -1.4928    
  21  norm          .10000E-03    .93544        .13692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99730        .20693        .22428E-03   -.93121    
  23  Prefactor     .88073        .20984        .24718E-03   -.96818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63126e-09
Minuit parameter uncertainties:
  1  12.2805
  2  2.28435e-05
  3  1.61261e-05
  4  2.26002
  5  11.2767
  6  8.92298e-06
  7  3.7269
  8  11.7307
  9  2.17662e-05
  10  0.00250589
  11  12.3377
  12  2.64977
  13  1.89482e-05
  14  5.50263e-05
  15  51.2878
  16  2.52574e-06
  17  9.11227e-05
  18  7.30049
  19  14.6444
  20  10.0817
  21  3.37145e-07
  22  0.207094
  23  0.210032
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.003e-04  2.506e-03  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.807e-01  2.100e-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:  9.973e-01  2.071e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384262/likelihoodResults_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.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) = 5451.362286
delta logL = -3.86073188565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5451.22096667
delta logL = 0.141280728615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33158       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7827       1.0000          .0000       10.000    
     3 'Normalizat'    .96505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90008       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=   5451.221     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      276 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33418        11.759        .10563E-01    .16953E-02
   2  Index         3.7809        3.6333        .20799        .68724E-04
   3  Normalizat    .96474        .27441E-01    .45728E-01   -.20060E-03
   4  Prefactor     .90036        .28768E-01    .45006E-01   -.46099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.334183
  Index      = 3.78087
  Normalizat = 0.964735
  Prefactor  = 0.900364
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.221     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33418        60.872        .78311E-04   -1.5592    
   2  Index         3.7809        6.2330        .96702E-02   -.24631    
   3  Normalizat    .96474        .17590        .22770E-03   -.94221    
   4  Prefactor     .90036        .18253        .24480E-03   -.96128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92354e-07
Minuit parameter uncertainties:
  1  9.02848
  2  15.2616
  3  0.176004
  4  0.182649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384262': 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): 102
logL (Free Index) = 5451.22096291
delta logL = 0.141284482523

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.342e-01  9.028e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.781e+00  1.526e+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:  9.004e-01  1.826e-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:  9.647e-01  1.760e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/384262/cmap_HighResolution_526003201_526262401_4FGL_J1422.3+3223_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-09 11:58:33.959818', job_id='384262', GAL2='0.90', fit_tolerance='1e-08', EG2='0.96', EG='1.00', time_epoch_completed='1631213913.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.41e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1106' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:58:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 384262: <4FGL_J1422.3+3223_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1106 215.577 32.3911 526003201 526262401 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 :                                   577.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

