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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin570
RA = 215.577, Dec = 32.3911
tmin = 387072001, tmax = 387331201
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='381363', job_status='RUN', time_executed='2021-09-09 11:36:28.680250', time_epoch_executed='1631212588.68' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381363/ft1_4FGL_J1422.3+3223_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381363/ft2_4FGL_J1422.3+3223_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381363/ft1_4FGL_J1422.3+3223_daily_bin570.fits outfile=/scratch/kocevski/381363/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin570.fits ra=215.577 dec=32.3911 rad=12.0 tmin=387072001.0 tmax=387331201.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.37
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381363/ft1_filtered_4FGL_J1422.3+3223_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/381363/ft2_4FGL_J1422.3+3223_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/381363/ltcube_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.fits outfile=/scratch/kocevski/381363/expmap_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.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/381363/ltcube_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.fits
.....................!
real 190.70
user 185.70
sys 4.57

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/381363/ft1_filtered_4FGL_J1422.3+3223_daily_bin570.fits scfile=/scratch/kocevski/381363/ft2_4FGL_J1422.3+3223_daily_bin570.fits outfile=/scratch/kocevski/381363/cmap_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381363/ft1_filtered_4FGL_J1422.3+3223_daily_bin570.fits scfile=/scratch/kocevski/381363/ft2_4FGL_J1422.3+3223_daily_bin570.fits outfile=/scratch/kocevski/381363/cmap_HighResolution_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24167E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87829       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8106       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48143E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.239       1.0000         .10000E-03   10000.    
    12 'norm      '    10.005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.998       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0684       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86528       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0727       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=   5239.446     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2585 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.267       -.12671E-05** at limit **
   2  Prefactor     .10000E-03    12.566        .15847E-04** at limit **
   3  Prefactor     49.022        68.583       -.51005E-04    .25196E-05
   4  Prefactor     .10000E-03    2.0110       -.55053E-07** at limit **
   5  norm          .10001E-03    42.078        .27863E-06** at limit **
   6  Prefactor     .83023        21.557        .98054E-06   -.80736E-04
   7  norm          4.8099        3.8358       -.15205E-06   -.18116E-03
   8  Prefactor     .10000E-03    41.549        .18491E-05** at limit **
   9  Prefactor     34.070        23.129       -.12327E-05   -.13552E-03
  10  Prefactor     .10000E-03    1.5808       -.39720E-06** at limit **
  11  norm          13.233        13.404        .34659E-05   -.25892E-04
  12  norm          10.003        3.8686       -.42764E-06   -.92989E-04
  13  Prefactor     .10000E-03    10.907        .53580E-06** at limit **
  14  norm          .10000E-03    3.6493       -.28277E-08** at limit **
  15  Prefactor     .10000E-03    12.447       -.14770E-04** at limit **
  16  norm          4.5499        4.8383       -.34726E-06   -.32049E-03
  17  Prefactor     13.492        33.009        .52579E-04    .65731E-05
  18  norm          .10000E-03    3.1451        .37179E-07** at limit **
  19  Prefactor     12.998        13.338       -.31557E-05   -.51588E-04
  20  Prefactor     .10000E-03    2.7967       -.29266E-07** at limit **
  21  norm          2.0686        1.6691       -.74889E-07   -.37549E-03
  22  Normalizat    .86462        .18528        .38452E-05   -.30290E-03
  23  Prefactor     1.0735        .19568       -.45765E-05    .13323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.022
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.830227
  norm       = 4.80986
  Prefactor  = 0.0001
  Prefactor  = 34.0703
  Prefactor  = 0.0001
  norm       = 13.233
  norm       = 10.0029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5499
  Prefactor  = 13.4916
  norm       = 0.0001
  Prefactor  = 12.9985
  Prefactor  = 0.0001
  norm       = 2.06862
  Normalizat = 0.864619
  Prefactor  = 1.07351
 **********
 **   18 **HESSE 
 **********

 FCN=   5239.446     FROM HESSE     STATUS=OK           368 CALLS     2953 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.022        68.962        .57185E-04   -1.4307    
   4  Prefactor     .10000E-03    2.0469        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    43.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83023        182.39        .59239E-02   -1.5526    
   7  norm          4.8099        3.8275        .12154E-03   -1.5269    
   8  Prefactor     .10000E-03    41.799        .42352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.070        23.188        .68623E-04   -1.4540    
  10  Prefactor     .10000E-03    2.8705        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.233        13.399        .11008E-03   -1.4980    
  12  norm          10.003        3.8752        .84894E-04   -1.5075    
  13  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7000        .13500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5499        4.8367        .15751E-03   -1.5281    
  17  Prefactor     13.492        33.056        .10893E-03   -1.4973    
  18  norm          .10000E-03    3.1464        .12537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.998        13.336        .11110E-03   -1.4987    
  20  Prefactor     .10000E-03    2.8015        .11817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0686        1.6597        .80387E-04   -1.5420    
  22  Normalizat    .86462        .21697        .24180E-03   -.97715    
  23  Prefactor     1.0735        .22897        .24048E-03   -.90318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47542e-09
Minuit parameter uncertainties:
  1  1.15149e-05
  2  1.56048e-05
  3  69.0746
  4  2.4935e-06
  5  0.00104983
  6  24.686
  7  3.82772
  8  0.000100625
  9  23.1946
  10  6.23159e-05
  11  13.4018
  12  3.87531
  13  5.04275e-06
  14  9.47522e-06
  15  6.11862e-07
  16  4.83713
  17  33.1006
  18  5.99696e-07
  19  13.3389
  20  8.20505e-07
  21  1.65978
  22  0.217186
  23  0.229182
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.232e-05  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.074e+00  2.292e-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.646e-01  2.172e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381363/likelihoodResults_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.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) = 5239.44724316
delta logL = -0.00166232589982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5239.44558217
delta logL = -1.33419143822e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3772       1.0000          .0000       10.000    
     3 'Normalizat'    .86472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0735       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=   5239.446     FROM MIGRAD    STATUS=FAILED        92 CALLS      255 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    43.114        .18014E-02** at limit **
   2  Index         2.2756        5.5670        .50000        .41466E-04
   3  Normalizat    .86463        .15942E-01    .24180E-03    .19413E-03
   4  Prefactor     1.0735        .17572E-01    .24048E-03    .15233E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5239.446     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      378 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    43.114        .28865E-03** at limit **
   2  Index         2.2756        5.5670        .23815E-03    .41466E-04
   3  Normalizat    .86463        .15942E-01    .16952E-05    .19413E-03
   4  Prefactor     1.0735        .17572E-01    .17345E-05    .15233E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5239.446     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      425 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.606        .36028E-02** at limit **
   2  Index         2.1179        8.6504        .50000        .69781E-07
   3  Normalizat    .86462        .12645E-01    .96719E-05   -.11888E-02
   4  Prefactor     1.0735        .13937E-01    .48096E-04   -.12054E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11794
  Normalizat = 0.864624
  Prefactor  = 1.0735
 **********
 **   18 **HESSE 
 **********

 FCN=   5239.446     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.71        .72055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1179        6.3336        .50000       -.61433    
   3  Normalizat    .86462        .29629E-01    .19344E-05   -.97715    
   4  Prefactor     1.0735        .32657E-01    .96192E-05   -.90318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.21041e-10
Minuit parameter uncertainties:
  1  2.44992e-05
  2  446.571
  3  0.0296294
  4  0.0326573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381363': 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) = 5239.44557839
delta logL = 2.45210230787e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.450e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.118e+00  4.466e+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:  1.074e+00  3.266e-02  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.646e-01  2.963e-02  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/381363/cmap_HighResolution_387072001_387331201_4FGL_J1422.3+3223_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-09 11:46:21.365031', job_id='381363', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631213181.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='570' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 381363: <4FGL_J1422.3+3223_daily_bin570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin570 215.577 32.3911 387072001 387331201 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 :                                   589.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            606 sec.

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

